# Strait ## Docs - [AI Agents](https://docs.strait.dev/ai/index.md): Build and orchestrate AI agent workflows with cost tracking, tool call management, and multi-step pipelines. - [Get approval statistics](https://docs.strait.dev/api-reference/analytics/get-approval-statistics.md): Returns statistics about workflow approval steps including wait times. - [Get compute cost analytics](https://docs.strait.dev/api-reference/analytics/get-compute-cost-analytics.md): Returns compute resource utilization and cost breakdown. - [Get cost analytics](https://docs.strait.dev/api-reference/analytics/get-cost-analytics.md): Returns cost analytics for the current billing period. - [Get cost by machine type](https://docs.strait.dev/api-reference/analytics/get-cost-by-machine-type.md): Returns cost breakdown grouped by machine/compute type. - [Get cost by trigger type](https://docs.strait.dev/api-reference/analytics/get-cost-by-trigger-type.md): Returns cost breakdown grouped by trigger type. - [Get cost forecast](https://docs.strait.dev/api-reference/analytics/get-cost-forecast.md): Returns projected costs based on historical usage trends. - [Get cost insights](https://docs.strait.dev/api-reference/analytics/get-cost-insights.md): Returns actionable insights for reducing costs based on usage patterns. - [Get cost trends](https://docs.strait.dev/api-reference/analytics/get-cost-trends.md): Returns cost trend data over time for identifying spending patterns. - [Get event latency](https://docs.strait.dev/api-reference/analytics/get-event-latency.md): Returns latency metrics for event processing. - [Get event volume](https://docs.strait.dev/api-reference/analytics/get-event-volume.md): Returns event volume time-series data. - [Get job comparison](https://docs.strait.dev/api-reference/analytics/get-job-comparison.md): Returns side-by-side performance comparison across jobs. - [Get job cost ranking](https://docs.strait.dev/api-reference/analytics/get-job-cost-ranking.md): Returns jobs ranked by total cost in the specified period. - [Get job execution history](https://docs.strait.dev/api-reference/analytics/get-job-execution-history.md): Returns historical execution data for a specific job. - [Get job reliability](https://docs.strait.dev/api-reference/analytics/get-job-reliability.md): Returns reliability metrics (success rate, MTTR, MTBF) for jobs. - [Get performance analytics](https://docs.strait.dev/api-reference/analytics/get-performance-analytics.md): Returns job execution performance metrics including p50/p95/p99 latencies. - [Get run duration distribution](https://docs.strait.dev/api-reference/analytics/get-run-duration-distribution.md): Returns a histogram of run durations across percentile buckets. - [Get run failure reasons](https://docs.strait.dev/api-reference/analytics/get-run-failure-reasons.md): Returns the most common failure reasons across runs. - [Get run summary](https://docs.strait.dev/api-reference/analytics/get-run-summary.md): Returns aggregate summary statistics for runs in the specified period. - [Get run timeline](https://docs.strait.dev/api-reference/analytics/get-run-timeline.md): Returns time-series data of run executions bucketed by interval. - [Get runs by job version](https://docs.strait.dev/api-reference/analytics/get-runs-by-job-version.md): Returns run metrics grouped by job version to track version performance. - [Get runs by trigger type](https://docs.strait.dev/api-reference/analytics/get-runs-by-trigger-type.md): Returns run counts grouped by trigger type (cron, API, event, webhook). - [Get tag cost breakdown](https://docs.strait.dev/api-reference/analytics/get-tag-cost-breakdown.md): Returns cost data grouped by tag for cost allocation. - [Get tag summary](https://docs.strait.dev/api-reference/analytics/get-tag-summary.md): Returns aggregate metrics grouped by tag for resource categorization. - [Get top cost contributors](https://docs.strait.dev/api-reference/analytics/get-top-cost-contributors.md): Returns the jobs contributing most to overall costs. - [Get top failing jobs](https://docs.strait.dev/api-reference/analytics/get-top-failing-jobs.md): Returns jobs with the highest failure rates in the specified period. - [Get top failing tags](https://docs.strait.dev/api-reference/analytics/get-top-failing-tags.md): Returns tags associated with the highest failure rates. - [Get top failing webhooks](https://docs.strait.dev/api-reference/analytics/get-top-failing-webhooks.md): Returns webhook endpoints with the highest failure rates. - [Get webhook delivery statistics](https://docs.strait.dev/api-reference/analytics/get-webhook-delivery-statistics.md): Returns delivery success rates and latency metrics for webhooks. - [Get webhook endpoint health](https://docs.strait.dev/api-reference/analytics/get-webhook-endpoint-health.md): Returns health metrics for webhook endpoints including error rates. - [Get workflow analytics summary](https://docs.strait.dev/api-reference/analytics/get-workflow-analytics-summary.md): Returns aggregate analytics across all workflows. - [Get workflow completion rates](https://docs.strait.dev/api-reference/analytics/get-workflow-completion-rates.md): Returns completion and success rates for workflows. - [Get workflow step durations](https://docs.strait.dev/api-reference/analytics/get-workflow-step-durations.md): Returns average and percentile duration metrics for each step in a workflow. - [Create an API key](https://docs.strait.dev/api-reference/api-keys/create-an-api-key.md): Creates a new API key for authenticating with the API. - [List API keys](https://docs.strait.dev/api-reference/api-keys/list-api-keys.md): Returns all API keys for the current project. - [List expiring API keys](https://docs.strait.dev/api-reference/api-keys/list-expiring-api-keys.md): Returns API keys that are expiring within the specified number of days. - [Revoke an API key](https://docs.strait.dev/api-reference/api-keys/revoke-an-api-key.md): Permanently revokes an API key, immediately invalidating it. - [Rotate an API key](https://docs.strait.dev/api-reference/api-keys/rotate-an-api-key.md): Rotates an API key, generating a new secret while keeping the same ID. - [Export audit events](https://docs.strait.dev/api-reference/audit/export-audit-events.md): Exports audit events as CSV or JSON for compliance and reporting. - [List audit events](https://docs.strait.dev/api-reference/audit/list-audit-events.md): Returns a paginated list of audit events for the current project. - [Verify audit chain](https://docs.strait.dev/api-reference/audit/verify-audit-chain.md): Verifies the integrity of the audit event hash chain. - [Create SSE token](https://docs.strait.dev/api-reference/authentication/create-sse-token.md): Issues a short-lived JWT for use as a query-param token in SSE endpoints. - [Get a batch operation](https://docs.strait.dev/api-reference/batch-operations/get-a-batch-operation.md): Returns details and progress of a specific batch operation. - [List batch operations](https://docs.strait.dev/api-reference/batch-operations/list-batch-operations.md): Returns a paginated list of batch operations and their progress. - [Check organization limit](https://docs.strait.dev/api-reference/billing/check-organization-limit.md): Checks whether the organization has reached its plan limits. - [Export usage data](https://docs.strait.dev/api-reference/billing/export-usage-data.md): Exports usage data as CSV or JSON for external analysis. - [Get anomaly alerts](https://docs.strait.dev/api-reference/billing/get-anomaly-alerts.md): Returns usage anomaly alerts based on configured thresholds. - [Get anomaly detection config](https://docs.strait.dev/api-reference/billing/get-anomaly-detection-config.md): Returns the anomaly detection configuration for the current project. - [Get cost estimate](https://docs.strait.dev/api-reference/billing/get-cost-estimate.md): Returns a cost estimate based on current usage patterns. - [Get current usage](https://docs.strait.dev/api-reference/billing/get-current-usage.md): Returns the current billing period's usage metrics. - [Get downgrade preview](https://docs.strait.dev/api-reference/billing/get-downgrade-preview.md): Returns a preview of the impact of downgrading to a lower plan tier. - [Get email preferences](https://docs.strait.dev/api-reference/billing/get-email-preferences.md): Returns email notification preferences for the organization. - [Get project budget](https://docs.strait.dev/api-reference/billing/get-project-budget.md): Returns the budget configuration for the current project. - [Get project costs](https://docs.strait.dev/api-reference/billing/get-project-costs.md): Returns cost breakdown by project for the current billing period. - [Get spending limit](https://docs.strait.dev/api-reference/billing/get-spending-limit.md): Returns the current spending limit configuration. - [Get usage forecast](https://docs.strait.dev/api-reference/billing/get-usage-forecast.md): Returns projected usage for the current billing period. - [Get usage history](https://docs.strait.dev/api-reference/billing/get-usage-history.md): Returns historical usage data across billing periods. - [Update anomaly detection config](https://docs.strait.dev/api-reference/billing/update-anomaly-detection-config.md): Sets or updates the anomaly detection thresholds for the current project. - [Update email preferences](https://docs.strait.dev/api-reference/billing/update-email-preferences.md): Updates email notification preferences for the organization. - [Update project budget](https://docs.strait.dev/api-reference/billing/update-project-budget.md): Sets or updates the budget for the current project. - [Update spending limit](https://docs.strait.dev/api-reference/billing/update-spending-limit.md): Sets or updates the spending limit for the current project. - [Create canary deployment](https://docs.strait.dev/api-reference/canary-deployments/create-canary-deployment.md): Creates a canary deployment to gradually shift traffic from one workflow version to another. - [Get canary deployment status](https://docs.strait.dev/api-reference/canary-deployments/get-canary-deployment-status.md): Returns the current canary deployment status with version comparison metrics. - [Rollback canary deployment](https://docs.strait.dev/api-reference/canary-deployments/rollback-canary-deployment.md): Immediately rolls back a canary deployment to 0% target traffic. - [Update canary traffic](https://docs.strait.dev/api-reference/canary-deployments/update-canary-traffic.md): Adjusts the traffic percentage for an active canary deployment. - [Approve a device code](https://docs.strait.dev/api-reference/cli-auth/approve-a-device-code.md): Approves a pending device code, authorizing the CLI session. - [Poll for device token](https://docs.strait.dev/api-reference/cli-auth/poll-for-device-token.md): Polls for the authorization token after the user approves the device code. - [Request a device authorization code](https://docs.strait.dev/api-reference/cli-auth/request-a-device-authorization-code.md): Initiates the device authorization flow by generating a device code and user code. - [Create a deployment version](https://docs.strait.dev/api-reference/deployments/create-a-deployment-version.md): Creates a new deployment version for a workflow. - [Finalize a deployment version](https://docs.strait.dev/api-reference/deployments/finalize-a-deployment-version.md): Finalizes a deployment version, locking its configuration. - [List deployment versions](https://docs.strait.dev/api-reference/deployments/list-deployment-versions.md): Returns a paginated list of deployment versions. - [Promote a deployment version](https://docs.strait.dev/api-reference/deployments/promote-a-deployment-version.md): Promotes a deployment version to active, routing traffic to it. - [Rollback a deployment version](https://docs.strait.dev/api-reference/deployments/rollback-a-deployment-version.md): Rolls back to the previous deployment version. - [Create an environment](https://docs.strait.dev/api-reference/environments/create-an-environment.md): Creates a new environment for isolating job configurations. - [Delete an environment](https://docs.strait.dev/api-reference/environments/delete-an-environment.md): Permanently deletes an environment. - [Get an environment](https://docs.strait.dev/api-reference/environments/get-an-environment.md): Returns details of a specific environment. - [Get resolved variables](https://docs.strait.dev/api-reference/environments/get-resolved-variables.md): Returns the resolved environment variables with inheritance applied. - [List environments](https://docs.strait.dev/api-reference/environments/list-environments.md): Returns all environments in the current project. - [Update an environment](https://docs.strait.dev/api-reference/environments/update-an-environment.md): Updates an existing environment's configuration. - [Create an event source](https://docs.strait.dev/api-reference/event-sources/create-an-event-source.md): Creates a new event source for receiving external events. - [Delete an event source](https://docs.strait.dev/api-reference/event-sources/delete-an-event-source.md): Permanently deletes an event source and its subscriptions. - [Delete an event subscription](https://docs.strait.dev/api-reference/event-sources/delete-an-event-subscription.md): Removes a subscription from an event source. - [Get an event source](https://docs.strait.dev/api-reference/event-sources/get-an-event-source.md): Returns details of a specific event source. - [List event source subscriptions](https://docs.strait.dev/api-reference/event-sources/list-event-source-subscriptions.md): Returns all subscriptions for a specific event source. - [List event sources](https://docs.strait.dev/api-reference/event-sources/list-event-sources.md): Returns all event sources configured in the current project. - [Subscribe to an event source](https://docs.strait.dev/api-reference/event-sources/subscribe-to-an-event-source.md): Creates a subscription linking a job or workflow to an event source. - [Update an event source](https://docs.strait.dev/api-reference/event-sources/update-an-event-source.md): Updates an existing event source's configuration. - [Cancel an event trigger](https://docs.strait.dev/api-reference/events/cancel-an-event-trigger.md): Cancels a waiting event trigger. - [Dispatch an event](https://docs.strait.dev/api-reference/events/dispatch-an-event.md): Dispatches an event that triggers matching subscriptions. - [Get an event trigger](https://docs.strait.dev/api-reference/events/get-an-event-trigger.md): Returns details of a specific event trigger by its key. - [Get event trigger statistics](https://docs.strait.dev/api-reference/events/get-event-trigger-statistics.md): Returns aggregate statistics about event triggers. - [List event triggers](https://docs.strait.dev/api-reference/events/list-event-triggers.md): Returns a paginated list of event triggers in the current project. - [Purge event triggers](https://docs.strait.dev/api-reference/events/purge-event-triggers.md): Purges completed or expired event triggers. - [Send an event](https://docs.strait.dev/api-reference/events/send-an-event.md): Sends a payload to an event trigger, resolving it. - [Send event by prefix](https://docs.strait.dev/api-reference/events/send-event-by-prefix.md): Sends an event to all triggers matching the given key prefix. - [Stream event trigger updates](https://docs.strait.dev/api-reference/events/stream-event-trigger-updates.md): Opens an SSE stream for real-time updates on an event trigger. - [Export jobs](https://docs.strait.dev/api-reference/export/export-jobs.md): Streams all job definitions for the current project as JSON or NDJSON. - [Export runs](https://docs.strait.dev/api-reference/export/export-runs.md): Streams run history for the current project within a time window as JSON, NDJSON, or CSV. - [Export workflows](https://docs.strait.dev/api-reference/export/export-workflows.md): Streams all workflow definitions for the current project as JSON or NDJSON. - [Health check](https://docs.strait.dev/api-reference/health/health-check.md): Returns the service health status. - [Readiness check](https://docs.strait.dev/api-reference/health/readiness-check.md): Returns 200 when the service is ready to accept traffic. - [Create a job group](https://docs.strait.dev/api-reference/job-groups/create-a-job-group.md): Creates a new group for organizing related jobs. - [Delete a job group](https://docs.strait.dev/api-reference/job-groups/delete-a-job-group.md): Permanently deletes a job group. Jobs in the group are not deleted. - [Get a job group](https://docs.strait.dev/api-reference/job-groups/get-a-job-group.md): Returns details of a specific job group. - [Get job group statistics](https://docs.strait.dev/api-reference/job-groups/get-job-group-statistics.md): Returns aggregate statistics for all jobs in a group. - [List job groups](https://docs.strait.dev/api-reference/job-groups/list-job-groups.md): Returns all job groups in the current project. - [List jobs in a group](https://docs.strait.dev/api-reference/job-groups/list-jobs-in-a-group.md): Returns all jobs belonging to a specific job group. - [Pause all jobs in a group](https://docs.strait.dev/api-reference/job-groups/pause-all-jobs-in-a-group.md): Pauses all jobs belonging to a specific job group. - [Resume all jobs in a group](https://docs.strait.dev/api-reference/job-groups/resume-all-jobs-in-a-group.md): Resumes all paused jobs belonging to a specific job group. - [Update a job group](https://docs.strait.dev/api-reference/job-groups/update-a-job-group.md): Updates an existing job group's name or configuration. - [Batch create jobs](https://docs.strait.dev/api-reference/jobs/batch-create-jobs.md): Creates multiple jobs in a single request. - [Batch disable jobs](https://docs.strait.dev/api-reference/jobs/batch-disable-jobs.md): Disables multiple jobs in a single request. - [Batch enable jobs](https://docs.strait.dev/api-reference/jobs/batch-enable-jobs.md): Enables multiple jobs in a single request. - [Bulk trigger a job](https://docs.strait.dev/api-reference/jobs/bulk-trigger-a-job.md): Triggers multiple executions of a job with different payloads. - [Clone a job](https://docs.strait.dev/api-reference/jobs/clone-a-job.md): Creates a copy of an existing job with a new name. - [Create a job](https://docs.strait.dev/api-reference/jobs/create-a-job.md): Creates a new job with the specified endpoint and configuration. - [Create a job dependency](https://docs.strait.dev/api-reference/jobs/create-a-job-dependency.md): Creates a dependency relationship between two jobs. - [Delete a job](https://docs.strait.dev/api-reference/jobs/delete-a-job.md): Permanently deletes a job and all its associated data. - [Delete a job dependency](https://docs.strait.dev/api-reference/jobs/delete-a-job-dependency.md): Removes a dependency relationship between two jobs. - [Get a job](https://docs.strait.dev/api-reference/jobs/get-a-job.md): Returns details of a specific job. - [Get a job version](https://docs.strait.dev/api-reference/jobs/get-a-job-version.md): Returns details of a specific job version. - [Get job health](https://docs.strait.dev/api-reference/jobs/get-job-health.md): Returns health metrics for a job including success rate and latency. - [List job dependencies](https://docs.strait.dev/api-reference/jobs/list-job-dependencies.md): Returns all dependencies for a specific job. - [List job versions](https://docs.strait.dev/api-reference/jobs/list-job-versions.md): Returns all versions of a job definition showing configuration history. - [List jobs](https://docs.strait.dev/api-reference/jobs/list-jobs.md): Returns a paginated list of jobs in the current project. - [Pause a job](https://docs.strait.dev/api-reference/jobs/pause-a-job.md): Pauses a job, preventing new runs from being dequeued while preserving queue state. - [Resume a job](https://docs.strait.dev/api-reference/jobs/resume-a-job.md): Resumes a paused job, allowing queued runs to be dequeued immediately. - [Trigger a job](https://docs.strait.dev/api-reference/jobs/trigger-a-job.md): Triggers immediate execution of a job. - [Update a job](https://docs.strait.dev/api-reference/jobs/update-a-job.md): Updates an existing job's configuration. - [Create a log drain](https://docs.strait.dev/api-reference/log-drains/create-a-log-drain.md): Creates a new log drain to forward job execution logs to an external destination. - [Delete a log drain](https://docs.strait.dev/api-reference/log-drains/delete-a-log-drain.md): Permanently deletes a log drain. - [Get a log drain](https://docs.strait.dev/api-reference/log-drains/get-a-log-drain.md): Returns details of a specific log drain. - [List log drains](https://docs.strait.dev/api-reference/log-drains/list-log-drains.md): Returns all log drains configured in the current project. - [Update a log drain](https://docs.strait.dev/api-reference/log-drains/update-a-log-drain.md): Updates an existing log drain's configuration. - [Create a notification channel](https://docs.strait.dev/api-reference/notifications/create-a-notification-channel.md): Creates a new notification channel for receiving alerts about job events. - [Delete a notification channel](https://docs.strait.dev/api-reference/notifications/delete-a-notification-channel.md): Permanently deletes a notification channel. - [Get a notification channel](https://docs.strait.dev/api-reference/notifications/get-a-notification-channel.md): Returns details of a specific notification channel. - [List notification channels](https://docs.strait.dev/api-reference/notifications/list-notification-channels.md): Returns all notification channels in the current project. - [List notification deliveries](https://docs.strait.dev/api-reference/notifications/list-notification-deliveries.md): Returns a paginated list of notification delivery attempts. - [Update a notification channel](https://docs.strait.dev/api-reference/notifications/update-a-notification-channel.md): Updates an existing notification channel's configuration. - [List jobs across organization](https://docs.strait.dev/api-reference/organizations/list-jobs-across-organization.md): Returns jobs across all projects in an organization. - [List runs across organization](https://docs.strait.dev/api-reference/organizations/list-runs-across-organization.md): Returns runs across all projects in an organization. - [API Reference Overview](https://docs.strait.dev/api-reference/overview.md): Authentication, error formats, and common patterns for the Strait API. - [List plan tiers](https://docs.strait.dev/api-reference/plans/list-plan-tiers.md): Returns all available plan tiers with their limits and pricing. - [Create a project](https://docs.strait.dev/api-reference/projects/create-a-project.md): Creates a new project within an organization. - [Delete a project](https://docs.strait.dev/api-reference/projects/delete-a-project.md): Permanently deletes a project and all its associated resources. - [Get a project](https://docs.strait.dev/api-reference/projects/get-a-project.md): Returns details of a specific project. - [Get project settings](https://docs.strait.dev/api-reference/projects/get-project-settings.md): Returns the current settings for a project. - [List projects](https://docs.strait.dev/api-reference/projects/list-projects.md): Returns all projects accessible by the current API key. - [Stream project activity](https://docs.strait.dev/api-reference/projects/stream-project-activity.md): Opens an SSE stream for real-time updates on all project activity including job runs, workflow runs, and event triggers. - [Update project settings](https://docs.strait.dev/api-reference/projects/update-project-settings.md): Updates the settings for a project. - [Assign a member to a role](https://docs.strait.dev/api-reference/rbac/assign-a-member-to-a-role.md): Assigns a user to a role in the current project. - [Bulk assign members](https://docs.strait.dev/api-reference/rbac/bulk-assign-members.md): Assigns multiple users to roles in a single operation. - [Create a resource policy](https://docs.strait.dev/api-reference/rbac/create-a-resource-policy.md): Creates a policy restricting access to specific resources by role. - [Create a role](https://docs.strait.dev/api-reference/rbac/create-a-role.md): Creates a new custom role with the specified permissions. - [Create a tag policy](https://docs.strait.dev/api-reference/rbac/create-a-tag-policy.md): Creates a policy restricting access based on resource tags. - [Delete a resource policy](https://docs.strait.dev/api-reference/rbac/delete-a-resource-policy.md): Permanently deletes a resource policy. - [Delete a role](https://docs.strait.dev/api-reference/rbac/delete-a-role.md): Permanently deletes a custom role. Members with this role lose its permissions. - [Delete a tag policy](https://docs.strait.dev/api-reference/rbac/delete-a-tag-policy.md): Permanently deletes a tag policy. - [Get a role](https://docs.strait.dev/api-reference/rbac/get-a-role.md): Returns details of a specific role including its permissions. - [List members](https://docs.strait.dev/api-reference/rbac/list-members.md): Returns all members and their roles in the current project. - [List resource policies](https://docs.strait.dev/api-reference/rbac/list-resource-policies.md): Returns all resource policies in the current project. - [List roles](https://docs.strait.dev/api-reference/rbac/list-roles.md): Returns all roles defined in the current project. - [List tag policies](https://docs.strait.dev/api-reference/rbac/list-tag-policies.md): Returns all tag policies in the current project. - [Remove a member](https://docs.strait.dev/api-reference/rbac/remove-a-member.md): Removes a user's role assignment from the current project. - [Seed system roles](https://docs.strait.dev/api-reference/rbac/seed-system-roles.md): Creates the default system roles (admin, editor, viewer) if they do not exist. - [Update a role](https://docs.strait.dev/api-reference/rbac/update-a-role.md): Updates an existing role's name or permissions. - [Activate a referral code](https://docs.strait.dev/api-reference/referrals/activate-a-referral-code.md): Activates a referral code to receive the referral benefit. - [Create a referral code](https://docs.strait.dev/api-reference/referrals/create-a-referral-code.md): Generates a new referral code for sharing with other users. - [List referrals](https://docs.strait.dev/api-reference/referrals/list-referrals.md): Returns all referral codes and their activation status. - [List available regions](https://docs.strait.dev/api-reference/regions/list-available-regions.md): Returns all available execution regions. - [Bulk cancel all active runs](https://docs.strait.dev/api-reference/runs/bulk-cancel-all-active-runs.md): Cancels all active runs in the current project. - [Bulk cancel runs](https://docs.strait.dev/api-reference/runs/bulk-cancel-runs.md): Cancels multiple runs matching the provided IDs. - [Bulk replay dead-letter runs](https://docs.strait.dev/api-reference/runs/bulk-replay-dead-letter-runs.md): Replays multiple runs from the dead-letter queue. - [Bulk replay runs](https://docs.strait.dev/api-reference/runs/bulk-replay-runs.md): Replays multiple runs matching the provided IDs. - [Cancel a run](https://docs.strait.dev/api-reference/runs/cancel-a-run.md): Cancels a queued or executing run. - [Get a run](https://docs.strait.dev/api-reference/runs/get-a-run.md): Returns details of a specific job run. - [Get debug bundle](https://docs.strait.dev/api-reference/runs/get-debug-bundle.md): Returns a comprehensive debug bundle with all run data for troubleshooting. - [Get LLM stream chunks](https://docs.strait.dev/api-reference/runs/get-llm-stream-chunks.md): Returns stored LLM streaming chunks for a run. - [Get run dependency status](https://docs.strait.dev/api-reference/runs/get-run-dependency-status.md): Returns the status of all dependencies for a run. - [List child runs](https://docs.strait.dev/api-reference/runs/list-child-runs.md): Returns all child runs spawned by the specified run. - [List dead-letter queue runs](https://docs.strait.dev/api-reference/runs/list-dead-letter-queue-runs.md): Returns runs that have exhausted all retry attempts. - [List run checkpoints](https://docs.strait.dev/api-reference/runs/list-run-checkpoints.md): Returns all checkpoints saved during a run's execution. - [List run events](https://docs.strait.dev/api-reference/runs/list-run-events.md): Returns the event log for a specific run. - [List run lineage](https://docs.strait.dev/api-reference/runs/list-run-lineage.md): Returns the parent-child lineage tree for a run. - [List run outputs](https://docs.strait.dev/api-reference/runs/list-run-outputs.md): Returns all structured outputs produced by a run. - [List run resources](https://docs.strait.dev/api-reference/runs/list-run-resources.md): Returns resource utilization snapshots for a run. - [List run state](https://docs.strait.dev/api-reference/runs/list-run-state.md): Returns all key-value pairs in the run's state store. - [List run tool calls](https://docs.strait.dev/api-reference/runs/list-run-tool-calls.md): Returns all tool calls made during a run's execution. - [List run usage](https://docs.strait.dev/api-reference/runs/list-run-usage.md): Returns resource usage records for a specific run. - [List runs](https://docs.strait.dev/api-reference/runs/list-runs.md): Returns a paginated list of job runs. - [Pause a run](https://docs.strait.dev/api-reference/runs/pause-a-run.md): Pauses an executing run at the next safe checkpoint. - [Replay a dead-letter run](https://docs.strait.dev/api-reference/runs/replay-a-dead-letter-run.md): Replays a single run from the dead-letter queue. - [Replay a run](https://docs.strait.dev/api-reference/runs/replay-a-run.md): Creates a new run with the same configuration as the original. - [Reschedule a run](https://docs.strait.dev/api-reference/runs/reschedule-a-run.md): Reschedules a queued run to execute at a different time. - [Reset idempotency key](https://docs.strait.dev/api-reference/runs/reset-idempotency-key.md): Clears the idempotency key for a run, allowing re-triggering. - [Restart a run](https://docs.strait.dev/api-reference/runs/restart-a-run.md): Restarts a run from the beginning, discarding current progress. - [Resume a run](https://docs.strait.dev/api-reference/runs/resume-a-run.md): Resumes a paused run from its last checkpoint. - [Set debug mode](https://docs.strait.dev/api-reference/runs/set-debug-mode.md): Enables or disables debug mode for a run, increasing log verbosity. - [Stream run updates](https://docs.strait.dev/api-reference/runs/stream-run-updates.md): Opens an SSE stream for real-time updates on a run's execution. - [Annotate a run](https://docs.strait.dev/api-reference/sdk/annotate-a-run.md): Attaches metadata annotations to a run for search and filtering. - [Continue execution](https://docs.strait.dev/api-reference/sdk/continue-execution.md): Signals that the run should continue with a new execution step. - [Delete a memory value](https://docs.strait.dev/api-reference/sdk/delete-a-memory-value.md): Removes a key-value pair from persistent memory. - [Delete a state value](https://docs.strait.dev/api-reference/sdk/delete-a-state-value.md): Removes a key-value pair from the run's state store. - [Get a memory value](https://docs.strait.dev/api-reference/sdk/get-a-memory-value.md): Retrieves a value from persistent memory by key. - [Get a state value](https://docs.strait.dev/api-reference/sdk/get-a-state-value.md): Returns a specific value from the run's state store by key. - [Get run payload](https://docs.strait.dev/api-reference/sdk/get-run-payload.md): Returns the payload for a run so the SDK can begin execution. - [List memory entries](https://docs.strait.dev/api-reference/sdk/list-memory-entries.md): Returns all key-value pairs in persistent memory for the run's job. - [List run state](https://docs.strait.dev/api-reference/sdk/list-run-state.md): Returns all key-value pairs in the run's state store. - [Mark run as complete](https://docs.strait.dev/api-reference/sdk/mark-run-as-complete.md): Marks the run as successfully completed with optional result data. - [Mark run as failed](https://docs.strait.dev/api-reference/sdk/mark-run-as-failed.md): Marks the run as failed with an error message and optional details. - [Record a tool call](https://docs.strait.dev/api-reference/sdk/record-a-tool-call.md): Records an LLM tool call for observability and debugging. - [Record an iteration](https://docs.strait.dev/api-reference/sdk/record-an-iteration.md): Records an iteration in a loop-based execution pattern. - [Record an output](https://docs.strait.dev/api-reference/sdk/record-an-output.md): Records a structured output produced by the run. - [Report execution progress](https://docs.strait.dev/api-reference/sdk/report-execution-progress.md): Reports execution progress as a percentage for monitoring. - [Report resource usage](https://docs.strait.dev/api-reference/sdk/report-resource-usage.md): Reports resource usage (tokens, compute time, etc.) for billing. - [Report resource utilization](https://docs.strait.dev/api-reference/sdk/report-resource-utilization.md): Reports CPU, memory, and other resource utilization during execution. - [Save a checkpoint](https://docs.strait.dev/api-reference/sdk/save-a-checkpoint.md): Saves a checkpoint so the run can resume from this point on retry. - [Save a resource snapshot](https://docs.strait.dev/api-reference/sdk/save-a-resource-snapshot.md): Saves a point-in-time snapshot of resource utilization. - [Send a heartbeat](https://docs.strait.dev/api-reference/sdk/send-a-heartbeat.md): Sends a heartbeat to indicate the run is still actively executing. - [Send a log entry](https://docs.strait.dev/api-reference/sdk/send-a-log-entry.md): Sends a structured log entry from the running job to Strait. - [Send a stream chunk](https://docs.strait.dev/api-reference/sdk/send-a-stream-chunk.md): Sends a streaming chunk for real-time output from LLM-powered runs. - [Set a memory value](https://docs.strait.dev/api-reference/sdk/set-a-memory-value.md): Stores a value in persistent memory that survives across run attempts. - [Set run state](https://docs.strait.dev/api-reference/sdk/set-run-state.md): Sets a key-value pair in the run's state store. - [Spawn a child run](https://docs.strait.dev/api-reference/sdk/spawn-a-child-run.md): Spawns a child run from within the current run for fan-out patterns. - [Wait for an external event](https://docs.strait.dev/api-reference/sdk/wait-for-an-external-event.md): Pauses the run until an external event with the specified key is received. - [Create a secret](https://docs.strait.dev/api-reference/secrets/create-a-secret.md): Creates a new encrypted secret for use in job payloads. - [Delete a secret](https://docs.strait.dev/api-reference/secrets/delete-a-secret.md): Permanently deletes a secret. - [List secrets](https://docs.strait.dev/api-reference/secrets/list-secrets.md): Returns all secrets in the current project. Values are redacted. - [Get project statistics](https://docs.strait.dev/api-reference/stats/get-project-statistics.md): Returns aggregate statistics for the current project including job and run counts. - [Create a webhook subscription](https://docs.strait.dev/api-reference/webhooks/create-a-webhook-subscription.md): Creates a new webhook subscription to receive event notifications. - [Delete a webhook subscription](https://docs.strait.dev/api-reference/webhooks/delete-a-webhook-subscription.md): Removes a webhook subscription, stopping further deliveries. - [Get a webhook delivery](https://docs.strait.dev/api-reference/webhooks/get-a-webhook-delivery.md): Returns details of a specific webhook delivery attempt. - [List webhook deliveries](https://docs.strait.dev/api-reference/webhooks/list-webhook-deliveries.md): Returns a paginated list of webhook delivery attempts. - [List webhook deliveries (legacy)](https://docs.strait.dev/api-reference/webhooks/list-webhook-deliveries-legacy.md): Returns a paginated list of webhook delivery attempts. Legacy endpoint, prefer /v1/webhooks/deliveries. - [List webhook subscriptions](https://docs.strait.dev/api-reference/webhooks/list-webhook-subscriptions.md): Returns all webhook subscriptions in the current project. - [Replay a webhook delivery](https://docs.strait.dev/api-reference/webhooks/replay-a-webhook-delivery.md): Replays a webhook delivery with the original payload. - [Retry a webhook delivery](https://docs.strait.dev/api-reference/webhooks/retry-a-webhook-delivery.md): Retries a failed webhook delivery attempt. - [Retry a webhook delivery (legacy)](https://docs.strait.dev/api-reference/webhooks/retry-a-webhook-delivery-legacy.md): Retries a failed webhook delivery. Legacy endpoint, prefer /v1/webhooks/deliveries/{id}/retry. - [Rotate webhook signing secret](https://docs.strait.dev/api-reference/webhooks/rotate-webhook-signing-secret.md): Rotates the HMAC signing secret for a webhook subscription with a grace period during which both old and new signatures are sent. - [Test a webhook](https://docs.strait.dev/api-reference/webhooks/test-a-webhook.md): Sends a test payload to a webhook URL to verify connectivity. - [Create or update workflow policy](https://docs.strait.dev/api-reference/workflow-policies/create-or-update-workflow-policy.md): Creates or updates the workflow execution policy for a project. - [Get workflow policy](https://docs.strait.dev/api-reference/workflow-policies/get-workflow-policy.md): Returns the workflow execution policy for a project. - [Bulk cancel workflow runs](https://docs.strait.dev/api-reference/workflow-runs/bulk-cancel-workflow-runs.md): Cancels multiple workflow runs matching the provided filters. - [Bulk replay workflow runs](https://docs.strait.dev/api-reference/workflow-runs/bulk-replay-workflow-runs.md): Replays multiple workflow runs matching the provided filters. - [Cancel a workflow run](https://docs.strait.dev/api-reference/workflow-runs/cancel-a-workflow-run.md): Cancels an active workflow run and all its pending steps. - [Compare two workflow runs](https://docs.strait.dev/api-reference/workflow-runs/compare-two-workflow-runs.md): Returns a diff between two workflow runs highlighting status changes, duration differences, and steps present in only one run. - [Compensate a failed workflow run](https://docs.strait.dev/api-reference/workflow-runs/compensate-a-failed-workflow-run.md): Triggers compensation for previously completed steps in reverse topological order. Only valid for failed or timed_out runs. - [Explain workflow run execution](https://docs.strait.dev/api-reference/workflow-runs/explain-workflow-run-execution.md): Returns a human-readable explanation of workflow run execution decisions. - [Get a workflow run](https://docs.strait.dev/api-reference/workflow-runs/get-a-workflow-run.md): Returns details of a specific workflow run including step statuses. - [Get compensation plan](https://docs.strait.dev/api-reference/workflow-runs/get-compensation-plan.md): Returns the compensation plan for a workflow run without executing it. Shows which steps would be compensated and in what order. - [Get workflow run debug view](https://docs.strait.dev/api-reference/workflow-runs/get-workflow-run-debug-view.md): Returns a full debug timeline with per-step status, timing, cost, input/output, and data flow between steps. - [Get workflow run graph](https://docs.strait.dev/api-reference/workflow-runs/get-workflow-run-graph.md): Returns the execution graph for a workflow run with step statuses. - [Get workflow run labels](https://docs.strait.dev/api-reference/workflow-runs/get-workflow-run-labels.md): Returns the labels attached to a workflow run. - [Get workflow run timeline](https://docs.strait.dev/api-reference/workflow-runs/get-workflow-run-timeline.md): Returns a chronological timeline of events for a workflow run. - [List workflow runs](https://docs.strait.dev/api-reference/workflow-runs/list-workflow-runs.md): Returns a paginated list of workflow runs in the current project. - [List workflow step runs](https://docs.strait.dev/api-reference/workflow-runs/list-workflow-step-runs.md): Returns all step runs for a specific workflow run. - [Pause a workflow run](https://docs.strait.dev/api-reference/workflow-runs/pause-a-workflow-run.md): Pauses an active workflow run, preventing further steps from executing. - [Resume a workflow run](https://docs.strait.dev/api-reference/workflow-runs/resume-a-workflow-run.md): Resumes a paused workflow run. - [Retry a workflow run](https://docs.strait.dev/api-reference/workflow-runs/retry-a-workflow-run.md): Retries a failed workflow run from the beginning. - [Approve a workflow step](https://docs.strait.dev/api-reference/workflow-steps/approve-a-workflow-step.md): Approves a workflow step that is waiting for manual approval. - [Force-complete a workflow step](https://docs.strait.dev/api-reference/workflow-steps/force-complete-a-workflow-step.md): Forces a workflow step to complete regardless of its current state. - [Replay a workflow subtree](https://docs.strait.dev/api-reference/workflow-steps/replay-a-workflow-subtree.md): Replays a workflow step and all of its downstream dependent steps. - [Retry a workflow step](https://docs.strait.dev/api-reference/workflow-steps/retry-a-workflow-step.md): Retries a failed workflow step. - [Skip a workflow step](https://docs.strait.dev/api-reference/workflow-steps/skip-a-workflow-step.md): Skips a pending workflow step and continues execution. - [Clone a workflow](https://docs.strait.dev/api-reference/workflows/clone-a-workflow.md): Creates a copy of an existing workflow with a new name. - [Create a workflow](https://docs.strait.dev/api-reference/workflows/create-a-workflow.md): Creates a new workflow with step definitions and trigger configuration. - [Delete a workflow](https://docs.strait.dev/api-reference/workflows/delete-a-workflow.md): Permanently deletes a workflow and all its associated runs. - [Diff workflow versions](https://docs.strait.dev/api-reference/workflows/diff-workflow-versions.md): Returns the differences between two workflow versions. - [Dry-run a workflow](https://docs.strait.dev/api-reference/workflows/dry-run-a-workflow.md): Validates a workflow execution without creating actual runs. - [Get a workflow](https://docs.strait.dev/api-reference/workflows/get-a-workflow.md): Returns details of a specific workflow including its step definitions. - [Get a workflow version](https://docs.strait.dev/api-reference/workflows/get-a-workflow-version.md): Returns details of a specific workflow version. - [Get active workflow versions](https://docs.strait.dev/api-reference/workflows/get-active-workflow-versions.md): Returns the currently active versions for a workflow, including traffic splits. - [Get workflow graph](https://docs.strait.dev/api-reference/workflows/get-workflow-graph.md): Returns the DAG representation of the workflow's step dependencies. - [Get workflow version impact](https://docs.strait.dev/api-reference/workflows/get-workflow-version-impact.md): Returns the impact analysis for a specific workflow version. - [List runs for a workflow](https://docs.strait.dev/api-reference/workflows/list-runs-for-a-workflow.md): Returns a paginated list of runs for a specific workflow. - [List workflow version steps](https://docs.strait.dev/api-reference/workflows/list-workflow-version-steps.md): Returns the step definitions for a specific workflow version. - [List workflow versions](https://docs.strait.dev/api-reference/workflows/list-workflow-versions.md): Returns all versions of a workflow definition. - [List workflows](https://docs.strait.dev/api-reference/workflows/list-workflows.md): Returns a paginated list of workflows in the current project. - [Plan a workflow execution](https://docs.strait.dev/api-reference/workflows/plan-a-workflow-execution.md): Generates an execution plan showing which steps will run and in what order. - [Simulate a workflow execution](https://docs.strait.dev/api-reference/workflows/simulate-a-workflow-execution.md): Simulates a workflow run with mock data to preview step outcomes. - [Trigger a workflow](https://docs.strait.dev/api-reference/workflows/trigger-a-workflow.md): Triggers a new execution of the workflow. - [Update a workflow](https://docs.strait.dev/api-reference/workflows/update-a-workflow.md): Updates an existing workflow's configuration and step definitions. Set breaking_change to true to acknowledge a breaking update; an audit event is emitted when active runs exist on the previous version. - [Architecture](https://docs.strait.dev/architecture.md): Deep dive into Strait internals, design decisions, and component interactions. - [Billing FAQ](https://docs.strait.dev/billing/faq.md): Frequently asked questions about Strait pricing, billing, and plan limits. - [Pricing](https://docs.strait.dev/billing/pricing.md): Strait pricing plans for teams of all sizes, from hobby projects to enterprise deployments. - [Changelog](https://docs.strait.dev/changelog.md): Recent platform and API updates in Strait. - [CLI](https://docs.strait.dev/cli/overview.md): The Strait CLI has moved to its own repository. - [Adaptive Concurrency](https://docs.strait.dev/concepts/adaptive-concurrency.md): Dynamic worker pool sizing based on system load and throughput. - [Audit Logging](https://docs.strait.dev/concepts/audit-logging.md): Tracking mutations and administrative actions across the system. - [Batch Operations](https://docs.strait.dev/concepts/batch-operations.md): Tracking the results of bulk job trigger requests. - [CDC (Change Data Capture)](https://docs.strait.dev/concepts/cdc.md): Real-time database event streaming. - [ClickHouse Analytics](https://docs.strait.dev/concepts/clickhouse-analytics.md): Optional analytics backend for run metrics, cost tracking, and time-series reporting. - [Cost Budgets](https://docs.strait.dev/concepts/cost-budgets.md): Tracking and limiting AI model usage costs. - [DAG Runtime](https://docs.strait.dev/concepts/dag-runtime.md): Detailed reference for workflow DAG execution, policy controls, explainability, and runtime recovery APIs. - [Environments](https://docs.strait.dev/concepts/environments.md): Managing project-specific configurations and routing. - [Event Sources](https://docs.strait.dev/concepts/event-sources.md): Named inbound event channels that route external events to jobs and workflows. - [Event Triggers](https://docs.strait.dev/concepts/event-triggers.md): Pause execution until an external event arrives, with timeout support and zero held goroutines. - [Jobs](https://docs.strait.dev/concepts/jobs.md): The fundamental unit of work in Strait. - [Log Drains](https://docs.strait.dev/concepts/log-drains.md): Stream run logs to external HTTP destinations. - [Managed Execution](https://docs.strait.dev/concepts/managed-execution.md): Run jobs inside ephemeral Fly Machines with warm starts, pause/resume, and cost tracking. - [Resilience](https://docs.strait.dev/concepts/resilience.md): Circuit breakers, concurrency limiting, rate limiting, and graceful degradation patterns in Strait. - [Retry Strategies](https://docs.strait.dev/concepts/retry-strategies.md): How Strait handles execution failures. - [Runs](https://docs.strait.dev/concepts/runs.md): The execution lifecycle of a job. - [Scheduling](https://docs.strait.dev/concepts/scheduling.md): Managing when jobs and workflows execute. - [Versioning](https://docs.strait.dev/concepts/versioning.md): How Strait tracks job and workflow versions for safe updates and exact run provenance. - [Webhook Subscriptions](https://docs.strait.dev/concepts/webhook-subscriptions.md): Project-level webhook subscriptions for run lifecycle events. - [Webhooks](https://docs.strait.dev/concepts/webhooks.md): Real-time notifications for job run terminal states and event triggers. - [Workflows](https://docs.strait.dev/concepts/workflows.md): Coordinating complex tasks with Directed Acyclic Graphs (DAGs). - [Database](https://docs.strait.dev/configuration/database.md): Configuration and management of the PostgreSQL and Redis data stores. - [Environment Variables](https://docs.strait.dev/configuration/environment-variables.md): Complete reference of environment variables used to configure Strait. - [Contributing](https://docs.strait.dev/development/contributing.md): Guidelines for contributing to Strait project. - [Database Schema](https://docs.strait.dev/development/database-schema.md): Detailed reference of the PostgreSQL database schema and migration system. - [Technology Choices](https://docs.strait.dev/development/technology-choices.md): Detailed rationale behind each technology used in Strait. - [Testing](https://docs.strait.dev/development/testing.md): Overview of the testing infrastructure and patterns used in Strait. - [API Key Rotation](https://docs.strait.dev/guides/api-key-rotation.md): Rotate keys with grace windows for zero-downtime credential rollovers. - [Audit Events](https://docs.strait.dev/guides/audit-events.md): Track and query security-sensitive actions with audit_events. - [Authentication & Authorization](https://docs.strait.dev/guides/authentication.md): Authentication schemes, API key scopes, actor identity, and role-based access control. - [Capacity Planning](https://docs.strait.dev/guides/capacity-planning.md): Use load test results to plan your Strait deployment hardware and configuration. - [DAG Operations Playbook](https://docs.strait.dev/guides/dag-operations-playbook.md): Operator runbook for diagnosing, recovering, and hardening workflow DAG executions in production. - [Debug Bundles](https://docs.strait.dev/guides/debug-bundles.md): Aggregating run data for troubleshooting and observability. - [Deployment](https://docs.strait.dev/guides/deployment.md): Guide for deploying and scaling Strait in production. - [Event Triggers](https://docs.strait.dev/guides/event-triggers.md): Build durable human-in-the-loop workflows and inter-service coordination with event triggers. - [Idempotency](https://docs.strait.dev/guides/idempotency.md): Preventing duplicate job executions using idempotency keys and payload hashing. - [Job Dependencies](https://docs.strait.dev/guides/job-dependencies.md): Ensuring execution order between jobs using dependencies. - [Job Groups](https://docs.strait.dev/guides/job-groups.md): Organizing jobs into logical groups for better management. - [Load Testing](https://docs.strait.dev/guides/load-testing.md): Test your self-hosted Strait deployment to find capacity limits and validate reliability before going to production. - [OIDC Authentication](https://docs.strait.dev/guides/oidc.md): Optional OpenID Connect bearer-token validation for user API access. - [Performance Tuning](https://docs.strait.dev/guides/performance-tuning.md): Optimize Strait for high-throughput job execution and low-latency API responses. - [RBAC & Policy Authorization](https://docs.strait.dev/guides/rbac.md): Roles, inheritance, resource policies, and tag policies in Strait. - [SDK Integration](https://docs.strait.dev/guides/sdk-integration.md): Integrating your job code with Strait using official SDK client libraries. - [Security](https://docs.strait.dev/guides/security.md): Security features and protections implemented in Strait. - [Workflow Approvals](https://docs.strait.dev/guides/workflow-approvals.md): Add human approval gates to workflow steps for review, compliance, and controlled deployments. - [Integrations](https://docs.strait.dev/integrations/index.md): Connect Strait to your existing infrastructure with built-in integrations for databases, message brokers, and observability tools. - [Introduction](https://docs.strait.dev/introduction.md): Open-source job orchestration for background jobs, workflows, and AI agents. One binary, one database, zero message brokers. - [Migration Strategy](https://docs.strait.dev/migrations.md): How Strait manages immutable migrations and baseline bootstraps. - [API Key Rotation Rollout](https://docs.strait.dev/operations/api-key-rotation-rollout.md): Zero-downtime key rotation process with grace periods. - [AuthZ Incident Response](https://docs.strait.dev/operations/incident-response-authz.md): Runbook for authentication and authorization incidents. - [Monitoring & Alerts](https://docs.strait.dev/operations/monitoring-and-alerts.md): Production monitoring baselines for health checks, metrics, auth, RBAC, audit events, and webhooks. - [OIDC Rollout](https://docs.strait.dev/operations/oidc-rollout.md): Safely roll out OIDC authentication for user API traffic. - [RBAC Policy Rollout](https://docs.strait.dev/operations/rbac-policy-rollout.md): Safe rollout process for role inheritance, resource policies, and tag policies. - [Quick Start](https://docs.strait.dev/quickstart.md): Get Strait up and running in minutes. - [Configuration](https://docs.strait.dev/sdks/configuration.md): Universal strait.json config file shared by all SDKs and the CLI. - [Go SDK](https://docs.strait.dev/sdks/go.md): The Go SDK has moved to its own repository. - [SDK Overview](https://docs.strait.dev/sdks/overview.md): Official Strait SDKs for TypeScript, Python, Go, Ruby, and Rust — each in its own dedicated repository. - [Python SDK](https://docs.strait.dev/sdks/python.md): The Python SDK has moved to its own repository. - [Ruby SDK](https://docs.strait.dev/sdks/ruby.md): The Ruby SDK has moved to its own repository. - [Rust SDK](https://docs.strait.dev/sdks/rust.md): The Rust SDK has moved to its own repository. - [TypeScript SDK](https://docs.strait.dev/sdks/typescript.md): Effect-first TypeScript SDK with generated operations, authoring DSL, and XState FSMs. ## OpenAPI Specs - [openapi](https://docs.strait.dev/api-reference/openapi.json)