{"openapi":"3.1.1","info":{"title":"Deck API","version":"2.0.0"},"servers":[{"url":"https:\/\/api.deck.co\/v2","description":"Production"}],"paths":{"\/agents":{"post":{"tags":["Agents"],"summary":"Create an agent","requestBody":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/CreateAgentRequest"}},"text\/json":{"schema":{"$ref":"#\/components\/schemas\/CreateAgentRequest"}},"application\/*+json":{"schema":{"$ref":"#\/components\/schemas\/CreateAgentRequest"}}},"required":true},"responses":{"201":{"description":"Created","content":{"text\/plain":{"schema":{"$ref":"#\/components\/schemas\/CreateAgentResponse"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/CreateAgentResponse"}},"text\/json":{"schema":{"$ref":"#\/components\/schemas\/CreateAgentResponse"}}}},"400":{"description":"Bad request \u2014 validation error or malformed input.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ValidationErrorResponse"}}}},"401":{"description":"Unauthorized."},"403":{"description":"Forbidden."},"404":{"description":"Not found \u2014 the requested resource does not exist.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"409":{"description":"Conflict \u2014 the request is valid but cannot be completed in the current state. Also returned when an `Idempotency-Key` is reused with different request parameters (`idempotency_error`).","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"422":{"description":"Unprocessable content \u2014 the request body is understood but contains invalid values.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"429":{"description":"Too many requests \u2014 the organization-wide API rate limit was exceeded (`rate_limit_exceeded`). Retry with exponential backoff.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}}},"operationId":"createAgent","description":"Creates a new agent. An agent is an automation scoped to a use case that organizes related tasks.","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Optional key that makes the request idempotent. Retrying with the same key returns the original response instead of repeating the operation; keys expire after 24 hours. Any string up to 256 characters. See [Idempotency](\/api\/idempotency).","schema":{"type":"string","maxLength":256,"example":"550e8400-e29b-41d4-a716-446655440000"}}]},"get":{"tags":["Agents"],"summary":"List agents","parameters":[{"name":"limit","in":"query","description":"Maximum number of items to return (1-100, default 20)","schema":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["integer","string"],"format":"int32","minimum":1,"maximum":100,"default":20,"example":20}},{"name":"cursor","in":"query","schema":{"type":"string"},"description":"Cursor from a previous response for pagination."}],"responses":{"200":{"description":"OK","content":{"text\/plain":{"schema":{"$ref":"#\/components\/schemas\/PaginatedResponseOfListAgentData"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/PaginatedResponseOfListAgentData"}},"text\/json":{"schema":{"$ref":"#\/components\/schemas\/PaginatedResponseOfListAgentData"}}}},"400":{"description":"Bad request \u2014 validation error or malformed input.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ValidationErrorResponse"}}}},"401":{"description":"Unauthorized."},"403":{"description":"Forbidden."},"404":{"description":"Not found \u2014 the requested resource does not exist.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"409":{"description":"Conflict \u2014 the request is valid but cannot be completed in the current state.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"422":{"description":"Unprocessable content \u2014 the request body is understood but contains invalid values.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"429":{"description":"Too many requests \u2014 the organization-wide API rate limit was exceeded (`rate_limit_exceeded`). Retry with exponential backoff.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}}},"operationId":"listAgents","description":"Returns a paginated list of agents in your organization."}},"\/agents\/{agent_id}":{"get":{"tags":["Agents"],"summary":"Retrieve an agent","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","pattern":"^agt_","example":"agt_AbC123xYz456"},"description":"Unique identifier for the agent (prefixed with `agt_`)."}],"responses":{"200":{"description":"OK","content":{"text\/plain":{"schema":{"$ref":"#\/components\/schemas\/GetAgentResponse"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/GetAgentResponse"}},"text\/json":{"schema":{"$ref":"#\/components\/schemas\/GetAgentResponse"}}}},"400":{"description":"Bad request \u2014 validation error or malformed input.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ValidationErrorResponse"}}}},"401":{"description":"Unauthorized."},"403":{"description":"Forbidden."},"404":{"description":"Not found \u2014 the requested resource does not exist.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"409":{"description":"Conflict \u2014 the request is valid but cannot be completed in the current state.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"422":{"description":"Unprocessable content \u2014 the request body is understood but contains invalid values.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"429":{"description":"Too many requests \u2014 the organization-wide API rate limit was exceeded (`rate_limit_exceeded`). Retry with exponential backoff.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}}},"operationId":"getAgent","description":"Returns the full agent object including its associated tasks."},"patch":{"tags":["Agents"],"summary":"Update an agent","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","pattern":"^agt_","example":"agt_AbC123xYz456"},"description":"Unique identifier for the agent (prefixed with `agt_`)."},{"name":"Idempotency-Key","in":"header","required":false,"description":"Optional key that makes the request idempotent. Retrying with the same key returns the original response instead of repeating the operation; keys expire after 24 hours. Any string up to 256 characters. See [Idempotency](\/api\/idempotency).","schema":{"type":"string","maxLength":256,"example":"550e8400-e29b-41d4-a716-446655440000"}}],"requestBody":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/UpdateAgentRequest"}},"text\/json":{"schema":{"$ref":"#\/components\/schemas\/UpdateAgentRequest"}},"application\/*+json":{"schema":{"$ref":"#\/components\/schemas\/UpdateAgentRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"text\/plain":{"schema":{"$ref":"#\/components\/schemas\/GetAgentResponse"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/GetAgentResponse"}},"text\/json":{"schema":{"$ref":"#\/components\/schemas\/GetAgentResponse"}}}},"400":{"description":"Bad request \u2014 validation error or malformed input.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ValidationErrorResponse"}}}},"401":{"description":"Unauthorized."},"403":{"description":"Forbidden."},"404":{"description":"Not found \u2014 the requested resource does not exist.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"409":{"description":"Conflict \u2014 the request is valid but cannot be completed in the current state. Also returned when an `Idempotency-Key` is reused with different request parameters (`idempotency_error`).","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"422":{"description":"Unprocessable content \u2014 the request body is understood but contains invalid values.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"429":{"description":"Too many requests \u2014 the organization-wide API rate limit was exceeded (`rate_limit_exceeded`). Retry with exponential backoff.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}}},"operationId":"updateAgent","description":"Updates an agent's name or description. Only the fields you include in the request body are updated."},"delete":{"tags":["Agents"],"summary":"Delete an agent","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","pattern":"^agt_","example":"agt_AbC123xYz456"},"description":"Unique identifier for the agent (prefixed with `agt_`)."},{"name":"Idempotency-Key","in":"header","required":false,"description":"Optional key that makes the request idempotent. Retrying with the same key returns the original response instead of repeating the operation; keys expire after 24 hours. Any string up to 256 characters. See [Idempotency](\/api\/idempotency).","schema":{"type":"string","maxLength":256,"example":"550e8400-e29b-41d4-a716-446655440000"}}],"responses":{"200":{"description":"OK","content":{"text\/plain":{"schema":{"$ref":"#\/components\/schemas\/DeleteAgentResponse"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/DeleteAgentResponse"}},"text\/json":{"schema":{"$ref":"#\/components\/schemas\/DeleteAgentResponse"}}}},"400":{"description":"Bad request \u2014 validation error or malformed input.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ValidationErrorResponse"}}}},"401":{"description":"Unauthorized."},"403":{"description":"Forbidden."},"404":{"description":"Not found \u2014 the requested resource does not exist.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"409":{"description":"Conflict \u2014 the request is valid but cannot be completed in the current state. Also returned when an `Idempotency-Key` is reused with different request parameters (`idempotency_error`).","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"422":{"description":"Unprocessable content \u2014 the request body is understood but contains invalid values.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"429":{"description":"Too many requests \u2014 the organization-wide API rate limit was exceeded (`rate_limit_exceeded`). Retry with exponential backoff.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}}},"operationId":"deleteAgent","description":"Permanently deletes an agent."}},"\/credentials":{"post":{"tags":["Credentials"],"summary":"Create a credential","requestBody":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/CreateCredentialRequest"},"examples":{"username_password":{"summary":"Username and password","value":{"source_id":"src_AbC123xYz456","auth_method":"username_password","auth_credentials":{"username":"user@example.com","password":"..."},"external_id":"cust_42"}},"username":{"summary":"Username only","value":{"source_id":"src_AbC123xYz456","auth_method":"username","auth_credentials":{"username":"user@example.com"},"external_id":"cust_42"}},"source_fields":{"summary":"Source fields only","value":{"source_id":"src_AbC123xYz456","auth_method":"source_fields","auth_credentials":{"source_fields":{"company_id":"ACME-4412","account_number":"88213"}},"external_id":"cust_42"}},"google_sso":{"summary":"Google sign-in","value":{"source_id":"src_AbC123xYz456","auth_method":"google_sso","auth_credentials":{"email":"user@example.com","password":"..."},"external_id":"cust_42"}},"apple_sso":{"summary":"Apple sign-in","value":{"source_id":"src_AbC123xYz456","auth_method":"apple_sso","auth_credentials":{"email":"user@example.com","password":"..."},"external_id":"cust_42"}},"geolocation":{"summary":"With geolocation","value":{"source_id":"src_AbC123xYz456","auth_method":"username_password","auth_credentials":{"username":"user@example.com","password":"..."},"external_id":"cust_42","geolocation":{"country":"FR"}}}}},"text\/json":{"schema":{"$ref":"#\/components\/schemas\/CreateCredentialRequest"}},"application\/*+json":{"schema":{"$ref":"#\/components\/schemas\/CreateCredentialRequest"}}},"required":true},"responses":{"201":{"description":"Created","content":{"text\/plain":{"schema":{"$ref":"#\/components\/schemas\/CreateCredentialResponse"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/CreateCredentialResponse"}},"text\/json":{"schema":{"$ref":"#\/components\/schemas\/CreateCredentialResponse"}}}},"400":{"description":"Bad request \u2014 validation error or malformed input.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ValidationErrorResponse"}}}},"401":{"description":"Unauthorized."},"403":{"description":"Forbidden."},"404":{"description":"Not found \u2014 the requested resource does not exist.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"409":{"description":"Conflict \u2014 the request is valid but cannot be completed in the current state. Also returned when an `Idempotency-Key` is reused with different request parameters (`idempotency_error`).","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"422":{"description":"Unprocessable content \u2014 the request body is understood but contains invalid values.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"429":{"description":"Too many requests \u2014 the organization-wide API rate limit was exceeded (`rate_limit_exceeded`). Retry with exponential backoff.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}}},"operationId":"createCredential","description":"Stores a new credential for authenticating with an external source. The credential is created immediately and can be used on task runs.","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Optional key that makes the request idempotent. Retrying with the same key returns the original response instead of repeating the operation; keys expire after 24 hours. Any string up to 256 characters. See [Idempotency](\/api\/idempotency).","schema":{"type":"string","maxLength":256,"example":"550e8400-e29b-41d4-a716-446655440000"}}]},"get":{"tags":["Credentials"],"summary":"List credentials","parameters":[{"name":"limit","in":"query","description":"Maximum number of items to return (1-100, default 20)","schema":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["integer","string"],"format":"int32","minimum":1,"maximum":100,"default":20,"example":20}},{"name":"cursor","in":"query","schema":{"type":"string"},"description":"Cursor from a previous response for pagination."},{"name":"source_id","in":"query","schema":{"type":"array","items":{"type":"string","pattern":"^src_","example":"src_AbC123xYz456"}},"description":"Unique identifier for the source (prefixed with `src_`). Pass multiple values comma-separated (e.g. `?source_id=a,b`); repeated keys are also accepted.","style":"form","explode":false},{"name":"status","in":"query","schema":{"type":"array","items":{"type":"string"}},"description":"Filter by credential status: unverified, verified, invalid, deleted. Pass multiple values comma-separated (e.g. `?status=a,b`); repeated keys are also accepted.","style":"form","explode":false},{"name":"external_id","in":"query","schema":{"type":"string"},"description":"Filter by the external ID assigned when creating the credential."}],"responses":{"200":{"description":"OK","content":{"text\/plain":{"schema":{"$ref":"#\/components\/schemas\/PaginatedResponseOfListCredentialData"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/PaginatedResponseOfListCredentialData"}},"text\/json":{"schema":{"$ref":"#\/components\/schemas\/PaginatedResponseOfListCredentialData"}}}},"400":{"description":"Bad request \u2014 validation error or malformed input.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ValidationErrorResponse"}}}},"401":{"description":"Unauthorized."},"403":{"description":"Forbidden."},"404":{"description":"Not found \u2014 the requested resource does not exist.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"409":{"description":"Conflict \u2014 the request is valid but cannot be completed in the current state.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"422":{"description":"Unprocessable content \u2014 the request body is understood but contains invalid values.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"429":{"description":"Too many requests \u2014 the organization-wide API rate limit was exceeded (`rate_limit_exceeded`). Retry with exponential backoff.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}}},"operationId":"listCredentials","description":"Returns a paginated list of credentials. Supports filtering by source, status, and external ID."}},"\/credentials\/{credential_id}":{"get":{"tags":["Credentials"],"summary":"Retrieve a credential","parameters":[{"name":"credential_id","in":"path","required":true,"schema":{"type":"string","pattern":"^cred_","example":"cred_AbC123xYz456"},"description":"Unique identifier for the credential (prefixed with `cred_`)."}],"responses":{"200":{"description":"OK","content":{"text\/plain":{"schema":{"$ref":"#\/components\/schemas\/GetCredentialResponse"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/GetCredentialResponse"}},"text\/json":{"schema":{"$ref":"#\/components\/schemas\/GetCredentialResponse"}}}},"400":{"description":"Bad request \u2014 validation error or malformed input.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ValidationErrorResponse"}}}},"401":{"description":"Unauthorized."},"403":{"description":"Forbidden."},"404":{"description":"Not found \u2014 the requested resource does not exist.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"409":{"description":"Conflict \u2014 the request is valid but cannot be completed in the current state.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"422":{"description":"Unprocessable content \u2014 the request body is understood but contains invalid values.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"429":{"description":"Too many requests \u2014 the organization-wide API rate limit was exceeded (`rate_limit_exceeded`). Retry with exponential backoff.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}}},"operationId":"getCredential","description":"Returns a single credential by ID."},"patch":{"tags":["Credentials"],"summary":"Update a credential","parameters":[{"name":"credential_id","in":"path","required":true,"schema":{"type":"string","pattern":"^cred_","example":"cred_AbC123xYz456"},"description":"Unique identifier for the credential (prefixed with `cred_`)."},{"name":"Idempotency-Key","in":"header","required":false,"description":"Optional key that makes the request idempotent. Retrying with the same key returns the original response instead of repeating the operation; keys expire after 24 hours. Any string up to 256 characters. See [Idempotency](\/api\/idempotency).","schema":{"type":"string","maxLength":256,"example":"550e8400-e29b-41d4-a716-446655440000"}}],"requestBody":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/UpdateCredentialRequest"}},"text\/json":{"schema":{"$ref":"#\/components\/schemas\/UpdateCredentialRequest"}},"application\/*+json":{"schema":{"$ref":"#\/components\/schemas\/UpdateCredentialRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"text\/plain":{"schema":{"$ref":"#\/components\/schemas\/UpdateCredentialResponse"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/UpdateCredentialResponse"}},"text\/json":{"schema":{"$ref":"#\/components\/schemas\/UpdateCredentialResponse"}}}},"400":{"description":"Bad request \u2014 validation error or malformed input.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ValidationErrorResponse"}}}},"401":{"description":"Unauthorized."},"403":{"description":"Forbidden."},"404":{"description":"Not found \u2014 the requested resource does not exist.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"409":{"description":"Conflict \u2014 the request is valid but cannot be completed in the current state. Also returned when an `Idempotency-Key` is reused with different request parameters (`idempotency_error`).","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"422":{"description":"Unprocessable content \u2014 the request body is understood but contains invalid values.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"429":{"description":"Too many requests \u2014 the organization-wide API rate limit was exceeded (`rate_limit_exceeded`). Retry with exponential backoff.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}}},"operationId":"updateCredential","description":"Updates a credential's authentication details or external ID. Only the fields you include in the request body are updated."},"delete":{"tags":["Credentials"],"summary":"Delete a credential","parameters":[{"name":"credential_id","in":"path","required":true,"schema":{"type":"string","pattern":"^cred_","example":"cred_AbC123xYz456"},"description":"Unique identifier for the credential (prefixed with `cred_`)."},{"name":"Idempotency-Key","in":"header","required":false,"description":"Optional key that makes the request idempotent. Retrying with the same key returns the original response instead of repeating the operation; keys expire after 24 hours. Any string up to 256 characters. See [Idempotency](\/api\/idempotency).","schema":{"type":"string","maxLength":256,"example":"550e8400-e29b-41d4-a716-446655440000"}}],"responses":{"200":{"description":"OK","content":{"text\/plain":{"schema":{"$ref":"#\/components\/schemas\/DeleteCredentialResponse"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/DeleteCredentialResponse"}},"text\/json":{"schema":{"$ref":"#\/components\/schemas\/DeleteCredentialResponse"}}}},"400":{"description":"Bad request \u2014 validation error or malformed input.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ValidationErrorResponse"}}}},"401":{"description":"Unauthorized."},"403":{"description":"Forbidden."},"404":{"description":"Not found \u2014 the requested resource does not exist.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"409":{"description":"Conflict \u2014 the request is valid but cannot be completed in the current state. Also returned when an `Idempotency-Key` is reused with different request parameters (`idempotency_error`).","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"422":{"description":"Unprocessable content \u2014 the request body is understood but contains invalid values.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"429":{"description":"Too many requests \u2014 the organization-wide API rate limit was exceeded (`rate_limit_exceeded`). Retry with exponential backoff.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}}},"operationId":"deleteCredential","description":"Permanently deletes a credential."}},"\/event-destinations":{"post":{"tags":["Event Destinations"],"summary":"Create an event destination","requestBody":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/CreateEventDestinationRequest"}},"text\/json":{"schema":{"$ref":"#\/components\/schemas\/CreateEventDestinationRequest"}},"application\/*+json":{"schema":{"$ref":"#\/components\/schemas\/CreateEventDestinationRequest"}}},"required":true},"responses":{"201":{"description":"Created","content":{"text\/plain":{"schema":{"$ref":"#\/components\/schemas\/EventDestinationResponse"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/EventDestinationResponse"}},"text\/json":{"schema":{"$ref":"#\/components\/schemas\/EventDestinationResponse"}}}},"400":{"description":"Bad request \u2014 validation error or malformed input.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ValidationErrorResponse"}}}},"401":{"description":"Unauthorized."},"403":{"description":"Forbidden."},"404":{"description":"Not found \u2014 the requested resource does not exist.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"409":{"description":"Conflict \u2014 the request is valid but cannot be completed in the current state. Also returned when an `Idempotency-Key` is reused with different request parameters (`idempotency_error`).","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"422":{"description":"Unprocessable content \u2014 the request body is understood but contains invalid values.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"429":{"description":"Too many requests \u2014 the organization-wide API rate limit was exceeded (`rate_limit_exceeded`). Retry with exponential backoff.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}}},"operationId":"createEventDestination","description":"Creates a new event destination (e.g. a webhook endpoint) to receive platform events.","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Optional key that makes the request idempotent. Retrying with the same key returns the original response instead of repeating the operation; keys expire after 24 hours. Any string up to 256 characters. See [Idempotency](\/api\/idempotency).","schema":{"type":"string","maxLength":256,"example":"550e8400-e29b-41d4-a716-446655440000"}}]},"get":{"tags":["Event Destinations"],"summary":"List event destinations","parameters":[{"name":"limit","in":"query","description":"Maximum number of items to return (1-100, default 20)","schema":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["integer","string"],"format":"int32","minimum":1,"maximum":100,"default":20,"example":20}},{"name":"cursor","in":"query","schema":{"type":"string"},"description":"Cursor from a previous response for pagination."}],"responses":{"200":{"description":"OK","content":{"text\/plain":{"schema":{"$ref":"#\/components\/schemas\/PaginatedResponseOfEventDestinationResponse"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/PaginatedResponseOfEventDestinationResponse"}},"text\/json":{"schema":{"$ref":"#\/components\/schemas\/PaginatedResponseOfEventDestinationResponse"}}}},"400":{"description":"Bad request \u2014 validation error or malformed input.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ValidationErrorResponse"}}}},"401":{"description":"Unauthorized."},"403":{"description":"Forbidden."},"404":{"description":"Not found \u2014 the requested resource does not exist.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"409":{"description":"Conflict \u2014 the request is valid but cannot be completed in the current state.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"422":{"description":"Unprocessable content \u2014 the request body is understood but contains invalid values.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"429":{"description":"Too many requests \u2014 the organization-wide API rate limit was exceeded (`rate_limit_exceeded`). Retry with exponential backoff.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}}},"operationId":"listEventDestinations","description":"Returns a paginated list of event destinations."}},"\/event-destinations\/{destination_id}":{"get":{"tags":["Event Destinations"],"summary":"Retrieve an event destination","parameters":[{"name":"destination_id","in":"path","required":true,"schema":{"type":"string","pattern":"^evtd_","example":"evtd_AbC123xYz456"},"description":"Unique identifier for the event destination (prefixed with `evtd_`)."}],"responses":{"200":{"description":"OK","content":{"text\/plain":{"schema":{"$ref":"#\/components\/schemas\/EventDestinationResponse"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/EventDestinationResponse"}},"text\/json":{"schema":{"$ref":"#\/components\/schemas\/EventDestinationResponse"}}}},"400":{"description":"Bad request \u2014 validation error or malformed input.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ValidationErrorResponse"}}}},"401":{"description":"Unauthorized."},"403":{"description":"Forbidden."},"404":{"description":"Not found \u2014 the requested resource does not exist.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"409":{"description":"Conflict \u2014 the request is valid but cannot be completed in the current state.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"422":{"description":"Unprocessable content \u2014 the request body is understood but contains invalid values.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"429":{"description":"Too many requests \u2014 the organization-wide API rate limit was exceeded (`rate_limit_exceeded`). Retry with exponential backoff.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}}},"operationId":"getEventDestination","description":"Returns a single event destination by ID."},"patch":{"tags":["Event Destinations"],"summary":"Update an event destination","parameters":[{"name":"destination_id","in":"path","required":true,"schema":{"type":"string","pattern":"^evtd_","example":"evtd_AbC123xYz456"},"description":"Unique identifier for the event destination (prefixed with `evtd_`)."},{"name":"Idempotency-Key","in":"header","required":false,"description":"Optional key that makes the request idempotent. Retrying with the same key returns the original response instead of repeating the operation; keys expire after 24 hours. Any string up to 256 characters. See [Idempotency](\/api\/idempotency).","schema":{"type":"string","maxLength":256,"example":"550e8400-e29b-41d4-a716-446655440000"}}],"requestBody":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/UpdateEventDestinationRequest"}},"text\/json":{"schema":{"$ref":"#\/components\/schemas\/UpdateEventDestinationRequest"}},"application\/*+json":{"schema":{"$ref":"#\/components\/schemas\/UpdateEventDestinationRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"text\/plain":{"schema":{"$ref":"#\/components\/schemas\/EventDestinationResponse"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/EventDestinationResponse"}},"text\/json":{"schema":{"$ref":"#\/components\/schemas\/EventDestinationResponse"}}}},"400":{"description":"Bad request \u2014 validation error or malformed input.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ValidationErrorResponse"}}}},"401":{"description":"Unauthorized."},"403":{"description":"Forbidden."},"404":{"description":"Not found \u2014 the requested resource does not exist.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"409":{"description":"Conflict \u2014 the request is valid but cannot be completed in the current state. Also returned when an `Idempotency-Key` is reused with different request parameters (`idempotency_error`).","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"422":{"description":"Unprocessable content \u2014 the request body is understood but contains invalid values.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"429":{"description":"Too many requests \u2014 the organization-wide API rate limit was exceeded (`rate_limit_exceeded`). Retry with exponential backoff.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}}},"operationId":"updateEventDestination","description":"Updates an event destination's name, status, or subscribed events. Only the fields you include in the request body are updated."},"delete":{"tags":["Event Destinations"],"summary":"Delete an event destination","parameters":[{"name":"destination_id","in":"path","required":true,"schema":{"type":"string","pattern":"^evtd_","example":"evtd_AbC123xYz456"},"description":"Unique identifier for the event destination (prefixed with `evtd_`)."},{"name":"Idempotency-Key","in":"header","required":false,"description":"Optional key that makes the request idempotent. Retrying with the same key returns the original response instead of repeating the operation; keys expire after 24 hours. Any string up to 256 characters. See [Idempotency](\/api\/idempotency).","schema":{"type":"string","maxLength":256,"example":"550e8400-e29b-41d4-a716-446655440000"}}],"responses":{"200":{"description":"OK","content":{"text\/plain":{"schema":{"$ref":"#\/components\/schemas\/DeleteEventDestinationResponse"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/DeleteEventDestinationResponse"}},"text\/json":{"schema":{"$ref":"#\/components\/schemas\/DeleteEventDestinationResponse"}}}},"400":{"description":"Bad request \u2014 validation error or malformed input.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ValidationErrorResponse"}}}},"401":{"description":"Unauthorized."},"403":{"description":"Forbidden."},"404":{"description":"Not found \u2014 the requested resource does not exist.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"409":{"description":"Conflict \u2014 the request is valid but cannot be completed in the current state. Also returned when an `Idempotency-Key` is reused with different request parameters (`idempotency_error`).","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"422":{"description":"Unprocessable content \u2014 the request body is understood but contains invalid values.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"429":{"description":"Too many requests \u2014 the organization-wide API rate limit was exceeded (`rate_limit_exceeded`). Retry with exponential backoff.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}}},"operationId":"deleteEventDestination","description":"Permanently deletes an event destination."}},"\/event-destinations\/{destination_id}\/test":{"post":{"tags":["Event Destinations"],"summary":"Send a test event to a destination","parameters":[{"name":"destination_id","in":"path","required":true,"schema":{"type":"string","pattern":"^evtd_","example":"evtd_AbC123xYz456"},"description":"Unique identifier for the event destination (prefixed with `evtd_`)."}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/TestEventDestinationResponse"}}}},"400":{"description":"Bad request \u2014 validation error or malformed input.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ValidationErrorResponse"}}}},"401":{"description":"Unauthorized."},"403":{"description":"Forbidden."},"404":{"description":"Not found \u2014 the requested resource does not exist.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"422":{"description":"Unprocessable content \u2014 the request body is understood but contains invalid values.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"429":{"description":"Too many requests \u2014 the organization-wide API rate limit was exceeded (`rate_limit_exceeded`). Retry with exponential backoff.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}}},"operationId":"testEventDestination","description":"Delivers a `test.ping` event with a `data` payload of `{\"ok\": true}` to the destination and returns the attempt status and HTTP response code. Test events are delivered once and not retried. The destination must be `active`; a destination still in `pending_verification` returns a `422`."}},"\/event-destinations\/{destination_id}\/event-deliveries":{"get":{"tags":["Event Destinations"],"summary":"List event deliveries","parameters":[{"name":"destination_id","in":"path","required":true,"schema":{"type":"string","pattern":"^evtd_","example":"evtd_AbC123xYz456"},"description":"Unique identifier for the event destination (prefixed with `evtd_`)."},{"name":"limit","in":"query","schema":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["integer","string"],"format":"int32","default":20,"minimum":1,"maximum":100,"example":20},"description":"Maximum number of items to return (1-100, default 20)."},{"name":"cursor","in":"query","schema":{"type":"string"},"description":"Cursor from a previous response for pagination."},{"name":"status","in":"query","schema":{"type":"string"},"description":"Filter by delivery status: success, failure."},{"name":"type","in":"query","schema":{"type":"string"},"description":"Filter by event type."}],"responses":{"200":{"description":"OK","content":{"text\/plain":{"schema":{"$ref":"#\/components\/schemas\/PaginatedResponseOfEventDeliveryResponse"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/PaginatedResponseOfEventDeliveryResponse"}},"text\/json":{"schema":{"$ref":"#\/components\/schemas\/PaginatedResponseOfEventDeliveryResponse"}}}},"400":{"description":"Bad request \u2014 validation error or malformed input.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ValidationErrorResponse"}}}},"401":{"description":"Unauthorized."},"403":{"description":"Forbidden."},"404":{"description":"Not found \u2014 the requested resource does not exist.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"409":{"description":"Conflict \u2014 the request is valid but cannot be completed in the current state.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"422":{"description":"Unprocessable content \u2014 the request body is understood but contains invalid values.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"429":{"description":"Too many requests \u2014 the organization-wide API rate limit was exceeded (`rate_limit_exceeded`). Retry with exponential backoff.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}}},"operationId":"listEventDeliveries","description":"Returns a paginated list of event deliveries for a destination. Supports filtering by delivery status."}},"\/event-types":{"get":{"tags":["Events"],"summary":"List event types","responses":{"200":{"description":"OK","content":{"text\/plain":{"schema":{"$ref":"#\/components\/schemas\/ListEventTypesResponse"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ListEventTypesResponse"}},"text\/json":{"schema":{"$ref":"#\/components\/schemas\/ListEventTypesResponse"}}}},"400":{"description":"Bad request \u2014 validation error or malformed input.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ValidationErrorResponse"}}}},"401":{"description":"Unauthorized."},"403":{"description":"Forbidden."},"404":{"description":"Not found \u2014 the requested resource does not exist.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"409":{"description":"Conflict \u2014 the request is valid but cannot be completed in the current state.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"422":{"description":"Unprocessable content \u2014 the request body is understood but contains invalid values.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"429":{"description":"Too many requests \u2014 the organization-wide API rate limit was exceeded (`rate_limit_exceeded`). Retry with exponential backoff.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}}},"operationId":"listEventTypes","description":"Returns a list of all available event types you can subscribe to."}},"\/events":{"get":{"tags":["Events"],"summary":"List events","parameters":[{"name":"type","in":"query","schema":{"type":"array","items":{"type":"string"}},"description":"Filter by event type (e.g. `task_run.completed`, `credential.verified`). Pass multiple values comma-separated (e.g. `?type=a,b`); repeated keys are also accepted.","style":"form","explode":false},{"name":"created_after","in":"query","schema":{"type":"string","format":"date-time","example":"2026-08-24T12:00:00Z"},"description":"Return events created after this timestamp (ISO 8601)."},{"name":"created_before","in":"query","schema":{"type":"string","format":"date-time","example":"2026-08-24T12:00:00Z"},"description":"Return events created before this timestamp (ISO 8601)."},{"name":"limit","in":"query","description":"Maximum number of items to return (1-100, default 20)","schema":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["integer","string"],"format":"int32","minimum":1,"maximum":100,"default":20,"example":20}},{"name":"cursor","in":"query","schema":{"type":"string"},"description":"Cursor from a previous response for pagination."}],"responses":{"200":{"description":"OK","content":{"text\/plain":{"schema":{"$ref":"#\/components\/schemas\/PaginatedResponseOfListEventData"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/PaginatedResponseOfListEventData"}},"text\/json":{"schema":{"$ref":"#\/components\/schemas\/PaginatedResponseOfListEventData"}}}},"400":{"description":"Bad request \u2014 validation error or malformed input.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ValidationErrorResponse"}}}},"401":{"description":"Unauthorized."},"403":{"description":"Forbidden."},"404":{"description":"Not found \u2014 the requested resource does not exist.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"409":{"description":"Conflict \u2014 the request is valid but cannot be completed in the current state.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"422":{"description":"Unprocessable content \u2014 the request body is understood but contains invalid values.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"429":{"description":"Too many requests \u2014 the organization-wide API rate limit was exceeded (`rate_limit_exceeded`). Retry with exponential backoff.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}}},"operationId":"listEvents","description":"Returns a paginated list of events. Supports filtering by event type."}},"\/events\/{event_id}":{"get":{"tags":["Events"],"summary":"Retrieve an event","parameters":[{"name":"event_id","in":"path","required":true,"schema":{"type":"string","pattern":"^evt_","example":"evt_AbC123xYz456"},"description":"Unique identifier for the event (prefixed with `evt_`)."}],"responses":{"200":{"description":"OK","content":{"text\/plain":{"schema":{"$ref":"#\/components\/schemas\/EventResponse"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/EventResponse"}},"text\/json":{"schema":{"$ref":"#\/components\/schemas\/EventResponse"}}}},"400":{"description":"Bad request \u2014 validation error or malformed input.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ValidationErrorResponse"}}}},"401":{"description":"Unauthorized."},"403":{"description":"Forbidden."},"404":{"description":"Not found \u2014 the requested resource does not exist.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"409":{"description":"Conflict \u2014 the request is valid but cannot be completed in the current state.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"422":{"description":"Unprocessable content \u2014 the request body is understood but contains invalid values.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"429":{"description":"Too many requests \u2014 the organization-wide API rate limit was exceeded (`rate_limit_exceeded`). Retry with exponential backoff.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}}},"operationId":"getEvent","description":"Returns a single event by ID, including its full data payload."}},"\/sessions":{"post":{"tags":["Sessions"],"summary":"Start a session","requestBody":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/CreateSessionRequest"}},"text\/json":{"schema":{"$ref":"#\/components\/schemas\/CreateSessionRequest"}},"application\/*+json":{"schema":{"$ref":"#\/components\/schemas\/CreateSessionRequest"}}},"required":false},"responses":{"201":{"description":"Created","content":{"text\/plain":{"schema":{"$ref":"#\/components\/schemas\/CreateSessionResponse"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/CreateSessionResponse"}},"text\/json":{"schema":{"$ref":"#\/components\/schemas\/CreateSessionResponse"}}}},"400":{"description":"Bad request \u2014 validation error or malformed input.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ValidationErrorResponse"}}}},"401":{"description":"Unauthorized."},"403":{"description":"Forbidden."},"404":{"description":"Not found \u2014 the requested resource does not exist.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"409":{"description":"Conflict \u2014 the request is valid but cannot be completed in the current state. Also returned when an `Idempotency-Key` is reused with different request parameters (`idempotency_error`).","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"422":{"description":"Unprocessable content \u2014 the request body is understood but contains invalid values.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"429":{"description":"Too many requests \u2014 either the organization-wide API rate limit was exceeded (`rate_limit_exceeded`) or the organization is at its concurrent session limit (`session_limit_exceeded`). Retry with exponential backoff; for `session_limit_exceeded`, retry once a running session reaches a terminal state.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}}},"operationId":"startSession","description":"Starts a new isolated compute session for executing tasks. Pass an optional `source_id` to prepare the session: the agent opens that source's login page ahead of the first run. A component token may hold one active session at a time.","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Optional key that makes the request idempotent. Retrying with the same key returns the original response instead of repeating the operation; keys expire after 24 hours. Any string up to 256 characters. See [Idempotency](\/api\/idempotency).","schema":{"type":"string","maxLength":256,"example":"550e8400-e29b-41d4-a716-446655440000"}}]},"get":{"tags":["Sessions"],"summary":"List sessions","parameters":[{"name":"limit","in":"query","description":"Maximum number of items to return (1-100, default 20)","schema":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["integer","string"],"format":"int32","minimum":1,"maximum":100,"default":20,"example":20}},{"name":"cursor","in":"query","schema":{"type":"string"},"description":"Cursor from a previous response for pagination."}],"responses":{"200":{"description":"OK","content":{"text\/plain":{"schema":{"$ref":"#\/components\/schemas\/PaginatedResponseOfListSessionData"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/PaginatedResponseOfListSessionData"}},"text\/json":{"schema":{"$ref":"#\/components\/schemas\/PaginatedResponseOfListSessionData"}}}},"400":{"description":"Bad request \u2014 validation error or malformed input.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ValidationErrorResponse"}}}},"401":{"description":"Unauthorized."},"403":{"description":"Forbidden."},"404":{"description":"Not found \u2014 the requested resource does not exist.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"409":{"description":"Conflict \u2014 the request is valid but cannot be completed in the current state.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"422":{"description":"Unprocessable content \u2014 the request body is understood but contains invalid values.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"429":{"description":"Too many requests \u2014 the organization-wide API rate limit was exceeded (`rate_limit_exceeded`). Retry with exponential backoff.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}}},"operationId":"listSessions","description":"Returns a paginated list of sessions."}},"\/sessions\/{session_id}":{"get":{"tags":["Sessions"],"summary":"Retrieve a session","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","pattern":"^sess_","example":"sess_AbC123xYz456"},"description":"Unique identifier for the session (prefixed with `sess_`)."}],"responses":{"200":{"description":"OK","content":{"text\/plain":{"schema":{"$ref":"#\/components\/schemas\/GetSessionResponse"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/GetSessionResponse"}},"text\/json":{"schema":{"$ref":"#\/components\/schemas\/GetSessionResponse"}}}},"400":{"description":"Bad request \u2014 validation error or malformed input.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ValidationErrorResponse"}}}},"401":{"description":"Unauthorized."},"403":{"description":"Forbidden."},"404":{"description":"Not found \u2014 the requested resource does not exist.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"409":{"description":"Conflict \u2014 the request is valid but cannot be completed in the current state.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"422":{"description":"Unprocessable content \u2014 the request body is understood but contains invalid values.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"429":{"description":"Too many requests \u2014 the organization-wide API rate limit was exceeded (`rate_limit_exceeded`). Retry with exponential backoff.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}}},"operationId":"getSession","description":"Returns a single session by ID, including the task runs executed within it."}},"\/sessions\/{session_id}\/end":{"post":{"tags":["Sessions"],"summary":"End a session","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","pattern":"^sess_","example":"sess_AbC123xYz456"},"description":"Unique identifier for the session (prefixed with `sess_`)."},{"name":"Idempotency-Key","in":"header","required":false,"description":"Optional key that makes the request idempotent. Retrying with the same key returns the original response instead of repeating the operation; keys expire after 24 hours. Any string up to 256 characters. See [Idempotency](\/api\/idempotency).","schema":{"type":"string","maxLength":256,"example":"550e8400-e29b-41d4-a716-446655440000"}}],"responses":{"200":{"description":"OK","content":{"text\/plain":{"schema":{"$ref":"#\/components\/schemas\/GetSessionResponse"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/GetSessionResponse"}},"text\/json":{"schema":{"$ref":"#\/components\/schemas\/GetSessionResponse"}}}},"400":{"description":"Bad request \u2014 validation error or malformed input.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ValidationErrorResponse"}}}},"401":{"description":"Unauthorized."},"403":{"description":"Forbidden."},"404":{"description":"Not found \u2014 the requested resource does not exist.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"409":{"description":"Conflict \u2014 the request is valid but cannot be completed in the current state. Also returned when an `Idempotency-Key` is reused with different request parameters (`idempotency_error`).","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"422":{"description":"Unprocessable content \u2014 the request body is understood but contains invalid values.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"429":{"description":"Too many requests \u2014 the organization-wide API rate limit was exceeded (`rate_limit_exceeded`). Retry with exponential backoff.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}}},"operationId":"endSession","description":"Ends an active session."}},"\/sources":{"post":{"tags":["Sources"],"summary":"Create a source","requestBody":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/CreateSourceRequest"}},"text\/json":{"schema":{"$ref":"#\/components\/schemas\/CreateSourceRequest"}},"application\/*+json":{"schema":{"$ref":"#\/components\/schemas\/CreateSourceRequest"}}},"required":true},"responses":{"201":{"description":"The source was created.","content":{"text\/plain":{"schema":{"$ref":"#\/components\/schemas\/CreateSourceResponse"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/CreateSourceResponse"}},"text\/json":{"schema":{"$ref":"#\/components\/schemas\/CreateSourceResponse"}}}},"200":{"description":"An existing source with the same URL was returned. Sources are deduplicated by their normalized URL, so creating a source that already exists returns the existing source with `200` instead of `201`.","content":{"text\/plain":{"schema":{"$ref":"#\/components\/schemas\/CreateSourceResponse"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/CreateSourceResponse"}},"text\/json":{"schema":{"$ref":"#\/components\/schemas\/CreateSourceResponse"}}}},"400":{"description":"Bad request \u2014 validation error or malformed input.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ValidationErrorResponse"}}}},"401":{"description":"Unauthorized."},"403":{"description":"Forbidden."},"404":{"description":"Not found \u2014 the requested resource does not exist.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"409":{"description":"Conflict \u2014 the request is valid but cannot be completed in the current state. Also returned when an `Idempotency-Key` is reused with different request parameters (`idempotency_error`).","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"422":{"description":"Unprocessable content \u2014 the request body is understood but contains invalid values.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"429":{"description":"Too many requests \u2014 the organization-wide API rate limit was exceeded (`rate_limit_exceeded`). Retry with exponential backoff.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}}},"operationId":"createSource","description":"Registers a new source. A source is a website or service that your agents connect to.","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Optional key that makes the request idempotent. Retrying with the same key returns the original response instead of repeating the operation; keys expire after 24 hours. Any string up to 256 characters. See [Idempotency](\/api\/idempotency).","schema":{"type":"string","maxLength":256,"example":"550e8400-e29b-41d4-a716-446655440000"}}]},"get":{"tags":["Sources"],"summary":"List sources","parameters":[{"name":"limit","in":"query","description":"Maximum number of items to return (1-100, default 20)","schema":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["integer","string"],"format":"int32","minimum":1,"maximum":100,"default":20,"example":20}},{"name":"cursor","in":"query","schema":{"type":"string"},"description":"Cursor from a previous response for pagination."},{"name":"search","in":"query","schema":{"type":"string"},"description":"Case-insensitive substring match against a source's name and website URL."}],"responses":{"200":{"description":"OK","content":{"text\/plain":{"schema":{"$ref":"#\/components\/schemas\/PaginatedResponseOfListSourceResponse"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/PaginatedResponseOfListSourceResponse"}},"text\/json":{"schema":{"$ref":"#\/components\/schemas\/PaginatedResponseOfListSourceResponse"}}}},"400":{"description":"Bad request \u2014 validation error or malformed input.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ValidationErrorResponse"}}}},"401":{"description":"Unauthorized."},"403":{"description":"Forbidden."},"404":{"description":"Not found \u2014 the requested resource does not exist.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"409":{"description":"Conflict \u2014 the request is valid but cannot be completed in the current state.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"422":{"description":"Unprocessable content \u2014 the request body is understood but contains invalid values.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"429":{"description":"Too many requests \u2014 the organization-wide API rate limit was exceeded (`rate_limit_exceeded`). Retry with exponential backoff.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}}},"operationId":"listSources","description":"Returns a paginated list of sources in your organization."}},"\/sources\/{source_id}":{"get":{"tags":["Sources"],"summary":"Retrieve a source","parameters":[{"name":"source_id","in":"path","required":true,"schema":{"type":"string","pattern":"^src_","example":"src_AbC123xYz456"},"description":"Unique identifier for the source (prefixed with `src_`)."}],"responses":{"200":{"description":"OK","content":{"text\/plain":{"schema":{"$ref":"#\/components\/schemas\/GetSourceResponse"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/GetSourceResponse"}},"text\/json":{"schema":{"$ref":"#\/components\/schemas\/GetSourceResponse"}}}},"400":{"description":"Bad request \u2014 validation error or malformed input.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ValidationErrorResponse"}}}},"401":{"description":"Unauthorized."},"403":{"description":"Forbidden."},"404":{"description":"Not found \u2014 the requested resource does not exist.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"409":{"description":"Conflict \u2014 the request is valid but cannot be completed in the current state.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"422":{"description":"Unprocessable content \u2014 the request body is understood but contains invalid values.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"429":{"description":"Too many requests \u2014 the organization-wide API rate limit was exceeded (`rate_limit_exceeded`). Retry with exponential backoff.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}}},"operationId":"getSource","description":"Returns a single source by ID."},"patch":{"tags":["Sources"],"summary":"Update a source","parameters":[{"name":"source_id","in":"path","required":true,"schema":{"type":"string","pattern":"^src_","example":"src_AbC123xYz456"},"description":"Unique identifier for the source (prefixed with `src_`)."},{"name":"Idempotency-Key","in":"header","required":false,"description":"Optional key that makes the request idempotent. Retrying with the same key returns the original response instead of repeating the operation; keys expire after 24 hours. Any string up to 256 characters. See [Idempotency](\/api\/idempotency).","schema":{"type":"string","maxLength":256,"example":"550e8400-e29b-41d4-a716-446655440000"}}],"requestBody":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/UpdateSourceRequest"}},"text\/json":{"schema":{"$ref":"#\/components\/schemas\/UpdateSourceRequest"}},"application\/*+json":{"schema":{"$ref":"#\/components\/schemas\/UpdateSourceRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"text\/plain":{"schema":{"$ref":"#\/components\/schemas\/UpdateSourceResponse"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/UpdateSourceResponse"}},"text\/json":{"schema":{"$ref":"#\/components\/schemas\/UpdateSourceResponse"}}}},"400":{"description":"Bad request \u2014 validation error or malformed input.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ValidationErrorResponse"}}}},"401":{"description":"Unauthorized."},"403":{"description":"Forbidden."},"404":{"description":"Not found \u2014 the requested resource does not exist.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"409":{"description":"Conflict \u2014 the request is valid but cannot be completed in the current state. Also returned when an `Idempotency-Key` is reused with different request parameters (`idempotency_error`).","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"422":{"description":"Unprocessable content \u2014 the request body is understood but contains invalid values.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"429":{"description":"Too many requests \u2014 the organization-wide API rate limit was exceeded (`rate_limit_exceeded`). Retry with exponential backoff.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}}},"operationId":"updateSource","description":"Updates a source's name or URL. Only the fields you include in the request body are updated."},"delete":{"tags":["Sources"],"summary":"Delete a source","parameters":[{"name":"source_id","in":"path","required":true,"schema":{"type":"string","pattern":"^src_","example":"src_AbC123xYz456"},"description":"Unique identifier for the source (prefixed with `src_`)."},{"name":"Idempotency-Key","in":"header","required":false,"description":"Optional key that makes the request idempotent. Retrying with the same key returns the original response instead of repeating the operation; keys expire after 24 hours. Any string up to 256 characters. See [Idempotency](\/api\/idempotency).","schema":{"type":"string","maxLength":256,"example":"550e8400-e29b-41d4-a716-446655440000"}}],"responses":{"200":{"description":"OK","content":{"text\/plain":{"schema":{"$ref":"#\/components\/schemas\/DeleteSourceResponse"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/DeleteSourceResponse"}},"text\/json":{"schema":{"$ref":"#\/components\/schemas\/DeleteSourceResponse"}}}},"400":{"description":"Bad request \u2014 validation error or malformed input.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ValidationErrorResponse"}}}},"401":{"description":"Unauthorized."},"403":{"description":"Forbidden."},"404":{"description":"Not found \u2014 the requested resource does not exist.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"409":{"description":"Conflict \u2014 the request is valid but cannot be completed in the current state. Also returned when an `Idempotency-Key` is reused with different request parameters (`idempotency_error`).","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"422":{"description":"Unprocessable content \u2014 the request body is understood but contains invalid values.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"429":{"description":"Too many requests \u2014 the organization-wide API rate limit was exceeded (`rate_limit_exceeded`). Retry with exponential backoff.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}}},"operationId":"deleteSource","description":"Permanently deletes a source."}},"\/sources\/{source_id}\/reset":{"post":{"tags":["Sources"],"summary":"Reset a source","parameters":[{"name":"source_id","in":"path","required":true,"schema":{"type":"string","pattern":"^src_","example":"src_AbC123xYz456"},"description":"Unique identifier for the source (prefixed with `src_`)."},{"name":"Idempotency-Key","in":"header","required":false,"description":"Optional key that makes the request idempotent. Retrying with the same key returns the original response instead of repeating the operation; keys expire after 24 hours. Any string up to 256 characters. See [Idempotency](\/api\/idempotency).","schema":{"type":"string","maxLength":256,"example":"550e8400-e29b-41d4-a716-446655440000"}}],"responses":{"200":{"description":"OK","content":{"text\/plain":{"schema":{"$ref":"#\/components\/schemas\/ResetSourceResponse"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ResetSourceResponse"}},"text\/json":{"schema":{"$ref":"#\/components\/schemas\/ResetSourceResponse"}}}},"400":{"description":"Bad request \u2014 validation error or malformed input.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ValidationErrorResponse"}}}},"401":{"description":"Unauthorized."},"403":{"description":"Forbidden."},"404":{"description":"Not found \u2014 the requested resource does not exist.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"409":{"description":"Conflict \u2014 the request is valid but cannot be completed in the current state. Also returned when an `Idempotency-Key` is reused with different request parameters (`idempotency_error`).","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"422":{"description":"Unprocessable content \u2014 the request body is understood but contains invalid values.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"429":{"description":"Too many requests \u2014 the organization-wide API rate limit was exceeded (`rate_limit_exceeded`). Retry with exponential backoff.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}}},"operationId":"resetSource","description":"Re-runs Deck's antibot analysis for the source. Runs keep using the existing analysis until the new one completes. Resetting again shortly after a previous reset has no effect and returns the current source; `reset_at` shows when the last reset took effect."}},"\/static-ips":{"get":{"tags":["Platform"],"summary":"Retrieve the static IP range","responses":{"200":{"description":"OK","content":{"text\/plain":{"schema":{"$ref":"#\/components\/schemas\/StaticIpsResponse"},"example":{"object":"static_ips","cidr":"203.0.113.0\/26","request_id":"req_a1b2c3d4"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/StaticIpsResponse"},"example":{"object":"static_ips","cidr":"203.0.113.0\/26","request_id":"req_a1b2c3d4"}},"text\/json":{"schema":{"$ref":"#\/components\/schemas\/StaticIpsResponse"},"example":{"object":"static_ips","cidr":"203.0.113.0\/26","request_id":"req_a1b2c3d4"}}}},"400":{"description":"Bad request. Validation error or malformed input.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ValidationErrorResponse"}}}},"401":{"description":"Unauthorized."},"403":{"description":"Forbidden. Returns `feature_not_available` if static IPs are enabled for your organization but temporarily unavailable.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"429":{"description":"Too many requests. The organization-wide API rate limit was exceeded (`rate_limit_exceeded`). Retry with exponential backoff.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}}},"operationId":"getStaticIps","description":"Returns the CIDR range [static IP](\/platform\/static-ips) runs come from, so you can add it to a source's allowlist before turning static IPs on. `cidr` is omitted until static IPs are enabled for your organization."}},"\/storage\/{storage_id}":{"get":{"tags":["Storage"],"summary":"Retrieve a storage item","parameters":[{"name":"storage_id","in":"path","required":true,"schema":{"type":"string","pattern":"^stor_","example":"stor_AbC123xYz456"},"description":"Unique identifier for the storage item (prefixed with `stor_`)."}],"responses":{"200":{"description":"OK","content":{"text\/plain":{"schema":{"$ref":"#\/components\/schemas\/GetStorageItemResponse"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/GetStorageItemResponse"}},"text\/json":{"schema":{"$ref":"#\/components\/schemas\/GetStorageItemResponse"}}}},"400":{"description":"Bad request \u2014 validation error or malformed input.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ValidationErrorResponse"}}}},"401":{"description":"Unauthorized."},"403":{"description":"Forbidden."},"404":{"description":"Not found \u2014 the requested resource does not exist.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"409":{"description":"Conflict \u2014 the request is valid but cannot be completed in the current state.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"422":{"description":"Unprocessable content \u2014 the request body is understood but contains invalid values.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"429":{"description":"Too many requests \u2014 the organization-wide API rate limit was exceeded (`rate_limit_exceeded`). Retry with exponential backoff.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}}},"operationId":"getStorageItem","description":"Returns a single storage item by ID, including a signed download URL for the file."},"delete":{"tags":["Storage"],"summary":"Delete a storage item","parameters":[{"name":"storage_id","in":"path","required":true,"schema":{"type":"string","pattern":"^stor_","example":"stor_AbC123xYz456"},"description":"Unique identifier for the storage item (prefixed with `stor_`)."},{"name":"Idempotency-Key","in":"header","required":false,"description":"Optional key that makes the request idempotent. Retrying with the same key returns the original response instead of repeating the operation; keys expire after 24 hours. Any string up to 256 characters. See [Idempotency](\/api\/idempotency).","schema":{"type":"string","maxLength":256,"example":"550e8400-e29b-41d4-a716-446655440000"}}],"responses":{"200":{"description":"OK","content":{"text\/plain":{"schema":{"$ref":"#\/components\/schemas\/DeleteStorageItemResponse"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/DeleteStorageItemResponse"}},"text\/json":{"schema":{"$ref":"#\/components\/schemas\/DeleteStorageItemResponse"}}}},"400":{"description":"Bad request \u2014 validation error or malformed input.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ValidationErrorResponse"}}}},"401":{"description":"Unauthorized."},"403":{"description":"Forbidden."},"404":{"description":"Not found \u2014 the storage item does not exist or was already deleted (`resource_not_found`).","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"409":{"description":"Conflict \u2014 the file is still being processed and cannot be deleted yet (`resource_not_ready`). Retry once processing finishes. Also returned when an `Idempotency-Key` is reused with different request parameters (`idempotency_error`).","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"422":{"description":"Unprocessable content \u2014 the request body is understood but contains invalid values.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"429":{"description":"Too many requests \u2014 the organization-wide API rate limit was exceeded (`rate_limit_exceeded`). Retry with exponential backoff.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}}},"operationId":"deleteStorageItem","description":"Permanently deletes a storage item, including the file and its extraction. This cannot be undone. Afterward, the storage ID no longer resolves."}},"\/task-runs\/{run_id}":{"get":{"tags":["Task Runs"],"summary":"Retrieve a task run","parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"string","pattern":"^trun_","example":"trun_AbC123xYz456"},"description":"Unique identifier for the task run (prefixed with `trun_`)."},{"name":"include","in":"query","schema":{"type":"string"},"description":"Comma-separated list of additional fields to include in the response. Supported values: `input`, `storage`, `storage_deduplicated`, `artifacts`, `interactions`. Sections are omitted from the response (not returned as null) when their flag is not present."}],"responses":{"200":{"description":"OK","content":{"text\/plain":{"schema":{"$ref":"#\/components\/schemas\/GetTaskRunResponse"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/GetTaskRunResponse"}},"text\/json":{"schema":{"$ref":"#\/components\/schemas\/GetTaskRunResponse"}}}},"400":{"description":"Bad request \u2014 validation error or malformed input.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ValidationErrorResponse"}}}},"401":{"description":"Unauthorized."},"403":{"description":"Forbidden."},"404":{"description":"Not found \u2014 the requested resource does not exist.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"409":{"description":"Conflict \u2014 the request is valid but cannot be completed in the current state.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"422":{"description":"Unprocessable content \u2014 the request body is understood but contains invalid values.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"429":{"description":"Too many requests \u2014 the organization-wide API rate limit was exceeded (`rate_limit_exceeded`). Retry with exponential backoff.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}}},"operationId":"getTaskRun","description":"Returns a single task run by ID, including its status, input, output, errors, and interaction state."}},"\/task-runs":{"get":{"tags":["Task Runs"],"summary":"List task runs","parameters":[{"name":"limit","in":"query","description":"Maximum number of items to return (1-100, default 20)","schema":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["integer","string"],"format":"int32","minimum":1,"maximum":100,"default":20,"example":20}},{"name":"cursor","in":"query","schema":{"type":"string"},"description":"Cursor from a previous response for pagination."},{"name":"status","in":"query","description":"Filter by status: queued, running, canceling, interaction_required, review_required, completed, canceled, failed. Pass multiple values comma-separated (e.g. `?status=a,b`); repeated keys are also accepted.","schema":{"type":"array","items":{"type":"string"}},"style":"form","explode":false},{"name":"source_id","in":"query","description":"Filter by source ID. Pass multiple values comma-separated (e.g. `?source_id=a,b`); repeated keys are also accepted.","schema":{"type":"array","items":{"type":"string"}},"style":"form","explode":false},{"name":"outcome","in":"query","description":"Filter by run result: success, failure, unknown. Maps to the `result` field on the task run object. Pass multiple values comma-separated (e.g. `?outcome=a,b`); repeated keys are also accepted.","schema":{"type":"array","items":{"type":"string"}},"style":"form","explode":false},{"name":"agent_id","in":"query","schema":{"type":"string","pattern":"^agt_","example":"agt_AbC123xYz456"},"description":"Unique identifier for the agent (prefixed with `agt_`)."},{"name":"credential_id","in":"query","schema":{"type":"string","pattern":"^cred_","example":"cred_AbC123xYz456"},"description":"Unique identifier for the credential (prefixed with `cred_`)."},{"name":"task_id","in":"query","schema":{"type":"string","pattern":"^task_","example":"task_AbC123xYz456"},"description":"Unique identifier for the task (prefixed with `task_`)."},{"name":"workflow_id","in":"query","schema":{"type":"string"},"description":"Filter to runs dispatched by a step of this workflow. Prefixed with `wflo_`."},{"name":"workflow_run_id","in":"query","schema":{"type":"string"},"description":"Filter to the runs one workflow run produced. Prefixed with `wrun_`."},{"name":"step","in":"query","schema":{"type":"string"},"description":"Filter to runs dispatched by the workflow step of this name. Combine with `workflow_run_id` to scope to one run."},{"name":"trigger_id","in":"query","schema":{"type":"string"},"description":"Filter to runs created by this trigger. Prefixed with `trg_`."},{"name":"created_after","in":"query","schema":{"type":"string","format":"date-time","example":"2026-08-24T12:00:00Z"},"description":"Return runs created after this timestamp (ISO 8601)."},{"name":"created_before","in":"query","schema":{"type":"string","format":"date-time","example":"2026-08-24T12:00:00Z"},"description":"Return runs created before this timestamp (ISO 8601)."},{"name":"search","in":"query","schema":{"type":"string"},"description":"Free-text search matching task name, task ID, or task run ID."}],"responses":{"200":{"description":"OK","content":{"text\/plain":{"schema":{"$ref":"#\/components\/schemas\/PaginatedResponseOfListTaskRunData"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/PaginatedResponseOfListTaskRunData"}},"text\/json":{"schema":{"$ref":"#\/components\/schemas\/PaginatedResponseOfListTaskRunData"}}}},"400":{"description":"Bad request \u2014 validation error or malformed input.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ValidationErrorResponse"}}}},"401":{"description":"Unauthorized."},"403":{"description":"Forbidden."},"404":{"description":"Not found \u2014 the requested resource does not exist.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"409":{"description":"Conflict \u2014 the request is valid but cannot be completed in the current state.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"422":{"description":"Unprocessable content \u2014 the request body is understood but contains invalid values.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"429":{"description":"Too many requests \u2014 the organization-wide API rate limit was exceeded (`rate_limit_exceeded`). Retry with exponential backoff.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}}},"operationId":"listTaskRuns","description":"Returns a paginated list of task runs. Supports filtering by agent, credential, source, task, workflow, workflow run, step, status, result, and date range."}},"\/task-runs\/{run_id}\/storage":{"get":{"tags":["Task Runs"],"summary":"List task run storage items","parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"string","pattern":"^trun_","example":"trun_AbC123xYz456"},"description":"Unique identifier for the task run (prefixed with `trun_`)."}],"responses":{"200":{"description":"OK","content":{"text\/plain":{"schema":{"$ref":"#\/components\/schemas\/PaginatedResponseOfListStorageItemResponse"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/PaginatedResponseOfListStorageItemResponse"}},"text\/json":{"schema":{"$ref":"#\/components\/schemas\/PaginatedResponseOfListStorageItemResponse"}}}},"400":{"description":"Bad request \u2014 validation error or malformed input.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ValidationErrorResponse"}}}},"401":{"description":"Unauthorized."},"403":{"description":"Forbidden."},"404":{"description":"Not found \u2014 the requested resource does not exist.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"409":{"description":"Conflict \u2014 the request is valid but cannot be completed in the current state.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"422":{"description":"Unprocessable content \u2014 the request body is understood but contains invalid values.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"429":{"description":"Too many requests \u2014 the organization-wide API rate limit was exceeded (`rate_limit_exceeded`). Retry with exponential backoff.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}}},"operationId":"listTaskRunStorage","description":"Returns all storage items (files) produced by a task run in a single response."}},"\/task-runs\/{run_id}\/screenshots":{"get":{"tags":["Task Runs"],"summary":"List task run screenshots","parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"string","pattern":"^trun_","example":"trun_AbC123xYz456"},"description":"Unique identifier for the task run (prefixed with `trun_`)."},{"name":"limit","in":"query","schema":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["integer","string"],"format":"int32","default":20,"minimum":1,"maximum":100,"example":20},"description":"Maximum number of items to return (1-100, default 20)."},{"name":"cursor","in":"query","schema":{"type":"string"},"description":"Cursor from a previous response for pagination."}],"responses":{"200":{"description":"OK","content":{"text\/plain":{"schema":{"$ref":"#\/components\/schemas\/PaginatedResponseOfListScreenshotItemResponse"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/PaginatedResponseOfListScreenshotItemResponse"}},"text\/json":{"schema":{"$ref":"#\/components\/schemas\/PaginatedResponseOfListScreenshotItemResponse"}}}},"400":{"description":"Bad request \u2014 validation error or malformed input.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ValidationErrorResponse"}}}},"401":{"description":"Unauthorized."},"403":{"description":"Forbidden."},"404":{"description":"Not found \u2014 the requested resource does not exist.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"409":{"description":"Conflict \u2014 the request is valid but cannot be completed in the current state.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"422":{"description":"Unprocessable content \u2014 the request body is understood but contains invalid values.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"429":{"description":"Too many requests \u2014 the organization-wide API rate limit was exceeded (`rate_limit_exceeded`). Retry with exponential backoff.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}}},"operationId":"listTaskRunScreenshots","description":"Returns a paginated list of agent screenshots captured during a task run, oldest first. Each item includes a pre-signed download URL and the agent's reasoning at the time of capture."}},"\/task-runs\/{run_id}\/cancel":{"post":{"tags":["Task Runs"],"summary":"Cancel a task run","parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"string","pattern":"^trun_","example":"trun_AbC123xYz456"},"description":"Unique identifier for the task run (prefixed with `trun_`)."},{"name":"Idempotency-Key","in":"header","required":false,"description":"Optional key that makes the request idempotent. Retrying with the same key returns the original response instead of repeating the operation; keys expire after 24 hours. Any string up to 256 characters. See [Idempotency](\/api\/idempotency).","schema":{"type":"string","maxLength":256,"example":"550e8400-e29b-41d4-a716-446655440000"}}],"responses":{"200":{"description":"OK","content":{"text\/plain":{"schema":{"$ref":"#\/components\/schemas\/GetTaskRunResponse"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/GetTaskRunResponse"}},"text\/json":{"schema":{"$ref":"#\/components\/schemas\/GetTaskRunResponse"}}}},"400":{"description":"Bad request \u2014 validation error or malformed input.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ValidationErrorResponse"}}}},"401":{"description":"Unauthorized."},"403":{"description":"Forbidden."},"404":{"description":"Not found \u2014 the requested resource does not exist.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"409":{"description":"Conflict \u2014 the request is valid but cannot be completed in the current state. Also returned when an `Idempotency-Key` is reused with different request parameters (`idempotency_error`).","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"422":{"description":"Unprocessable content \u2014 the request body is understood but contains invalid values.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"429":{"description":"Too many requests \u2014 the organization-wide API rate limit was exceeded (`rate_limit_exceeded`). Retry with exponential backoff.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}}},"operationId":"cancelTaskRun","description":"Cancels a running or queued task run."}},"\/task-runs\/{run_id}\/rerun":{"post":{"tags":["Task Runs"],"summary":"Rerun a task run","parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"string","pattern":"^trun_","example":"trun_AbC123xYz456"},"description":"Unique identifier for the task run (prefixed with `trun_`)."},{"name":"Idempotency-Key","in":"header","required":false,"description":"Optional key that makes the request idempotent. Retrying with the same key returns the original response instead of repeating the operation; keys expire after 24 hours. Any string up to 256 characters. See [Idempotency](\/api\/idempotency).","schema":{"type":"string","maxLength":256,"example":"550e8400-e29b-41d4-a716-446655440000"}}],"responses":{"201":{"description":"Created","content":{"text\/plain":{"schema":{"$ref":"#\/components\/schemas\/GetTaskRunResponse"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/GetTaskRunResponse"}},"text\/json":{"schema":{"$ref":"#\/components\/schemas\/GetTaskRunResponse"}}}},"400":{"description":"Bad request \u2014 validation error or malformed input.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ValidationErrorResponse"}}}},"401":{"description":"Unauthorized."},"403":{"description":"Forbidden."},"404":{"description":"Not found \u2014 the task run does not exist (`resource_not_found`).","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"409":{"description":"Conflict \u2014 the original run has not reached a terminal state (`resource_not_ready`). Wait for it to complete, fail, or cancel before rerunning it. Also returned when an `Idempotency-Key` is reused with different request parameters (`idempotency_error`).","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"422":{"description":"Unprocessable content \u2014 the task's input schema changed after the original run, so its stored input can no longer be replayed (`input_invalid`). Submit a new run instead.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"429":{"description":"Too many requests \u2014 the organization-wide API rate limit was exceeded (`rate_limit_exceeded`). Retry with exponential backoff.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}}},"operationId":"rerunTaskRun","description":"Creates a new task run for the same task using the original run's input. Tokenized fields are replayed from their stored tokens, so you never need to resupply the values. The new run executes asynchronously in a new session."}},"\/task-runs\/{run_id}\/interaction":{"post":{"tags":["Task Runs"],"summary":"Submit interaction input","parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"string","pattern":"^trun_","example":"trun_AbC123xYz456"},"description":"Unique identifier for the task run (prefixed with `trun_`)."},{"name":"Idempotency-Key","in":"header","required":false,"description":"Optional key that makes the request idempotent. Retrying with the same key returns the original response instead of repeating the operation; keys expire after 24 hours. Any string up to 256 characters. See [Idempotency](\/api\/idempotency).","schema":{"type":"string","maxLength":256,"example":"550e8400-e29b-41d4-a716-446655440000"}}],"requestBody":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/SubmitInteractionRequest"}},"text\/json":{"schema":{"$ref":"#\/components\/schemas\/SubmitInteractionRequest"}},"application\/*+json":{"schema":{"$ref":"#\/components\/schemas\/SubmitInteractionRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"text\/plain":{"schema":{"$ref":"#\/components\/schemas\/GetTaskRunResponse"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/GetTaskRunResponse"}},"text\/json":{"schema":{"$ref":"#\/components\/schemas\/GetTaskRunResponse"}}}},"400":{"description":"Bad request \u2014 validation error or malformed input.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ValidationErrorResponse"}}}},"401":{"description":"Unauthorized."},"403":{"description":"Forbidden."},"404":{"description":"Not found \u2014 the requested resource does not exist.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"409":{"description":"Conflict \u2014 the request is valid but cannot be completed in the current state. Also returned when an `Idempotency-Key` is reused with different request parameters (`idempotency_error`).","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"422":{"description":"Unprocessable content \u2014 the request body is understood but contains invalid values.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"429":{"description":"Too many requests \u2014 the organization-wide API rate limit was exceeded (`rate_limit_exceeded`). Retry with exponential backoff.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}}},"operationId":"submitInteraction","description":"Submits user input to resume a task run that is paused waiting for interaction (e.g. MFA code, security question)."}},"\/tasks":{"post":{"tags":["Tasks"],"summary":"Create a task","requestBody":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/CreateTaskRequest"}},"text\/json":{"schema":{"$ref":"#\/components\/schemas\/CreateTaskRequest"}},"application\/*+json":{"schema":{"$ref":"#\/components\/schemas\/CreateTaskRequest"}}},"required":true},"responses":{"201":{"description":"Created","content":{"text\/plain":{"schema":{"$ref":"#\/components\/schemas\/CreateTaskResponse"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/CreateTaskResponse"}},"text\/json":{"schema":{"$ref":"#\/components\/schemas\/CreateTaskResponse"}}}},"400":{"description":"Bad request \u2014 validation error or malformed input.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ValidationErrorResponse"}}}},"401":{"description":"Unauthorized."},"403":{"description":"Forbidden."},"404":{"description":"Not found \u2014 the requested resource does not exist.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"409":{"description":"Conflict \u2014 the request is valid but cannot be completed in the current state. Also returned when an `Idempotency-Key` is reused with different request parameters (`idempotency_error`).","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"422":{"description":"Unprocessable content \u2014 the request body is understood but contains invalid values.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"429":{"description":"Too many requests \u2014 the organization-wide API rate limit was exceeded (`rate_limit_exceeded`). Retry with exponential backoff.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}}},"operationId":"createTask","description":"Creates a new task on an agent. A task is a defined action an agent can perform, such as fetching data or submitting a form.","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Optional key that makes the request idempotent. Retrying with the same key returns the original response instead of repeating the operation; keys expire after 24 hours. Any string up to 256 characters. See [Idempotency](\/api\/idempotency).","schema":{"type":"string","maxLength":256,"example":"550e8400-e29b-41d4-a716-446655440000"}}]},"get":{"tags":["Tasks"],"summary":"List tasks","parameters":[{"name":"limit","in":"query","description":"Maximum number of items to return (1-100, default 20)","schema":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["integer","string"],"format":"int32","minimum":1,"maximum":100,"default":20,"example":20}},{"name":"cursor","in":"query","schema":{"type":"string"},"description":"Cursor from a previous response for pagination."},{"name":"agent_id","in":"query","schema":{"type":"string","pattern":"^agt_","example":"agt_AbC123xYz456"},"description":"Filter by agent ID (prefixed with `agt_`)."},{"name":"status","in":"query","description":"Filter by task status: learning, test, live","schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"text\/plain":{"schema":{"$ref":"#\/components\/schemas\/PaginatedResponseOfGetTaskResponse"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/PaginatedResponseOfGetTaskResponse"}},"text\/json":{"schema":{"$ref":"#\/components\/schemas\/PaginatedResponseOfGetTaskResponse"}}}},"400":{"description":"Bad request \u2014 validation error or malformed input.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ValidationErrorResponse"}}}},"401":{"description":"Unauthorized."},"403":{"description":"Forbidden."},"404":{"description":"Not found \u2014 the requested resource does not exist.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"409":{"description":"Conflict \u2014 the request is valid but cannot be completed in the current state.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"422":{"description":"Unprocessable content \u2014 the request body is understood but contains invalid values.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"429":{"description":"Too many requests \u2014 the organization-wide API rate limit was exceeded (`rate_limit_exceeded`). Retry with exponential backoff.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}}},"operationId":"listTasks","description":"Returns a paginated list of tasks. Supports filtering by agent and status."}},"\/tasks\/{task_id}":{"get":{"tags":["Tasks"],"summary":"Retrieve a task","parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string","pattern":"^task_","example":"task_AbC123xYz456"},"description":"Unique identifier for the task (prefixed with `task_`)."}],"responses":{"200":{"description":"OK","content":{"text\/plain":{"schema":{"$ref":"#\/components\/schemas\/GetTaskResponse"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/GetTaskResponse"}},"text\/json":{"schema":{"$ref":"#\/components\/schemas\/GetTaskResponse"}}}},"400":{"description":"Bad request \u2014 validation error or malformed input.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ValidationErrorResponse"}}}},"401":{"description":"Unauthorized."},"403":{"description":"Forbidden."},"404":{"description":"Not found \u2014 the requested resource does not exist.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"409":{"description":"Conflict \u2014 the request is valid but cannot be completed in the current state.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"422":{"description":"Unprocessable content \u2014 the request body is understood but contains invalid values.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"429":{"description":"Too many requests \u2014 the organization-wide API rate limit was exceeded (`rate_limit_exceeded`). Retry with exponential backoff.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}}},"operationId":"getTask","description":"Returns a single task by ID, including its input\/output schemas and storage configuration."},"patch":{"tags":["Tasks"],"summary":"Update a task","parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string","pattern":"^task_","example":"task_AbC123xYz456"},"description":"Unique identifier for the task (prefixed with `task_`)."},{"name":"Idempotency-Key","in":"header","required":false,"description":"Optional key that makes the request idempotent. Retrying with the same key returns the original response instead of repeating the operation; keys expire after 24 hours. Any string up to 256 characters. See [Idempotency](\/api\/idempotency).","schema":{"type":"string","maxLength":256,"example":"550e8400-e29b-41d4-a716-446655440000"}}],"requestBody":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/UpdateTaskRequest"}},"text\/json":{"schema":{"$ref":"#\/components\/schemas\/UpdateTaskRequest"}},"application\/*+json":{"schema":{"$ref":"#\/components\/schemas\/UpdateTaskRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"text\/plain":{"schema":{"$ref":"#\/components\/schemas\/UpdateTaskResponse"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/UpdateTaskResponse"}},"text\/json":{"schema":{"$ref":"#\/components\/schemas\/UpdateTaskResponse"}}}},"400":{"description":"Bad request \u2014 validation error or malformed input.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ValidationErrorResponse"}}}},"401":{"description":"Unauthorized."},"403":{"description":"Forbidden."},"404":{"description":"Not found \u2014 the requested resource does not exist.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"409":{"description":"Conflict \u2014 the request is valid but cannot be completed in the current state. Also returned when an `Idempotency-Key` is reused with different request parameters (`idempotency_error`).","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"422":{"description":"Unprocessable content \u2014 the request body is understood but contains invalid values.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"429":{"description":"Too many requests \u2014 the organization-wide API rate limit was exceeded (`rate_limit_exceeded`). Retry with exponential backoff.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}}},"operationId":"updateTask","description":"Updates a task's name, schemas, prompt, or storage configuration. Only the fields you include in the request body are updated."},"delete":{"tags":["Tasks"],"summary":"Delete a task","parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string","pattern":"^task_","example":"task_AbC123xYz456"},"description":"Unique identifier for the task (prefixed with `task_`)."},{"name":"Idempotency-Key","in":"header","required":false,"description":"Optional key that makes the request idempotent. Retrying with the same key returns the original response instead of repeating the operation; keys expire after 24 hours. Any string up to 256 characters. See [Idempotency](\/api\/idempotency).","schema":{"type":"string","maxLength":256,"example":"550e8400-e29b-41d4-a716-446655440000"}}],"responses":{"200":{"description":"OK","content":{"text\/plain":{"schema":{"$ref":"#\/components\/schemas\/DeleteTaskResponse"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/DeleteTaskResponse"}},"text\/json":{"schema":{"$ref":"#\/components\/schemas\/DeleteTaskResponse"}}}},"400":{"description":"Bad request \u2014 validation error or malformed input.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ValidationErrorResponse"}}}},"401":{"description":"Unauthorized."},"403":{"description":"Forbidden."},"404":{"description":"Not found \u2014 the requested resource does not exist.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"409":{"description":"Conflict \u2014 the request is valid but cannot be completed in the current state. Also returned when an `Idempotency-Key` is reused with different request parameters (`idempotency_error`).","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"422":{"description":"Unprocessable content \u2014 the request body is understood but contains invalid values.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"429":{"description":"Too many requests \u2014 the organization-wide API rate limit was exceeded (`rate_limit_exceeded`). Retry with exponential backoff.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}}},"operationId":"deleteTask","description":"Permanently deletes a task."}},"\/tasks\/{task_id}\/run":{"post":{"tags":["Tasks"],"summary":"Run a task","parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string","pattern":"^task_","example":"task_AbC123xYz456"},"description":"Unique identifier for the task (prefixed with `task_`)."},{"name":"Idempotency-Key","in":"header","required":false,"description":"Optional key that makes the request idempotent. Retrying with the same key returns the original response instead of repeating the operation; keys expire after 24 hours. Any string up to 256 characters. See [Idempotency](\/api\/idempotency).","schema":{"type":"string","maxLength":256,"example":"550e8400-e29b-41d4-a716-446655440000"}}],"requestBody":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/RunTaskRequest"}},"text\/json":{"schema":{"$ref":"#\/components\/schemas\/RunTaskRequest"}},"application\/*+json":{"schema":{"$ref":"#\/components\/schemas\/RunTaskRequest"}}},"required":true},"responses":{"201":{"description":"Created","content":{"text\/plain":{"schema":{"$ref":"#\/components\/schemas\/GetTaskRunResponse"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/GetTaskRunResponse"}},"text\/json":{"schema":{"$ref":"#\/components\/schemas\/GetTaskRunResponse"}}}},"400":{"description":"Bad request \u2014 validation error or malformed input.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ValidationErrorResponse"}}}},"401":{"description":"Unauthorized."},"403":{"description":"Forbidden."},"404":{"description":"Not found \u2014 the requested resource does not exist.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"409":{"description":"Conflict \u2014 the request is valid but cannot be completed in the current state. Also returned when an `Idempotency-Key` is reused with different request parameters (`idempotency_error`).","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"422":{"description":"Unprocessable content \u2014 the request body is understood but contains invalid values.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"429":{"description":"Too many requests \u2014 either the organization-wide API rate limit was exceeded (`rate_limit_exceeded`) or the organization is at its concurrent session limit (`session_limit_exceeded`). Retry with exponential backoff; for `session_limit_exceeded`, retry once a running session reaches a terminal state.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}}},"operationId":"runTask","description":"Executes a task, creating a new task run. The run executes asynchronously. Use events or poll the task run endpoint to track progress."}},"\/tasks\/{task_id}\/reset":{"post":{"tags":["Tasks"],"summary":"Reset a task","parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string","pattern":"^task_","example":"task_AbC123xYz456"},"description":"Unique identifier for the task (prefixed with `task_`)."},{"name":"Idempotency-Key","in":"header","required":false,"description":"Optional key that makes the request idempotent. Retrying with the same key returns the original response instead of repeating the operation; keys expire after 24 hours. Any string up to 256 characters. See [Idempotency](\/api\/idempotency).","schema":{"type":"string","maxLength":256,"example":"550e8400-e29b-41d4-a716-446655440000"}}],"responses":{"200":{"description":"OK","content":{"text\/plain":{"schema":{"$ref":"#\/components\/schemas\/UpdateTaskResponse"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/UpdateTaskResponse"}},"text\/json":{"schema":{"$ref":"#\/components\/schemas\/UpdateTaskResponse"}}}},"400":{"description":"Bad request \u2014 validation error or malformed input.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ValidationErrorResponse"}}}},"401":{"description":"Unauthorized."},"403":{"description":"Forbidden."},"404":{"description":"Not found \u2014 the requested resource does not exist.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"409":{"description":"Conflict \u2014 the request is valid but cannot be completed in the current state. Also returned when an `Idempotency-Key` is reused with different request parameters (`idempotency_error`).","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"422":{"description":"Unprocessable content \u2014 the request body is understood but contains invalid values.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"429":{"description":"Too many requests \u2014 the organization-wide API rate limit was exceeded (`rate_limit_exceeded`). Retry with exponential backoff.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}}},"operationId":"resetTask","description":"Resets a task's status to `learning`. The next run re-learns the flow from scratch."}},"\/test":{"get":{"tags":["Test"],"responses":{"200":{"description":"OK","content":{"text\/plain":{"schema":{"$ref":"#\/components\/schemas\/TestResponse"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/TestResponse"}},"text\/json":{"schema":{"$ref":"#\/components\/schemas\/TestResponse"}}}},"400":{"description":"Bad request \u2014 validation error or malformed input.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ValidationErrorResponse"}}}},"401":{"description":"Unauthorized."},"403":{"description":"Forbidden."},"404":{"description":"Not found \u2014 the requested resource does not exist.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"409":{"description":"Conflict \u2014 the request is valid but cannot be completed in the current state.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"422":{"description":"Unprocessable content \u2014 the request body is understood but contains invalid values.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"429":{"description":"Too many requests \u2014 the organization-wide API rate limit was exceeded (`rate_limit_exceeded`). Retry with exponential backoff.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}}},"operationId":"testApiKey","description":"Verifies your API key is valid.","summary":"Test your API key"}},"\/token":{"post":{"tags":["Components"],"summary":"Create a session token","responses":{"201":{"description":"Created","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/CreateSessionTokenResponse"}}}},"401":{"description":"Unauthorized."},"403":{"description":"Forbidden."},"429":{"description":"Too many requests \u2014 the organization-wide API rate limit was exceeded (`rate_limit_exceeded`). Retry with exponential backoff.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}}},"operationId":"createSessionToken","description":"Creates a short-lived session token for the Auth Component. Expiry slides 30 minutes on each request, capped at 24 hours from creation, so `expires_at` is the expiry if the token is never used."}},"\/triggers":{"post":{"tags":["Triggers"],"summary":"Create a trigger","requestBody":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/CreateTriggerRequest"}},"text\/json":{"schema":{"$ref":"#\/components\/schemas\/CreateTriggerRequest"}},"application\/*+json":{"schema":{"$ref":"#\/components\/schemas\/CreateTriggerRequest"}}},"required":true},"responses":{"201":{"description":"Created","content":{"text\/plain":{"schema":{"$ref":"#\/components\/schemas\/TriggerResponse"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/TriggerResponse"}},"text\/json":{"schema":{"$ref":"#\/components\/schemas\/TriggerResponse"}}}},"400":{"description":"Bad request \u2014 validation error or malformed input.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ValidationErrorResponse"}}}},"401":{"description":"Unauthorized."},"403":{"description":"Forbidden."},"404":{"description":"Not found \u2014 the requested resource does not exist.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"409":{"description":"Conflict \u2014 the request is valid but cannot be completed in the current state. Also returned when an `Idempotency-Key` is reused with different request parameters (`idempotency_error`).","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"422":{"description":"Unprocessable content \u2014 the request body is understood but contains invalid values.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"429":{"description":"Too many requests \u2014 the organization-wide API rate limit was exceeded (`rate_limit_exceeded`). Retry with exponential backoff.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}}},"operationId":"createTrigger","description":"Creates a trigger that runs a task on a schedule across a set of credentials. The trigger is created active and fires on its schedule immediately.","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Optional key that makes the request idempotent. Retrying with the same key returns the original response instead of repeating the operation; keys expire after 24 hours. Any string up to 256 characters. See [Idempotency](\/api\/idempotency).","schema":{"type":"string","maxLength":256,"example":"550e8400-e29b-41d4-a716-446655440000"}}]},"get":{"tags":["Triggers"],"summary":"List triggers","parameters":[{"name":"limit","in":"query","description":"Maximum number of items to return (1-100, default 20)","schema":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["integer","string"],"format":"int32","minimum":1,"maximum":100,"default":20,"example":20}},{"name":"cursor","in":"query","schema":{"type":"string"},"description":"Cursor from a previous response for pagination."},{"name":"status","in":"query","schema":{"type":"string"},"description":"Filter by status: `active` or `inactive`."},{"name":"task_id","in":"query","schema":{"type":"string"},"description":"Filter to triggers that run this task. Prefixed with `task_`."},{"name":"workflow_id","in":"query","schema":{"type":"string"},"description":"Filter to triggers that run this workflow. Prefixed with `wflo_`."}],"responses":{"200":{"description":"OK","content":{"text\/plain":{"schema":{"$ref":"#\/components\/schemas\/PaginatedResponseOfListTriggerData"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/PaginatedResponseOfListTriggerData"}},"text\/json":{"schema":{"$ref":"#\/components\/schemas\/PaginatedResponseOfListTriggerData"}}}},"400":{"description":"Bad request \u2014 validation error or malformed input.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ValidationErrorResponse"}}}},"401":{"description":"Unauthorized."},"403":{"description":"Forbidden."},"404":{"description":"Not found \u2014 the requested resource does not exist.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"409":{"description":"Conflict \u2014 the request is valid but cannot be completed in the current state.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"422":{"description":"Unprocessable content \u2014 the request body is understood but contains invalid values.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"429":{"description":"Too many requests \u2014 the organization-wide API rate limit was exceeded (`rate_limit_exceeded`). Retry with exponential backoff.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}}},"operationId":"listTriggers","description":"Returns a paginated list of triggers in your organization."}},"\/triggers\/{trigger_id}":{"get":{"tags":["Triggers"],"summary":"Retrieve a trigger","parameters":[{"name":"trigger_id","in":"path","required":true,"schema":{"type":"string","pattern":"^trg_","example":"trg_AbC123xYz456"},"description":"Unique identifier for the trigger (prefixed with `trg_`)."}],"responses":{"200":{"description":"OK","content":{"text\/plain":{"schema":{"$ref":"#\/components\/schemas\/TriggerResponse"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/TriggerResponse"}},"text\/json":{"schema":{"$ref":"#\/components\/schemas\/TriggerResponse"}}}},"400":{"description":"Bad request \u2014 validation error or malformed input.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ValidationErrorResponse"}}}},"401":{"description":"Unauthorized."},"403":{"description":"Forbidden."},"404":{"description":"Not found \u2014 the requested resource does not exist.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"409":{"description":"Conflict \u2014 the request is valid but cannot be completed in the current state.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"422":{"description":"Unprocessable content \u2014 the request body is understood but contains invalid values.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"429":{"description":"Too many requests \u2014 the organization-wide API rate limit was exceeded (`rate_limit_exceeded`). Retry with exponential backoff.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}}},"operationId":"getTrigger","description":"Retrieves a single trigger by ID."},"patch":{"tags":["Triggers"],"summary":"Update a trigger","parameters":[{"name":"trigger_id","in":"path","required":true,"schema":{"type":"string","pattern":"^trg_","example":"trg_AbC123xYz456"},"description":"Unique identifier for the trigger (prefixed with `trg_`)."},{"name":"Idempotency-Key","in":"header","required":false,"description":"Optional key that makes the request idempotent. Retrying with the same key returns the original response instead of repeating the operation; keys expire after 24 hours. Any string up to 256 characters. See [Idempotency](\/api\/idempotency).","schema":{"type":"string","maxLength":256,"example":"550e8400-e29b-41d4-a716-446655440000"}}],"requestBody":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/UpdateTriggerRequest"}},"text\/json":{"schema":{"$ref":"#\/components\/schemas\/UpdateTriggerRequest"}},"application\/*+json":{"schema":{"$ref":"#\/components\/schemas\/UpdateTriggerRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"text\/plain":{"schema":{"$ref":"#\/components\/schemas\/TriggerResponse"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/TriggerResponse"}},"text\/json":{"schema":{"$ref":"#\/components\/schemas\/TriggerResponse"}}}},"400":{"description":"Bad request \u2014 validation error or malformed input.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ValidationErrorResponse"}}}},"401":{"description":"Unauthorized."},"403":{"description":"Forbidden."},"404":{"description":"Not found \u2014 the requested resource does not exist.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"409":{"description":"Conflict \u2014 the request is valid but cannot be completed in the current state. Also returned when an `Idempotency-Key` is reused with different request parameters (`idempotency_error`).","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"422":{"description":"Unprocessable content \u2014 the request body is understood but contains invalid values.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"429":{"description":"Too many requests \u2014 the organization-wide API rate limit was exceeded (`rate_limit_exceeded`). Retry with exponential backoff.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}}},"operationId":"updateTrigger","description":"Updates a trigger. Send any subset of fields; omitted fields are left unchanged. Set `status` to `active` or `inactive` to resume or pause the trigger."},"delete":{"tags":["Triggers"],"summary":"Delete a trigger","parameters":[{"name":"trigger_id","in":"path","required":true,"schema":{"type":"string","pattern":"^trg_","example":"trg_AbC123xYz456"},"description":"Unique identifier for the trigger (prefixed with `trg_`)."},{"name":"Idempotency-Key","in":"header","required":false,"description":"Optional key that makes the request idempotent. Retrying with the same key returns the original response instead of repeating the operation; keys expire after 24 hours. Any string up to 256 characters. See [Idempotency](\/api\/idempotency).","schema":{"type":"string","maxLength":256,"example":"550e8400-e29b-41d4-a716-446655440000"}}],"responses":{"200":{"description":"OK","content":{"text\/plain":{"schema":{"$ref":"#\/components\/schemas\/DeleteTriggerResponse"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/DeleteTriggerResponse"}},"text\/json":{"schema":{"$ref":"#\/components\/schemas\/DeleteTriggerResponse"}}}},"400":{"description":"Bad request \u2014 validation error or malformed input.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ValidationErrorResponse"}}}},"401":{"description":"Unauthorized."},"403":{"description":"Forbidden."},"404":{"description":"Not found \u2014 the requested resource does not exist.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"409":{"description":"Conflict \u2014 the request is valid but cannot be completed in the current state. Also returned when an `Idempotency-Key` is reused with different request parameters (`idempotency_error`).","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"422":{"description":"Unprocessable content \u2014 the request body is understood but contains invalid values.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"429":{"description":"Too many requests \u2014 the organization-wide API rate limit was exceeded (`rate_limit_exceeded`). Retry with exponential backoff.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}}},"operationId":"deleteTrigger","description":"Permanently deletes a trigger. Scheduled fires stop immediately."}},"\/triggers\/{trigger_id}\/credentials":{"get":{"tags":["Triggers"],"summary":"List trigger credentials","parameters":[{"name":"trigger_id","in":"path","required":true,"schema":{"type":"string","pattern":"^trg_","example":"trg_AbC123xYz456"},"description":"Unique identifier for the trigger (prefixed with `trg_`)."},{"name":"limit","in":"query","description":"Maximum number of items to return (1-100, default 20)","schema":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["integer","string"],"format":"int32","minimum":1,"maximum":100,"default":20,"example":20}},{"name":"cursor","in":"query","schema":{"type":"string"},"description":"Cursor from a previous response for pagination."}],"responses":{"200":{"description":"OK","content":{"text\/plain":{"schema":{"$ref":"#\/components\/schemas\/PaginatedResponseOfListCredentialData"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/PaginatedResponseOfListCredentialData"}},"text\/json":{"schema":{"$ref":"#\/components\/schemas\/PaginatedResponseOfListCredentialData"}}}},"400":{"description":"Bad request \u2014 validation error or malformed input.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ValidationErrorResponse"}}}},"401":{"description":"Unauthorized."},"403":{"description":"Forbidden."},"404":{"description":"Not found \u2014 the requested resource does not exist.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"409":{"description":"Conflict \u2014 the request is valid but cannot be completed in the current state.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"422":{"description":"Unprocessable content \u2014 the request body is understood but contains invalid values.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"429":{"description":"Too many requests \u2014 the organization-wide API rate limit was exceeded (`rate_limit_exceeded`). Retry with exponential backoff.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}}},"operationId":"listTriggerCredentials","description":"Returns the credentials currently in scope for this trigger: the explicit `credential_ids`, or the current matches of `credential_filter`. This is the set that will get runs on the next fire. Each entry is a standard credential object."}},"\/workflows":{"post":{"tags":["Workflows"],"summary":"Create a workflow","operationId":"createWorkflow","description":"Creates a workflow from an ordered array of steps. Each step runs a task, and later steps can reference earlier outputs. See [Build a workflow](\/guides\/workflows).","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Optional key that makes the request idempotent. Retrying with the same key returns the original response instead of repeating the operation; keys expire after 24 hours. Any string up to 256 characters. See [Idempotency](\/api\/idempotency).","schema":{"type":"string","maxLength":256,"example":"550e8400-e29b-41d4-a716-446655440000"}}],"responses":{"201":{"description":"Created","content":{"text\/plain":{"schema":{"$ref":"#\/components\/schemas\/WorkflowResponse"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/WorkflowResponse"}},"text\/json":{"schema":{"$ref":"#\/components\/schemas\/WorkflowResponse"}}}},"400":{"description":"Bad request \u2014 validation error or malformed input.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ValidationErrorResponse"}}}},"401":{"description":"Unauthorized."},"403":{"description":"Forbidden."},"404":{"description":"Not found \u2014 the requested resource does not exist.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"409":{"description":"Conflict \u2014 the request is valid but cannot be completed in the current state. Also returned when an `Idempotency-Key` is reused with different request parameters (`idempotency_error`).","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"422":{"description":"Unprocessable content \u2014 the request body is understood but contains invalid values.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"429":{"description":"Too many requests \u2014 the organization-wide API rate limit was exceeded (`rate_limit_exceeded`). Retry with exponential backoff.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}}},"requestBody":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/CreateWorkflowRequest"}},"text\/json":{"schema":{"$ref":"#\/components\/schemas\/CreateWorkflowRequest"}},"application\/*+json":{"schema":{"$ref":"#\/components\/schemas\/CreateWorkflowRequest"}}},"required":true}},"get":{"tags":["Workflows"],"summary":"List workflows","operationId":"listWorkflows","description":"Returns a paginated list of workflows in your organization.","parameters":[{"name":"limit","in":"query","description":"Maximum number of items to return (1-100, default 20)","schema":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["integer","string"],"format":"int32","minimum":1,"maximum":100,"default":20,"example":20}},{"name":"cursor","in":"query","schema":{"type":"string"},"description":"Cursor from a previous response for pagination."}],"responses":{"200":{"description":"OK","content":{"text\/plain":{"schema":{"$ref":"#\/components\/schemas\/PaginatedResponseOfWorkflowResponse"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/PaginatedResponseOfWorkflowResponse"}},"text\/json":{"schema":{"$ref":"#\/components\/schemas\/PaginatedResponseOfWorkflowResponse"}}}},"400":{"description":"Bad request \u2014 validation error or malformed input.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ValidationErrorResponse"}}}},"401":{"description":"Unauthorized."},"403":{"description":"Forbidden."},"404":{"description":"Not found \u2014 the requested resource does not exist.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"409":{"description":"Conflict \u2014 the request is valid but cannot be completed in the current state.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"422":{"description":"Unprocessable content \u2014 the request body is understood but contains invalid values.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"429":{"description":"Too many requests \u2014 the organization-wide API rate limit was exceeded (`rate_limit_exceeded`). Retry with exponential backoff.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}}}}},"\/workflows\/{workflow_id}":{"get":{"tags":["Workflows"],"summary":"Retrieve a workflow","operationId":"getWorkflow","description":"Returns a single workflow by ID.","parameters":[{"name":"workflow_id","in":"path","required":true,"schema":{"type":"string","pattern":"^wflo_","example":"wflo_AbC123xYz456"},"description":"Unique identifier for the workflow (prefixed with `wflo_`)."}],"responses":{"200":{"description":"OK","content":{"text\/plain":{"schema":{"$ref":"#\/components\/schemas\/WorkflowResponse"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/WorkflowResponse"}},"text\/json":{"schema":{"$ref":"#\/components\/schemas\/WorkflowResponse"}}}},"400":{"description":"Bad request \u2014 validation error or malformed input.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ValidationErrorResponse"}}}},"401":{"description":"Unauthorized."},"403":{"description":"Forbidden."},"404":{"description":"Not found \u2014 the requested resource does not exist.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"409":{"description":"Conflict \u2014 the request is valid but cannot be completed in the current state.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"422":{"description":"Unprocessable content \u2014 the request body is understood but contains invalid values.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"429":{"description":"Too many requests \u2014 the organization-wide API rate limit was exceeded (`rate_limit_exceeded`). Retry with exponential backoff.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}}}},"patch":{"tags":["Workflows"],"summary":"Update a workflow","operationId":"updateWorkflow","description":"Updates a workflow. Passing `steps` replaces the array wholesale. Edits apply to future runs only; runs already in flight continue against the definition they started with.","parameters":[{"name":"workflow_id","in":"path","required":true,"schema":{"type":"string","pattern":"^wflo_","example":"wflo_AbC123xYz456"},"description":"Unique identifier for the workflow (prefixed with `wflo_`)."},{"name":"Idempotency-Key","in":"header","required":false,"description":"Optional key that makes the request idempotent. Retrying with the same key returns the original response instead of repeating the operation; keys expire after 24 hours. Any string up to 256 characters. See [Idempotency](\/api\/idempotency).","schema":{"type":"string","maxLength":256,"example":"550e8400-e29b-41d4-a716-446655440000"}}],"responses":{"200":{"description":"OK","content":{"text\/plain":{"schema":{"$ref":"#\/components\/schemas\/WorkflowResponse"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/WorkflowResponse"}},"text\/json":{"schema":{"$ref":"#\/components\/schemas\/WorkflowResponse"}}}},"400":{"description":"Bad request \u2014 validation error or malformed input.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ValidationErrorResponse"}}}},"401":{"description":"Unauthorized."},"403":{"description":"Forbidden."},"404":{"description":"Not found \u2014 the requested resource does not exist.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"409":{"description":"Conflict \u2014 the request is valid but cannot be completed in the current state. Also returned when an `Idempotency-Key` is reused with different request parameters (`idempotency_error`).","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"422":{"description":"Unprocessable content \u2014 the request body is understood but contains invalid values.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"429":{"description":"Too many requests \u2014 the organization-wide API rate limit was exceeded (`rate_limit_exceeded`). Retry with exponential backoff.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}}},"requestBody":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/UpdateWorkflowRequest"}},"text\/json":{"schema":{"$ref":"#\/components\/schemas\/UpdateWorkflowRequest"}},"application\/*+json":{"schema":{"$ref":"#\/components\/schemas\/UpdateWorkflowRequest"}}},"required":true}},"delete":{"tags":["Workflows"],"summary":"Delete a workflow","operationId":"deleteWorkflow","description":"Deletes a workflow. Runs already in flight are unaffected.","parameters":[{"name":"workflow_id","in":"path","required":true,"schema":{"type":"string","pattern":"^wflo_","example":"wflo_AbC123xYz456"},"description":"Unique identifier for the workflow (prefixed with `wflo_`)."},{"name":"Idempotency-Key","in":"header","required":false,"description":"Optional key that makes the request idempotent. Retrying with the same key returns the original response instead of repeating the operation; keys expire after 24 hours. Any string up to 256 characters. See [Idempotency](\/api\/idempotency).","schema":{"type":"string","maxLength":256,"example":"550e8400-e29b-41d4-a716-446655440000"}}],"responses":{"200":{"description":"OK","content":{"text\/plain":{"schema":{"$ref":"#\/components\/schemas\/DeleteWorkflowResponse"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/DeleteWorkflowResponse"}},"text\/json":{"schema":{"$ref":"#\/components\/schemas\/DeleteWorkflowResponse"}}}},"400":{"description":"Bad request \u2014 validation error or malformed input.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ValidationErrorResponse"}}}},"401":{"description":"Unauthorized."},"403":{"description":"Forbidden."},"404":{"description":"Not found \u2014 the requested resource does not exist.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"409":{"description":"Conflict \u2014 the request is valid but cannot be completed in the current state. Also returned when an `Idempotency-Key` is reused with different request parameters (`idempotency_error`).","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"422":{"description":"Unprocessable content \u2014 the request body is understood but contains invalid values.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"429":{"description":"Too many requests \u2014 the organization-wide API rate limit was exceeded (`rate_limit_exceeded`). Retry with exponential backoff.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}}}}},"\/workflows\/{workflow_id}\/run":{"post":{"tags":["Workflows"],"summary":"Run a workflow","operationId":"runWorkflow","description":"Runs a workflow. Returns immediately with the run `queued`.","parameters":[{"name":"workflow_id","in":"path","required":true,"schema":{"type":"string","pattern":"^wflo_","example":"wflo_AbC123xYz456"},"description":"Unique identifier for the workflow (prefixed with `wflo_`)."},{"name":"Idempotency-Key","in":"header","required":false,"description":"Optional key that makes the request idempotent. Retrying with the same key returns the original response instead of repeating the operation; keys expire after 24 hours. Any string up to 256 characters. See [Idempotency](\/api\/idempotency).","schema":{"type":"string","maxLength":256,"example":"550e8400-e29b-41d4-a716-446655440000"}}],"responses":{"201":{"description":"Created","content":{"text\/plain":{"schema":{"$ref":"#\/components\/schemas\/WorkflowRunResponse"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/WorkflowRunResponse"}},"text\/json":{"schema":{"$ref":"#\/components\/schemas\/WorkflowRunResponse"}}}},"400":{"description":"Bad request \u2014 validation error or malformed input.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ValidationErrorResponse"}}}},"401":{"description":"Unauthorized."},"403":{"description":"Forbidden."},"404":{"description":"Not found \u2014 the requested resource does not exist.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"409":{"description":"Conflict \u2014 the request is valid but cannot be completed in the current state. Also returned when an `Idempotency-Key` is reused with different request parameters (`idempotency_error`).","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"422":{"description":"Unprocessable content \u2014 the request body is understood but contains invalid values.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"429":{"description":"Too many requests. The organization-wide API rate limit was exceeded (`rate_limit_exceeded`), or the organization is at its session limit (`session_limit_exceeded`). Each workflow run holds one session until it finishes. Retry with exponential backoff.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}}},"requestBody":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/RunWorkflowRequest"}},"text\/json":{"schema":{"$ref":"#\/components\/schemas\/RunWorkflowRequest"}},"application\/*+json":{"schema":{"$ref":"#\/components\/schemas\/RunWorkflowRequest"}}},"required":false}}},"\/workflow-runs":{"get":{"tags":["Workflow Runs"],"summary":"List workflow runs","operationId":"listWorkflowRuns","description":"Returns a paginated list of workflow runs.","parameters":[{"name":"limit","in":"query","description":"Maximum number of items to return (1-100, default 20)","schema":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["integer","string"],"format":"int32","minimum":1,"maximum":100,"default":20,"example":20}},{"name":"cursor","in":"query","schema":{"type":"string"},"description":"Cursor from a previous response for pagination."},{"name":"status","in":"query","schema":{"type":"string"},"description":"Filter by run status: `queued`, `running`, `paused`, `completed`, `failed`, `canceling`, `canceled`. Pass multiple values comma-separated to match any."},{"name":"workflow_id","in":"query","schema":{"type":"string"},"description":"Scope to a single workflow. Prefixed with `wflo_`."},{"name":"trigger_id","in":"query","schema":{"type":"string"},"description":"Scope to runs created by this trigger. Prefixed with `trg_`."}],"responses":{"200":{"description":"OK","content":{"text\/plain":{"schema":{"$ref":"#\/components\/schemas\/PaginatedResponseOfWorkflowRunResponse"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/PaginatedResponseOfWorkflowRunResponse"}},"text\/json":{"schema":{"$ref":"#\/components\/schemas\/PaginatedResponseOfWorkflowRunResponse"}}}},"400":{"description":"Bad request \u2014 validation error or malformed input.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ValidationErrorResponse"}}}},"401":{"description":"Unauthorized."},"403":{"description":"Forbidden."},"404":{"description":"Not found \u2014 the requested resource does not exist.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"409":{"description":"Conflict \u2014 the request is valid but cannot be completed in the current state.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"422":{"description":"Unprocessable content \u2014 the request body is understood but contains invalid values.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"429":{"description":"Too many requests \u2014 the organization-wide API rate limit was exceeded (`rate_limit_exceeded`). Retry with exponential backoff.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}}}}},"\/workflow-runs\/{workflow_run_id}":{"get":{"tags":["Workflow Runs"],"summary":"Retrieve a workflow run","operationId":"getWorkflowRun","description":"Returns a single workflow run by ID, including each step's status, output, and task runs.","parameters":[{"name":"workflow_run_id","in":"path","required":true,"schema":{"type":"string","pattern":"^wrun_","example":"wrun_AbC123xYz456"},"description":"Unique identifier for the workflow run (prefixed with `wrun_`)."},{"name":"include","in":"query","schema":{"type":"string"},"description":"Comma-separated list of additional fields to include on each `task_runs` entry. Supported values: `input`, `storage`, `artifacts`. Sections are omitted from the response (not returned as null) when their flag is not present."}],"responses":{"200":{"description":"OK","content":{"text\/plain":{"schema":{"$ref":"#\/components\/schemas\/WorkflowRunResponse"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/WorkflowRunResponse"}},"text\/json":{"schema":{"$ref":"#\/components\/schemas\/WorkflowRunResponse"}}}},"400":{"description":"Bad request \u2014 validation error or malformed input.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ValidationErrorResponse"}}}},"401":{"description":"Unauthorized."},"403":{"description":"Forbidden."},"404":{"description":"Not found \u2014 the requested resource does not exist.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"409":{"description":"Conflict \u2014 the request is valid but cannot be completed in the current state.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"422":{"description":"Unprocessable content \u2014 the request body is understood but contains invalid values.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"429":{"description":"Too many requests \u2014 the organization-wide API rate limit was exceeded (`rate_limit_exceeded`). Retry with exponential backoff.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}}}}},"\/workflow-runs\/{workflow_run_id}\/cancel":{"post":{"tags":["Workflow Runs"],"summary":"Cancel a workflow run","operationId":"cancelWorkflowRun","description":"Cancels a workflow run and any in-flight task run.","parameters":[{"name":"workflow_run_id","in":"path","required":true,"schema":{"type":"string","pattern":"^wrun_","example":"wrun_AbC123xYz456"},"description":"Unique identifier for the workflow run (prefixed with `wrun_`)."},{"name":"Idempotency-Key","in":"header","required":false,"description":"Optional key that makes the request idempotent. Retrying with the same key returns the original response instead of repeating the operation; keys expire after 24 hours. Any string up to 256 characters. See [Idempotency](\/api\/idempotency).","schema":{"type":"string","maxLength":256,"example":"550e8400-e29b-41d4-a716-446655440000"}}],"responses":{"200":{"description":"OK","content":{"text\/plain":{"schema":{"$ref":"#\/components\/schemas\/WorkflowRunResponse"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/WorkflowRunResponse"}},"text\/json":{"schema":{"$ref":"#\/components\/schemas\/WorkflowRunResponse"}}}},"400":{"description":"Bad request \u2014 validation error or malformed input.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ValidationErrorResponse"}}}},"401":{"description":"Unauthorized."},"403":{"description":"Forbidden."},"404":{"description":"Not found \u2014 the requested resource does not exist.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"409":{"description":"Conflict \u2014 the request is valid but cannot be completed in the current state. Also returned when an `Idempotency-Key` is reused with different request parameters (`idempotency_error`).","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"422":{"description":"Unprocessable content. The run has already finished (`invalid_field_value`).","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"429":{"description":"Too many requests \u2014 the organization-wide API rate limit was exceeded (`rate_limit_exceeded`). Retry with exponential backoff.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}}}}},"\/workflow-runs\/{workflow_run_id}\/rerun":{"post":{"tags":["Workflow Runs"],"summary":"Rerun a workflow run","operationId":"rerunWorkflowRun","description":"Creates a new run of the same workflow carrying the original run's per-step overrides (credential or source, and input), including for steps that were skipped. Templated inputs are re-evaluated against the new run rather than frozen to the original's values. The rerun replays the definition the original run executed, so a workflow edited since is not picked up; start a fresh run for that. The new run executes asynchronously in a new session. Returns immediately with the run `queued`.","parameters":[{"name":"workflow_run_id","in":"path","required":true,"schema":{"type":"string","pattern":"^wrun_","example":"wrun_AbC123xYz456"},"description":"Unique identifier for the workflow run (prefixed with `wrun_`)."},{"name":"Idempotency-Key","in":"header","required":false,"description":"Optional key that makes the request idempotent. Retrying with the same key returns the original response instead of repeating the operation; keys expire after 24 hours. Any string up to 256 characters. See [Idempotency](\/api\/idempotency).","schema":{"type":"string","maxLength":256,"example":"550e8400-e29b-41d4-a716-446655440000"}}],"responses":{"201":{"description":"Created","content":{"text\/plain":{"schema":{"$ref":"#\/components\/schemas\/WorkflowRunResponse"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/WorkflowRunResponse"}},"text\/json":{"schema":{"$ref":"#\/components\/schemas\/WorkflowRunResponse"}}}},"400":{"description":"Bad request \u2014 validation error or malformed input.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ValidationErrorResponse"}}}},"401":{"description":"Unauthorized."},"403":{"description":"Forbidden."},"404":{"description":"Not found \u2014 the workflow run does not exist, or its workflow has been deleted (`resource_not_found`).","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"409":{"description":"Conflict \u2014 the original run has not reached a terminal state (`resource_not_ready`). Wait for it to complete, fail, or cancel before rerunning it. Also returned when an `Idempotency-Key` is reused with different request parameters (`idempotency_error`).","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"422":{"description":"Unprocessable content \u2014 the original run's steps can no longer be replayed, for example because a step's task now declares tokenized input fields.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"429":{"description":"Too many requests. The organization-wide API rate limit was exceeded (`rate_limit_exceeded`), or the organization is at its session limit (`session_limit_exceeded`). Each workflow run holds one session until it finishes. Retry with exponential backoff.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}}}}}},"components":{"schemas":{"AuthCredentialsSummary":{"type":"object","properties":{"username":{"type":["null","string"],"description":"The username associated with this credential, if applicable."},"email":{"type":["null","string"],"description":"The Google or Apple Account email, for `google_sso` and `apple_sso`."},"source_fields":{"type":"object","additionalProperties":{"type":"string"},"description":"Non-tokenized `source_fields` returned as key\/value pairs in the clear (for example, `{ \"company_id\": \"ACME-4412\" }`). Tokenized source fields are dropped from this map and named in `tokenized` instead. Omitted when empty."},"tokenized":{"type":"array","items":{"type":"string"},"description":"Names of the source fields whose values were vaulted. Their values never appear in `source_fields` and cannot be read back through the API. Omitted when nothing was tokenized."}},"description":"Summary of stored authentication credentials. Secret values such as `password` are encrypted at rest and never returned. Non-tokenized `source_fields` are returned in the clear; fields named in `tokenized` are vaulted and omitted from the map."},"AuthCredentialsInput":{"type":"object","properties":{"username":{"type":"string","description":"Username for `username_password` and `username`."},"email":{"type":"string","description":"The end user's Google or Apple Account email, for `google_sso` and `apple_sso`. Must be a valid email address."},"password":{"type":"string","description":"Password for `username_password`, or the Google or Apple Account password for `google_sso` and `apple_sso`. Encrypted at rest and never returned."},"source_fields":{"type":"object","additionalProperties":{"type":"string"},"description":"Additional values the source requires at login, beyond what the `auth_method` covers (for example, `{ \"company_id\": \"ACME-4412\" }`). For the `source_fields` auth method, at least one entry is required. Values must be strings. Keys must match `^[a-z][a-z0-9_]{0,63}$`, must not collide with reserved keys on the `auth_method` (such as `username`, `email` or `password`), and are capped at 10 entries per credential. Values are returned in the clear on read unless named in `tokenized`."},"tokenized":{"type":"array","items":{"type":"string"},"description":"Names of `source_fields` keys to vault. Each entry must name a key present in `source_fields`. Tokenized values are stored in a secure vault, removed from API responses, and listed by name in the response `tokenized` array; they cannot be read back. On update, may only name keys supplied in the same request. Auth secrets such as `password` are always vaulted regardless of this array."}},"description":"Credentials payload. Structure depends on `auth_method`. For `username_password`, pass `username` and `password`. For `username`, pass only `username`, for sources that sign in without a password. For `google_sso` and `apple_sso`, pass `email` and `password` for the end user's Google or Apple Account. For `source_fields`, pass at least one entry in `source_fields`. Any `auth_method` except `none` may also include `source_fields` alongside its credentials (for example, `username` and `password` plus `source_fields` in the same payload), and `tokenized` to vault selected source-field values."},"CreateAgentRequest":{"required":["name"],"type":"object","properties":{"name":{"type":"string","description":"Display name for the agent."},"description":{"type":["null","string"],"description":"A description of the agent's purpose."}},"description":"Request body for creating a new agent."},"CreateAgentResponse":{"required":["id","object","name","description","tasks","created_at","updated_at","request_id"],"type":"object","properties":{"id":{"type":"string","description":"Unique identifier for the agent, prefixed with `agt_`.","pattern":"^agt_","example":"agt_AbC123xYz456"},"object":{"type":"string","description":"Always `agent`."},"name":{"type":"string","description":"Display name for the agent."},"description":{"type":["null","string"],"description":"Description of the agent's purpose."},"tasks":{"type":"array","items":{"$ref":"#\/components\/schemas\/TaskSummary"},"description":"Tasks associated with this agent."},"created_at":{"type":"string","format":"date-time","description":"ISO 8601 timestamp of when the resource was created.","example":"2026-08-24T12:00:00Z"},"updated_at":{"type":"string","format":"date-time","description":"ISO 8601 timestamp of when the resource was last updated.","example":"2026-08-24T12:00:00Z"},"request_id":{"type":"string","description":"Unique identifier for the API request. Include this when contacting support."}},"description":"An agent object. Agents organize related tasks under a single use case."},"PersistenceInput":{"type":"object","properties":{"enabled":{"type":"boolean","description":"Whether to save this credential's login state between runs. Defaults to `false`."}},"description":"Credential persistence settings. When enabled, Deck saves the credential's authenticated login state after each run and restores it on later runs. Sources that honor the restored state skip the login flow and repeat MFA prompts."},"QueueingSettings":{"required":["enabled"],"type":"object","properties":{"enabled":{"type":"boolean","description":"Whether the credential's task runs start one at a time. Waiting runs stay `queued` and generally start in the order they were created."}},"description":"Credential queueing settings. When enabled, Deck runs one task at a time on the credential and holds later runs as `queued` until it's free."},"PersistenceSummary":{"required":["enabled"],"type":"object","properties":{"enabled":{"type":"boolean","description":"Whether persistence is enabled for this credential."}},"description":"Persistence settings for this credential."},"CreateCredentialRequest":{"required":["source_id"],"type":"object","properties":{"source_id":{"type":"string","description":"The source to authenticate against. Prefixed with `src_`."},"auth_method":{"type":["null","string"],"description":"Authentication method for the source. One of `username_password`, `username`, `source_fields`, `google_sso`, `apple_sso`, or `none`."},"auth_credentials":{"$ref":"#\/components\/schemas\/AuthCredentialsInput"},"external_id":{"type":["null","string"],"description":"An identifier from your system to associate with this credential. Max 255 characters. See the external IDs guide for multi-tenant patterns."},"persistence":{"$ref":"#\/components\/schemas\/PersistenceInput","description":"Persistence settings. Omit to leave persistence off."},"queueing":{"$ref":"#\/components\/schemas\/QueueingSettings","description":"Queueing settings. Omit to enable queueing."},"interactions_managed":{"$ref":"#\/components\/schemas\/InteractionsManagedInput"},"geolocation":{"$ref":"#\/components\/schemas\/GeolocationInput","description":"Country this credential's task runs come from. Omit to let Deck pick."}},"description":"Request body for creating a new credential."},"CreateCredentialResponse":{"required":["id","object","status","external_id","source_id","auth_method","auth_credentials","persistence","queueing","geolocation","created_at","updated_at","request_id"],"type":"object","properties":{"id":{"type":"string","description":"Unique identifier for the credential, prefixed with `cred_`.","pattern":"^cred_","example":"cred_AbC123xYz456"},"object":{"type":"string","description":"Always `credential`."},"status":{"type":"string","description":"Credential status: `unverified`, `verified`, `invalid`, or `deleted`."},"external_id":{"type":["null","string"],"description":"External identifier from your system, if set."},"source_id":{"type":"string","description":"The source this credential authenticates against. Prefixed with `src_`."},"auth_method":{"type":"string","description":"Authentication method: `username_password`, `username`, `source_fields`, `google_sso`, `apple_sso`, or `none`."},"auth_credentials":{"oneOf":[{"type":"null"},{"$ref":"#\/components\/schemas\/AuthCredentialsSummary"}],"description":"Summary of stored credentials. Sensitive values are not returned."},"persistence":{"$ref":"#\/components\/schemas\/PersistenceSummary","description":"Persistence settings for this credential."},"queueing":{"$ref":"#\/components\/schemas\/QueueingSettings","description":"Queueing settings for this credential."},"interactions_managed":{"oneOf":[{"type":"null"},{"$ref":"#\/components\/schemas\/InteractionsManagedSummary"}],"description":"Managed interaction settings for this credential. `null` when not configured."},"geolocation":{"oneOf":[{"$ref":"#\/components\/schemas\/GeolocationSummary"},{"type":"null"}],"description":"Country this credential's task runs come from. `null` when unset, and Deck picks."},"created_at":{"type":"string","format":"date-time","description":"ISO 8601 timestamp of when the resource was created.","example":"2026-08-24T12:00:00Z"},"updated_at":{"type":"string","format":"date-time","description":"ISO 8601 timestamp of when the resource was last updated.","example":"2026-08-24T12:00:00Z"},"request_id":{"type":"string","description":"Unique identifier for the API request. Include this when contacting support."}}},"CreateEventDestinationRequest":{"required":["name"],"type":"object","properties":{"name":{"type":"string","description":"Display name for the event destination."},"type":{"type":"string","enum":["webhook","aws_sqs","aws_kinesis","aws_s3","aws_eventbridge","gcp_pubsub","rabbitmq","azure_servicebus","hookdeck","cloudflare_queues"],"description":"Destination type. Defaults to `webhook` if omitted. Send the matching configuration object under a property whose name equals this value (for example, when `type` is `aws_sqs`, include an `aws_sqs` object)."},"events":{"type":["null","array"],"items":{"type":"string"},"description":"Event types to subscribe to (for example `task_run.completed`, `credential.verified`). Use `[\"*\"]` to subscribe to all event types; `*` cannot be combined with specific types, and the list must not be empty."},"filter":{"type":["null","object"],"description":"Optional content filter matched against each event payload. Only events of the subscribed types that match are delivered. Write the filter against the event as you receive it, for example `{\"data\": {\"task_id\": \"task_a1b2c3d4\"}}`. Omit to deliver every event of the subscribed types. Must be an object nested no more than 32 levels deep. See [Filtering events](\/events\/destinations-and-deliveries#filtering-events)."},"webhook":{"type":"object","required":["url"],"properties":{"url":{"type":"string","description":"Absolute `https` or `http` URL that receives event deliveries."},"secret":{"type":"string","description":"Signing secret used to verify webhook signatures. Write-only; never returned."}},"description":"Configuration for a `webhook` destination. Provide this object under the `webhook` property when `type` is `webhook`."},"aws_sqs":{"type":"object","required":["queue_url"],"properties":{"queue_url":{"type":"string","description":"URL of the destination Amazon SQS queue."},"key":{"type":"string","description":"AWS access key ID. Accepted alias: `access_key`. Write-only."},"secret":{"type":"string","description":"AWS secret access key. Accepted alias: `secret_key`. Write-only."}},"description":"Configuration for a `aws_sqs` destination. Provide this object under the `aws_sqs` property when `type` is `aws_sqs`."},"aws_kinesis":{"type":"object","required":["stream_name","region"],"properties":{"stream_name":{"type":"string","description":"Name of the Amazon Kinesis stream."},"region":{"type":"string","description":"AWS region of the stream."},"key":{"type":"string","description":"AWS access key ID. Accepted alias: `access_key`. Write-only."},"secret":{"type":"string","description":"AWS secret access key. Accepted alias: `secret_key`. Write-only."}},"description":"Configuration for a `aws_kinesis` destination. Provide this object under the `aws_kinesis` property when `type` is `aws_kinesis`."},"aws_s3":{"type":"object","required":["bucket","region"],"properties":{"bucket":{"type":"string","description":"Name of the destination Amazon S3 bucket."},"region":{"type":"string","description":"AWS region of the bucket."},"key":{"type":"string","description":"AWS access key ID. Accepted alias: `access_key`. Write-only."},"secret":{"type":"string","description":"AWS secret access key. Accepted alias: `secret_key`. Write-only."}},"description":"Configuration for a `aws_s3` destination. Provide this object under the `aws_s3` property when `type` is `aws_s3`."},"aws_eventbridge":{"type":"object","required":["region"],"properties":{"event_bus_name":{"type":"string","description":"Name or ARN of the Amazon EventBridge event bus. Defaults to the account's default event bus."},"region":{"type":"string","description":"AWS region of the event bus."},"key":{"type":"string","description":"AWS access key ID. Accepted alias: `access_key`. Write-only."},"secret":{"type":"string","description":"AWS secret access key. Accepted alias: `secret_key`. Write-only."}},"description":"Configuration for a `aws_eventbridge` destination. Provide this object under the `aws_eventbridge` property when `type` is `aws_eventbridge`."},"gcp_pubsub":{"type":"object","required":["project_id","topic"],"properties":{"project_id":{"type":"string","description":"Google Cloud project ID."},"topic":{"type":"string","description":"Pub\/Sub topic name. Accepted alias: `topic_name`."},"service_account_json":{"type":"string","description":"Service account credentials JSON. Accepted alias: `credentials_json`. Write-only."}},"description":"Configuration for a `gcp_pubsub` destination. Provide this object under the `gcp_pubsub` property when `type` is `gcp_pubsub`."},"rabbitmq":{"type":"object","required":["exchange","server_url"],"properties":{"exchange":{"type":"string","description":"Name of the RabbitMQ exchange."},"server_url":{"type":"string","description":"RabbitMQ host as `host[:port]` (for example `rabbitmq:5672`). You may instead pass a full AMQP URL with embedded credentials; Deck extracts the host, username, and password from it."},"username":{"type":"string","description":"RabbitMQ username (or embed it in the AMQP `server_url`). Write-only."},"password":{"type":"string","description":"RabbitMQ password (or embed it in the AMQP `server_url`). Write-only."}},"description":"Configuration for a `rabbitmq` destination. Provide this object under the `rabbitmq` property when `type` is `rabbitmq`."},"azure_servicebus":{"type":"object","required":["name"],"properties":{"name":{"type":"string","description":"Name of the Service Bus queue or topic. Accepted alias: `queue_name`."},"connection_string":{"type":"string","description":"Azure Service Bus connection string. Write-only."}},"description":"Configuration for a `azure_servicebus` destination. Provide this object under the `azure_servicebus` property when `type` is `azure_servicebus`."},"hookdeck":{"type":"object","properties":{"token":{"type":"string","description":"Hookdeck API key. Accepted alias: `api_key`. Write-only."}},"description":"Configuration for a `hookdeck` destination. Provide this object under the `hookdeck` property when `type` is `hookdeck`."},"cloudflare_queues":{"type":"object","required":["account_id","queue_id"],"properties":{"account_id":{"type":"string","description":"Cloudflare account ID."},"queue_id":{"type":"string","description":"ID of the Cloudflare queue."},"api_token":{"type":"string","description":"Cloudflare API token with permission to send messages to the queue. Write-only."}},"description":"Configuration for a `cloudflare_queues` destination. Provide this object under the `cloudflare_queues` property when `type` is `cloudflare_queues`."}},"description":"Request body for creating a new event destination. Provide `name`, `type`, `events`, and exactly one type-specific configuration object whose property name matches `type` (for example `{\"type\": \"webhook\", \"webhook\": {\"url\": \"...\"}}`)."},"CreateSessionRequest":{"type":"object","properties":{"source_id":{"type":["null","string"],"description":"The source to prepare the session for. The agent opens that source's login page ahead of the first run. A hint for what the session does next, not a restriction on it: a task or workflow run on the session can target any source, and the session's network path is fixed by the first run that uses it rather than by this field. An unknown source returns 404. Prefixed with `src_`.","pattern":"^src_","example":"src_AbC123xYz456"}},"description":"Request body for starting a session. Every field is optional; an empty body starts a plain session."},"CreateSessionResponse":{"required":["id","object","status","runtime_ms","task_runs","created_at","updated_at","request_id"],"type":"object","properties":{"id":{"type":"string","description":"Unique identifier for the session, prefixed with `sess_`.","pattern":"^sess_","example":"sess_AbC123xYz456"},"object":{"type":"string","description":"Always `session`."},"status":{"type":"string","description":"Session status: `queued`, `running`, `idle`, `completing`, `completed`, or `failed`."},"source_id":{"type":"string","description":"The source the session was prepared for. Present only when a `source_id` was passed when starting the session. Prefixed with `src_`.","pattern":"^src_","example":"src_AbC123xYz456"},"runtime_ms":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["null","integer","string"],"format":"int32","description":"Total session runtime in milliseconds."},"task_runs":{"type":"array","items":{"$ref":"#\/components\/schemas\/SessionTaskRunData"},"description":"Task runs executed within this session."},"created_at":{"type":"string","format":"date-time","description":"ISO 8601 timestamp of when the resource was created.","example":"2026-08-24T12:00:00Z"},"updated_at":{"type":"string","format":"date-time","description":"ISO 8601 timestamp of when the resource was last updated.","example":"2026-08-24T12:00:00Z"},"request_id":{"type":"string","description":"Unique identifier for the API request. Include this when contacting support."}},"description":"A session object representing an isolated compute session for executing tasks."},"CreateSessionTokenResponse":{"required":["id","object","token","expires_at","created_at","request_id"],"type":"object","properties":{"id":{"type":"string","description":"Unique identifier for the session token, prefixed with `tok_`.","pattern":"^tok_","example":"tok_AbC123xYz456"},"object":{"type":"string","description":"Always `token`."},"token":{"type":"string","description":"The token value to pass to `<DeckAuthComponent \/>`. Prefixed with `tk_`. Treat as a bearer secret until it expires."},"expires_at":{"type":"string","format":"date-time","description":"ISO 8601 timestamp at which the token stops being accepted if it is never used. 30 minutes after `created_at`. Each request made with the token extends the expiry to 30 minutes after that request, up to 24 hours after `created_at`.","example":"2026-08-24T12:00:00Z"},"created_at":{"type":"string","format":"date-time","description":"ISO 8601 timestamp of when the token was created.","example":"2026-08-24T12:00:00Z"},"request_id":{"type":"string","description":"Unique identifier for the API request. Include this when contacting support."}},"description":"A session token for the Auth Component. Expires 30 minutes after its last use, and no later than 24 hours after creation. Scoped to a single component session."},"CreateSourceRequest":{"required":["type","website"],"type":"object","properties":{"type":{"type":"string","description":"The source type. `website` is currently the only supported type; it defaults to `website` if omitted."},"website":{"$ref":"#\/components\/schemas\/SourceWebsite","description":"Website configuration for the source."},"name":{"type":["null","string"],"description":"Display name for the source."},"headers":{"oneOf":[{"type":"null"},{"$ref":"#\/components\/schemas\/SourceHeadersRequest"}],"description":"Optional [custom headers](\/platform\/source-headers) Deck attaches to every request to the source's host, such as an access gateway's service token. Available on Enterprise plans as an add-on; returns `feature_not_available` until enabled for your organization."},"network":{"$ref":"#\/components\/schemas\/SourceNetworkRequest","description":"Optional [network](\/platform\/static-ips) for the source. Set `{ \"type\": \"static_ips\" }` to run every run against the source from Deck's static IP range. Omit for Deck's default IPs. Available on Enterprise plans as an add-on; returns `feature_not_available` until enabled for your organization."}},"description":"Request body for creating a new source."},"CreateSourceResponse":{"required":["id","object","name","type","website","created_at","updated_at","request_id","network"],"type":"object","properties":{"id":{"type":"string","description":"Unique identifier for the source, prefixed with `src_`.","pattern":"^src_","example":"src_AbC123xYz456"},"object":{"type":"string","description":"Always `source`."},"name":{"type":["null","string"],"description":"Display name for the source."},"type":{"type":"string","description":"The source type. `website` is currently the only supported type; it defaults to `website` if omitted."},"website":{"$ref":"#\/components\/schemas\/SourceWebsite","description":"Website configuration for the source."},"network":{"$ref":"#\/components\/schemas\/SourceNetworkResponse","description":"The source's [network](\/platform\/static-ips). Always present."},"created_at":{"type":"string","format":"date-time","description":"ISO 8601 timestamp of when the resource was created.","example":"2026-08-24T12:00:00Z"},"updated_at":{"type":"string","format":"date-time","description":"ISO 8601 timestamp of when the resource was last updated.","example":"2026-08-24T12:00:00Z"},"request_id":{"type":"string","description":"Unique identifier for the API request. Include this when contacting support."},"headers":{"oneOf":[{"type":"null"},{"$ref":"#\/components\/schemas\/SourceHeadersResponse"}],"description":"Request headers configured on the source. Omitted when none are set."}},"description":"A source object. Sources are websites or services that agents connect to."},"CreateTaskRequest":{"required":["name","agent_id"],"type":"object","properties":{"name":{"type":"string","description":"Display name for the task."},"agent_id":{"type":"string","description":"The agent this task belongs to. Prefixed with `agt_`."},"id":{"type":["null","string"],"description":"Optional client-specified ID for the task. If not provided, Deck generates one."},"input_schema":{"description":"JSON Schema defining the expected input for task runs."},"output_schema":{"description":"JSON Schema defining the expected output for task runs."},"prompt":{"type":["null","string"],"description":"Instructions for the agent describing what this task should do."},"storage":{"description":"Storage configuration for file capture. Set `enabled` to `true` to capture files. Supports `enabled`, `extraction`, `extraction_schema`, `extraction_prompt`, `extraction_pages_max`, `deduplication`, and `deduplication_schema` fields."},"settings":{"type":"object","properties":{"timeout_seconds":{"type":"integer","minimum":1,"description":"Maximum wall-clock time, in seconds, that a single run of this task may execute before Deck stops it and the run fails with a `timeout` error. Must be a positive integer. The maximum you can set is determined by your plan (see https:\/\/deck.co\/pricing); the overall ceiling is 28800 seconds (8 hours). If omitted, the task uses your plan's default timeout. A value above your plan's maximum is rejected when the task is created or updated with a `422` `timeout_exceeds_plan_max` error."},"sensitive":{"type":"boolean","description":"Marks the task as sensitive. When `true`, the Console hides the live browser view, agent reasoning, and screenshots for this task's runs. Must be a boolean; any other value is rejected with a `422` `invalid_field_value` error. If omitted, the task is not sensitive."}},"description":"Task-level settings. Supports `timeout_seconds` and `sensitive`."}},"description":"Request body for creating a new task."},"CreateTaskResponse":{"required":["id","object","name","prompt","status","agent_id","input_schema","output_schema","storage","settings","created_at","updated_at","request_id"],"type":"object","properties":{"id":{"type":"string","description":"Unique identifier for the task, prefixed with `task_`.","pattern":"^task_","example":"task_AbC123xYz456"},"object":{"type":"string","description":"Always `task`."},"name":{"type":"string","description":"Display name for the task."},"prompt":{"type":["null","string"],"description":"Instructions for the agent describing what this task should do."},"status":{"type":"string","description":"Task status: `learning`, `test`, or `live`."},"agent_id":{"type":"string","description":"The agent this task belongs to. Prefixed with `agt_`."},"input_schema":{"oneOf":[{"type":"null"},{"$ref":"#\/components\/schemas\/JsonElement"}],"description":"JSON Schema defining the expected input for task runs."},"output_schema":{"oneOf":[{"type":"null"},{"$ref":"#\/components\/schemas\/JsonElement"}],"description":"JSON Schema defining the expected output for task runs."},"storage":{"oneOf":[{"type":"null"},{"$ref":"#\/components\/schemas\/JsonElement"}],"description":"Storage configuration for file capture during task execution."},"settings":{"oneOf":[{"type":"null"},{"$ref":"#\/components\/schemas\/JsonElement"}],"description":"Task-level settings. Supports `timeout_seconds` (the per-run timeout, in seconds) and `sensitive` (when `true`, the Console hides the live browser view, agent reasoning, and screenshots for this task's runs). `null` when no settings were set on the task, in which case runs use your plan's default timeout and the task is not sensitive."},"created_at":{"type":"string","format":"date-time","description":"ISO 8601 timestamp of when the resource was created.","example":"2026-08-24T12:00:00Z"},"updated_at":{"type":"string","format":"date-time","description":"ISO 8601 timestamp of when the resource was last updated.","example":"2026-08-24T12:00:00Z"},"request_id":{"type":"string","description":"Unique identifier for the API request. Include this when contacting support."}},"description":"A task object. Tasks are defined actions an agent can perform."},"DeleteAgentResponse":{"required":["id","object","deleted","request_id"],"type":"object","properties":{"id":{"type":"string","description":"ID of the deleted agent."},"object":{"type":"string","description":"Always `agent`."},"deleted":{"type":"boolean","description":"Always `true` for successful deletions."},"request_id":{"type":"string","description":"Unique identifier for the API request. Include this when contacting support."}},"description":"Confirmation object returned after a successful deletion."},"DeleteCredentialResponse":{"required":["id","object","status","request_id"],"type":"object","properties":{"id":{"type":"string","description":"ID of the deleted credential."},"object":{"type":"string","description":"Always `credential`."},"status":{"type":"string","description":"Credential status after deletion."},"request_id":{"type":"string","description":"Unique identifier for the API request. Include this when contacting support."}},"description":"Confirmation object returned after a successful credential deletion."},"DeleteEventDestinationResponse":{"required":["id","object","deleted","request_id"],"type":"object","properties":{"id":{"type":"string","description":"ID of the deleted event destination."},"object":{"type":"string","description":"Always `event_destination`."},"deleted":{"type":"boolean","description":"Always `true` for successful deletions."},"request_id":{"type":"string","description":"Unique identifier for the API request. Include this when contacting support."}},"description":"Confirmation object returned after a successful deletion."},"TestEventDestinationResponse":{"required":["status","event_id"],"type":"object","properties":{"status":{"type":"string","description":"Outcome of the delivery attempt: `success`, `failure`, or `pending` if the attempt hadn't resolved when the request returned. Check the destination's deliveries for the final status."},"event_id":{"type":"string","description":"ID of the `test.ping` event that was sent (prefixed with `evt_`)."},"response_code":{"type":["integer","null"],"description":"HTTP status code returned by the endpoint, when available."}},"description":"Result of sending a test event to a destination."},"DeleteSourceResponse":{"required":["id","object","deleted","request_id"],"type":"object","properties":{"id":{"type":"string","description":"ID of the deleted source."},"object":{"type":"string","description":"Always `source`."},"deleted":{"type":"boolean","description":"Always `true` for successful deletions."},"request_id":{"type":"string","description":"Unique identifier for the API request. Include this when contacting support."}},"description":"Confirmation object returned after a successful deletion."},"DeleteStorageItemResponse":{"required":["id","object","deleted","request_id"],"type":"object","properties":{"id":{"type":"string","description":"ID of the deleted storage item."},"object":{"type":"string","description":"Always `storage`."},"deleted":{"type":"boolean","description":"Always `true` for successful deletions."},"request_id":{"type":"string","description":"Unique identifier for the API request. Include this when contacting support."}},"description":"Confirmation object returned after a successful deletion."},"DeleteTaskResponse":{"required":["id","object","deleted","request_id"],"type":"object","properties":{"id":{"type":"string","description":"ID of the deleted task."},"object":{"type":"string","description":"Always `task`."},"deleted":{"type":"boolean","description":"Always `true` for successful deletions."},"request_id":{"type":"string","description":"Unique identifier for the API request. Include this when contacting support."}},"description":"Confirmation object returned after a successful deletion."},"EventDeliveryResponse":{"type":"object","properties":{"object":{"type":"string","description":"Always `event_delivery`."},"status":{"type":"string","description":"Delivery status: `success` or `failure`."},"event_type":{"type":["null","string"],"description":"The type of event that was delivered."},"event_id":{"type":"string","description":"The event that was delivered. Prefixed with `evt_`."},"event_destination_id":{"type":"string","description":"The destination the event was delivered to. Prefixed with `evtd_`."},"attempts":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["integer","string"],"format":"int32","description":"Number of delivery attempts."},"created_at":{"type":"string","format":"date-time","description":"ISO 8601 timestamp of when the resource was created.","example":"2026-08-24T12:00:00Z"},"delivered_at":{"type":["null","string"],"format":"date-time","description":"ISO 8601 timestamp of successful delivery, if applicable.","example":"2026-08-24T12:00:00Z"}},"description":"A record of an event sent to a destination.","required":["object","status","event_id","event_destination_id","attempts","created_at"]},"EventDestinationResponse":{"required":["id","object","name","status","type","events","created_at","updated_at"],"type":"object","properties":{"id":{"type":"string","description":"Unique identifier for the event destination, prefixed with `evtd_`.","pattern":"^evtd_","example":"evtd_AbC123xYz456"},"object":{"type":"string","description":"Always `event_destination`."},"name":{"type":"string","description":"Display name for the event destination."},"status":{"type":"string","description":"Destination status: `pending_verification`, `active`, or `inactive`."},"type":{"type":"string","enum":["webhook","aws_sqs","aws_kinesis","aws_s3","aws_eventbridge","gcp_pubsub","rabbitmq","azure_servicebus","hookdeck","cloudflare_queues"],"description":"Destination type. The endpoint configuration is returned under a property whose name equals this value (for example, a `webhook` destination returns a `webhook` object)."},"events":{"type":"array","items":{"type":"string"},"description":"Event types this destination is subscribed to."},"filter":{"type":["null","object"],"description":"Content filter applied to events before delivery, as written when it was set. `null` when the destination has no filter."},"created_at":{"type":"string","format":"date-time","description":"ISO 8601 timestamp of when the resource was created.","example":"2026-08-24T12:00:00Z"},"updated_at":{"type":"string","format":"date-time","description":"ISO 8601 timestamp of when the resource was last updated.","example":"2026-08-24T12:00:00Z"},"request_id":{"type":["null","string"],"description":"Unique identifier for the API request. Include this when contacting support."},"test_endpoint":{"type":["object","null"],"properties":{"inspect_url":{"type":"string","description":"URL that opens delivered payloads in Hookdeck Inspect. Anyone with the link can read deliveries."}},"description":"Present when the destination is a `webhook` backed by a disposable Hookdeck Inspect test endpoint created in the Console. Read-only."},"webhook":{"type":"object","required":["url"],"properties":{"url":{"type":"string","description":"Absolute `https` or `http` URL that receives event deliveries."}},"description":"Configuration returned for a `webhook` destination (credentials are never returned)."},"aws_sqs":{"type":"object","required":["queue_url"],"properties":{"queue_url":{"type":"string","description":"URL of the destination Amazon SQS queue."}},"description":"Configuration returned for a `aws_sqs` destination (credentials are never returned)."},"aws_kinesis":{"type":"object","required":["stream_name","region"],"properties":{"stream_name":{"type":"string","description":"Name of the Amazon Kinesis stream."},"region":{"type":"string","description":"AWS region of the stream."}},"description":"Configuration returned for a `aws_kinesis` destination (credentials are never returned)."},"aws_s3":{"type":"object","required":["bucket","region"],"properties":{"bucket":{"type":"string","description":"Name of the destination Amazon S3 bucket."},"region":{"type":"string","description":"AWS region of the bucket."}},"description":"Configuration returned for a `aws_s3` destination (credentials are never returned)."},"aws_eventbridge":{"type":"object","required":["region"],"properties":{"event_bus_name":{"type":"string","description":"Name or ARN of the Amazon EventBridge event bus. Defaults to the account's default event bus."},"region":{"type":"string","description":"AWS region of the event bus."}},"description":"Configuration returned for a `aws_eventbridge` destination (credentials are never returned)."},"gcp_pubsub":{"type":"object","required":["project_id","topic"],"properties":{"project_id":{"type":"string","description":"Google Cloud project ID."},"topic":{"type":"string","description":"Pub\/Sub topic name. Accepted alias: `topic_name`."}},"description":"Configuration returned for a `gcp_pubsub` destination (credentials are never returned)."},"rabbitmq":{"type":"object","required":["exchange","server_url"],"properties":{"exchange":{"type":"string","description":"Name of the RabbitMQ exchange."},"server_url":{"type":"string","description":"RabbitMQ host as `host[:port]` (for example `rabbitmq:5672`). You may instead pass a full AMQP URL with embedded credentials; Deck extracts the host, username, and password from it."}},"description":"Configuration returned for a `rabbitmq` destination (credentials are never returned)."},"azure_servicebus":{"type":"object","required":["name"],"properties":{"name":{"type":"string","description":"Name of the Service Bus queue or topic. Accepted alias: `queue_name`."}},"description":"Configuration returned for a `azure_servicebus` destination (credentials are never returned)."},"hookdeck":{"type":"object","properties":{},"description":"Configuration returned for a `hookdeck` destination (credentials are never returned)."},"cloudflare_queues":{"type":"object","required":["account_id","queue_id"],"properties":{"account_id":{"type":"string","description":"Cloudflare account ID."},"queue_id":{"type":"string","description":"ID of the Cloudflare queue."}},"description":"Configuration returned for a `cloudflare_queues` destination (credentials are never returned)."}},"description":"An event destination object representing an endpoint that receives platform events."},"EventResponse":{"required":["id","object","type","data","created_at","request_id"],"type":"object","properties":{"id":{"type":"string","description":"Unique identifier for the event, prefixed with `evt_`.","pattern":"^evt_","example":"evt_AbC123xYz456"},"object":{"type":"string","description":"Always `event`."},"type":{"type":"string","description":"Event type (e.g. `task_run.completed`, `credential.verified`)."},"data":{"$ref":"#\/components\/schemas\/JsonElement","description":"Event payload containing a summary of the resource that triggered the event."},"created_at":{"type":"string","format":"date-time","description":"ISO 8601 timestamp of when the resource was created.","example":"2026-08-24T12:00:00Z"},"request_id":{"type":["null","string"],"description":"Unique identifier for the API request. Include this when contacting support."}},"description":"A lifecycle event emitted by the platform."},"EventTypeItem":{"required":["type","description"],"type":"object","properties":{"type":{"type":"string","description":"Event type identifier (e.g. `task_run.completed`)."},"description":{"type":"string","description":"Human-readable description of when this event fires."}},"description":"An available event type."},"GetAgentResponse":{"required":["id","object","name","description","tasks","created_at","updated_at","request_id"],"type":"object","properties":{"id":{"type":"string","description":"Unique identifier for the agent, prefixed with `agt_`.","pattern":"^agt_","example":"agt_AbC123xYz456"},"object":{"type":"string","description":"Always `agent`."},"name":{"type":"string","description":"Display name for the agent."},"description":{"type":["null","string"],"description":"Description of the agent's purpose."},"tasks":{"type":"array","items":{"$ref":"#\/components\/schemas\/TaskSummary"},"description":"Tasks associated with this agent."},"created_at":{"type":"string","format":"date-time","description":"ISO 8601 timestamp of when the resource was created.","example":"2026-08-24T12:00:00Z"},"updated_at":{"type":"string","format":"date-time","description":"ISO 8601 timestamp of when the resource was last updated.","example":"2026-08-24T12:00:00Z"},"request_id":{"type":"string","description":"Unique identifier for the API request. Include this when contacting support."}},"description":"An agent object. Agents organize related tasks under a single use case."},"GetCredentialResponse":{"required":["id","object","status","external_id","source_id","auth_method","auth_credentials","persistence","queueing","geolocation","created_at","updated_at","request_id"],"type":"object","properties":{"id":{"type":"string","description":"Unique identifier for the credential, prefixed with `cred_`.","pattern":"^cred_","example":"cred_AbC123xYz456"},"object":{"type":"string","description":"Always `credential`."},"status":{"type":"string","description":"Credential status: `unverified`, `verified`, `invalid`, or `deleted`."},"external_id":{"type":["null","string"],"description":"External identifier from your system, if set."},"source_id":{"type":"string","description":"The source this credential authenticates against. Prefixed with `src_`."},"auth_method":{"type":"string","description":"Authentication method: `username_password`, `username`, `source_fields`, `google_sso`, `apple_sso`, or `none`."},"auth_credentials":{"oneOf":[{"type":"null"},{"$ref":"#\/components\/schemas\/AuthCredentialsSummary"}],"description":"Summary of stored credentials. Sensitive values are not returned."},"persistence":{"$ref":"#\/components\/schemas\/PersistenceSummary","description":"Persistence settings for this credential."},"queueing":{"$ref":"#\/components\/schemas\/QueueingSettings","description":"Queueing settings for this credential."},"interactions_managed":{"oneOf":[{"type":"null"},{"$ref":"#\/components\/schemas\/InteractionsManagedSummary"}],"description":"Managed interaction settings for this credential. `null` when not configured."},"geolocation":{"oneOf":[{"$ref":"#\/components\/schemas\/GeolocationSummary"},{"type":"null"}],"description":"Country this credential's task runs come from. `null` when unset, and Deck picks."},"created_at":{"type":"string","format":"date-time","description":"ISO 8601 timestamp of when the resource was created.","example":"2026-08-24T12:00:00Z"},"updated_at":{"type":"string","format":"date-time","description":"ISO 8601 timestamp of when the resource was last updated.","example":"2026-08-24T12:00:00Z"},"request_id":{"type":"string","description":"Unique identifier for the API request. Include this when contacting support."}}},"GetSessionResponse":{"required":["id","object","status","runtime_ms","task_runs","created_at","updated_at","request_id"],"type":"object","properties":{"id":{"type":"string","description":"Unique identifier for the session, prefixed with `sess_`.","pattern":"^sess_","example":"sess_AbC123xYz456"},"object":{"type":"string","description":"Always `session`."},"status":{"type":"string","description":"Session status: `queued`, `running`, `idle`, `completing`, `completed`, or `failed`."},"source_id":{"type":"string","description":"The source the session was prepared for. Present only when a `source_id` was passed when starting the session. Prefixed with `src_`.","pattern":"^src_","example":"src_AbC123xYz456"},"runtime_ms":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["null","integer","string"],"format":"int32","description":"Total session runtime in milliseconds."},"task_runs":{"type":"array","items":{"$ref":"#\/components\/schemas\/SessionTaskRunData"},"description":"Task runs executed within this session."},"created_at":{"type":"string","format":"date-time","description":"ISO 8601 timestamp of when the resource was created.","example":"2026-08-24T12:00:00Z"},"updated_at":{"type":"string","format":"date-time","description":"ISO 8601 timestamp of when the resource was last updated.","example":"2026-08-24T12:00:00Z"},"request_id":{"type":"string","description":"Unique identifier for the API request. Include this when contacting support."}},"description":"A session object representing an isolated compute session for executing tasks."},"GetSourceResponse":{"required":["id","object","name","type","website","created_at","updated_at","request_id","network"],"type":"object","properties":{"id":{"type":"string","description":"Unique identifier for the source, prefixed with `src_`.","pattern":"^src_","example":"src_AbC123xYz456"},"object":{"type":"string","description":"Always `source`."},"name":{"type":["null","string"],"description":"Display name for the source."},"type":{"type":"string","description":"The source type. `website` is currently the only supported type; it defaults to `website` if omitted."},"website":{"$ref":"#\/components\/schemas\/SourceWebsite","description":"Website configuration for the source."},"network":{"$ref":"#\/components\/schemas\/SourceNetworkResponse","description":"The source's [network](\/platform\/static-ips). Always present."},"created_at":{"type":"string","format":"date-time","description":"ISO 8601 timestamp of when the resource was created.","example":"2026-08-24T12:00:00Z"},"updated_at":{"type":"string","format":"date-time","description":"ISO 8601 timestamp of when the resource was last updated.","example":"2026-08-24T12:00:00Z"},"request_id":{"type":"string","description":"Unique identifier for the API request. Include this when contacting support."},"headers":{"oneOf":[{"type":"null"},{"$ref":"#\/components\/schemas\/SourceHeadersResponse"}],"description":"Request headers configured on the source. Omitted when none are set."}},"description":"A source object. Sources are websites or services that agents connect to."},"GetStorageItemResponse":{"required":["id","object","file_name","file_type","file_size","url","metadata","extraction","task_run_id","result","created_at"],"type":"object","properties":{"id":{"type":"string","description":"Unique identifier for the storage item, prefixed with `stor_`.","pattern":"^stor_","example":"stor_AbC123xYz456"},"object":{"type":"string","description":"Always `storage`."},"file_name":{"type":"string","description":"Original file name as it appeared on the source."},"file_type":{"type":"string","description":"MIME type (e.g. `application\/pdf`, `image\/png`, `text\/csv`)."},"file_size":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["integer","string"],"format":"int64","description":"File size in bytes."},"url":{"type":["null","string"],"description":"Signed download URL for the file."},"metadata":{"oneOf":[{"type":"null"},{"$ref":"#\/components\/schemas\/JsonElement"}],"description":"A JSON object of additional key-value details Deck records about the file, or `null` when there are none. Which keys appear depends on the file and how it was captured, so treat it as informational and don't depend on specific keys being present."},"extraction":{"description":"Structured data extracted from the file, if extraction is enabled. Null if extraction failed or is not enabled."},"task_run_id":{"type":"string","description":"The task run that produced this storage item. Prefixed with `trun_`."},"result":{"type":"string","description":"Extraction outcome: `failure` if the file's data couldn't be extracted, otherwise `success` (including files with no extraction)."},"created_at":{"type":"string","format":"date-time","description":"ISO 8601 timestamp of when the resource was created.","example":"2026-08-24T12:00:00Z"}},"description":"A storage item representing a file captured during a task run."},"GetTaskResponse":{"required":["id","object","name","prompt","status","agent_id","input_schema","output_schema","storage","settings","created_at","updated_at","request_id"],"type":"object","properties":{"id":{"type":"string","description":"Unique identifier for the task, prefixed with `task_`.","pattern":"^task_","example":"task_AbC123xYz456"},"object":{"type":"string","description":"Always `task`."},"name":{"type":"string","description":"Display name for the task."},"prompt":{"type":["null","string"],"description":"Instructions for the agent describing what this task should do."},"status":{"type":"string","description":"Task status: `learning`, `test`, or `live`."},"agent_id":{"type":"string","description":"The agent this task belongs to. Prefixed with `agt_`."},"input_schema":{"oneOf":[{"type":"null"},{"$ref":"#\/components\/schemas\/JsonElement"}],"description":"JSON Schema defining the expected input for task runs."},"output_schema":{"oneOf":[{"type":"null"},{"$ref":"#\/components\/schemas\/JsonElement"}],"description":"JSON Schema defining the expected output for task runs."},"storage":{"oneOf":[{"type":"null"},{"$ref":"#\/components\/schemas\/JsonElement"}],"description":"Storage configuration for file capture during task execution."},"settings":{"oneOf":[{"type":"null"},{"$ref":"#\/components\/schemas\/JsonElement"}],"description":"Task-level settings. Supports `timeout_seconds` (the per-run timeout, in seconds) and `sensitive` (when `true`, the Console hides the live browser view, agent reasoning, and screenshots for this task's runs). `null` when no settings were set on the task, in which case runs use your plan's default timeout and the task is not sensitive."},"created_at":{"type":"string","format":"date-time","description":"ISO 8601 timestamp of when the resource was created.","example":"2026-08-24T12:00:00Z"},"updated_at":{"type":"string","format":"date-time","description":"ISO 8601 timestamp of when the resource was last updated.","example":"2026-08-24T12:00:00Z"},"request_id":{"type":"string","description":"Unique identifier for the API request. Include this when contacting support."}},"description":"A task object. Tasks are defined actions an agent can perform."},"GetTaskRunResponse":{"required":["id","object","status","result","task_id","trigger_id","workflow_id","workflow_run_id","step","credential_id","session_id","agent_id","source_id","runtime_ms","output","errors","interaction","created_at","updated_at","request_id"],"type":"object","properties":{"id":{"type":"string","description":"Unique identifier for the task run, prefixed with `trun_`.","pattern":"^trun_","example":"trun_AbC123xYz456"},"object":{"type":"string","description":"Always `task_run`."},"status":{"type":"string","description":"Run status: `queued`, `running`, `canceling`, `interaction_required`, `review_required`, `completed`, `canceled`, or `failed`."},"result":{"type":["null","string"],"description":"Run result after completion: `success`, `failure`, or `unknown`. Null while running."},"task_id":{"type":"string","description":"The task that was executed. Prefixed with `task_`."},"trigger_id":{"type":["null","string"],"description":"The trigger that created this run, if any. Prefixed with `trg_`. `null` for runs created directly through the API."},"workflow_id":{"type":["null","string"],"description":"The workflow whose step dispatched this run. Prefixed with `wflo_`. `null` for a standalone run."},"workflow_run_id":{"type":["null","string"],"description":"The workflow run this run is a step of. Prefixed with `wrun_`. `null` for a standalone run."},"step":{"type":["null","string"],"description":"Name of the workflow step that dispatched this run. `null` for a standalone run."},"credential_id":{"type":["null","string"],"description":"The credential used for authentication, if any. Prefixed with `cred_`."},"session_id":{"type":["null","string"],"description":"The session this run executed within, if any. Prefixed with `sess_`."},"agent_id":{"type":"string","description":"The agent that executed this run. Prefixed with `agt_`."},"source_id":{"type":["null","string"],"description":"The source this run connected to, if any. Prefixed with `src_`."},"runtime_ms":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["null","integer","string"],"format":"int32","description":"Execution time in milliseconds."},"input":{"oneOf":[{"type":"null"},{"$ref":"#\/components\/schemas\/JsonElement"}],"description":"Input data provided when the run was created."},"tokenized":{"type":["null","array"],"items":{"type":"string"},"description":"Names of input fields whose values were tokenized when the run was created. The listed fields are removed from `input`. Returned alongside `input` (only when `include=input` is requested and one or more fields were vaulted); omitted otherwise."},"output":{"oneOf":[{"type":"null"},{"$ref":"#\/components\/schemas\/JsonElement"}],"description":"Output data produced by the task execution."},"storage":{"type":["null","array"],"items":{"$ref":"#\/components\/schemas\/TaskRunStorageItem"},"description":"Files captured during the run, each with inline extraction (if any). Returned only when `include=storage` is requested."},"storage_deduplicated":{"type":["null","array"],"items":{"$ref":"#\/components\/schemas\/TaskRunDeduplicatedFile"},"description":"Files skipped by deduplication during the run. Returned only when `include=storage_deduplicated` is requested and the run's task has `storage.deduplication` enabled; omitted otherwise. An empty array means deduplication ran and no files were skipped."},"artifacts":{"oneOf":[{"type":"null"},{"$ref":"#\/components\/schemas\/TaskRunArtifactData"}],"description":"Run-level visibility artifacts (screenshots). Returned only when `include=artifacts` is requested."},"errors":{"type":["null","array"],"items":{"$ref":"#\/components\/schemas\/TaskRunError"},"description":"Error details if the run failed. Same structure as API-level errors."},"interaction":{"oneOf":[{"type":"null"},{"$ref":"#\/components\/schemas\/JsonElement"}],"description":"Interaction details when the run is paused waiting for user input (e.g. MFA code, security question). Carries `errors` when Deck tried to answer it through managed interactions and couldn't."},"interactions":{"type":"array","items":{"$ref":"#\/components\/schemas\/TaskRunInteraction"},"description":"Every interaction the run hit, oldest first. Never includes submitted values. Returned only when `include=interactions` is requested."},"created_at":{"type":"string","format":"date-time","description":"ISO 8601 timestamp of when the resource was created.","example":"2026-08-24T12:00:00Z"},"updated_at":{"type":"string","format":"date-time","description":"ISO 8601 timestamp of when the resource was last updated.","example":"2026-08-24T12:00:00Z"},"request_id":{"type":"string","description":"Unique identifier for the API request. Include this when contacting support."},"interactions_suppressed":{"type":"boolean","description":"`true` when the run was created with `interactions_suppressed`. Omitted otherwise."}},"description":"A task run object representing a single execution of a task."},"JsonElement":{"description":"Arbitrary JSON value."},"ListAgentData":{"required":["id","object","name","description","tasks","created_at","updated_at"],"type":"object","properties":{"id":{"type":"string","description":"Unique identifier for the agent, prefixed with `agt_`.","pattern":"^agt_","example":"agt_AbC123xYz456"},"object":{"type":"string","description":"Always `agent`."},"name":{"type":"string","description":"Display name for the agent."},"description":{"type":["null","string"],"description":"Description of the agent's purpose."},"tasks":{"type":"array","items":{"$ref":"#\/components\/schemas\/TaskSummary"},"description":"Tasks associated with this agent."},"created_at":{"type":"string","format":"date-time","description":"ISO 8601 timestamp of when the resource was created.","example":"2026-08-24T12:00:00Z"},"updated_at":{"type":"string","format":"date-time","description":"ISO 8601 timestamp of when the resource was last updated.","example":"2026-08-24T12:00:00Z"}},"description":"An agent object. Agents organize related tasks under a single use case."},"ListCredentialData":{"required":["id","object","status","external_id","source_id","auth_method","auth_credentials","persistence","queueing","geolocation","created_at","updated_at"],"type":"object","properties":{"id":{"type":"string","description":"Unique identifier for the credential, prefixed with `cred_`.","pattern":"^cred_","example":"cred_AbC123xYz456"},"object":{"type":"string","description":"Always `credential`."},"status":{"type":"string","description":"Credential status: `unverified`, `verified`, `invalid`, or `deleted`."},"external_id":{"type":["null","string"],"description":"External identifier from your system, if set."},"source_id":{"type":"string","description":"The source this credential authenticates against. Prefixed with `src_`."},"auth_method":{"type":"string","description":"Authentication method: `username_password`, `username`, `source_fields`, `google_sso`, `apple_sso`, or `none`."},"auth_credentials":{"oneOf":[{"type":"null"},{"$ref":"#\/components\/schemas\/AuthCredentialsSummary"}],"description":"Summary of stored credentials. Sensitive values are not returned."},"persistence":{"$ref":"#\/components\/schemas\/PersistenceSummary","description":"Persistence settings for this credential."},"queueing":{"$ref":"#\/components\/schemas\/QueueingSettings","description":"Queueing settings for this credential."},"interactions_managed":{"oneOf":[{"type":"null"},{"$ref":"#\/components\/schemas\/InteractionsManagedSummary"}],"description":"Managed interaction settings for this credential. `null` when not configured."},"geolocation":{"oneOf":[{"$ref":"#\/components\/schemas\/GeolocationSummary"},{"type":"null"}],"description":"Country this credential's task runs come from. `null` when unset, and Deck picks."},"created_at":{"type":"string","format":"date-time","description":"ISO 8601 timestamp of when the resource was created.","example":"2026-08-24T12:00:00Z"},"updated_at":{"type":"string","format":"date-time","description":"ISO 8601 timestamp of when the resource was last updated.","example":"2026-08-24T12:00:00Z"}}},"ListEventData":{"required":["id","object","type","data","created_at"],"type":"object","properties":{"id":{"type":"string","description":"Unique identifier for the event, prefixed with `evt_`.","pattern":"^evt_","example":"evt_AbC123xYz456"},"object":{"type":"string","description":"Always `event`."},"type":{"type":"string","description":"Event type (e.g. `task_run.completed`, `credential.verified`)."},"data":{"$ref":"#\/components\/schemas\/JsonElement","description":"Event payload containing a summary of the resource that triggered the event."},"created_at":{"type":"string","format":"date-time","description":"ISO 8601 timestamp of when the resource was created.","example":"2026-08-24T12:00:00Z"}},"description":"A lifecycle event emitted by the platform."},"ListEventTypesResponse":{"required":["data","request_id"],"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#\/components\/schemas\/EventTypeItem"},"description":"Array of available event types."},"request_id":{"type":"string"}},"description":"Response containing all available event types."},"ListSessionData":{"required":["id","object","status","runtime_ms","task_runs","created_at","updated_at"],"type":"object","properties":{"id":{"type":"string","description":"Unique identifier for the session, prefixed with `sess_`.","pattern":"^sess_","example":"sess_AbC123xYz456"},"object":{"type":"string","description":"Always `session`."},"status":{"type":"string","description":"Session status: `queued`, `running`, `idle`, `completing`, `completed`, or `failed`."},"source_id":{"type":"string","description":"The source the session was prepared for. Present only when a `source_id` was passed when starting the session. Prefixed with `src_`.","pattern":"^src_","example":"src_AbC123xYz456"},"runtime_ms":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["null","integer","string"],"format":"int32","description":"Total session runtime in milliseconds."},"task_runs":{"type":"array","items":{"$ref":"#\/components\/schemas\/SessionTaskRunData"},"description":"Task runs executed within this session."},"created_at":{"type":"string","format":"date-time","description":"ISO 8601 timestamp of when the resource was created.","example":"2026-08-24T12:00:00Z"},"updated_at":{"type":"string","format":"date-time","description":"ISO 8601 timestamp of when the resource was last updated.","example":"2026-08-24T12:00:00Z"}},"description":"A session object representing an isolated compute session for executing tasks."},"ListSourceResponse":{"required":["id","object","name","type","website","created_at","updated_at","network"],"type":"object","properties":{"id":{"type":"string","description":"Unique identifier for the source, prefixed with `src_`.","pattern":"^src_","example":"src_AbC123xYz456"},"object":{"type":"string","description":"Always `source`."},"name":{"type":["null","string"],"description":"Display name for the source."},"type":{"type":"string","description":"The source type. `website` is currently the only supported type; it defaults to `website` if omitted."},"website":{"$ref":"#\/components\/schemas\/SourceWebsite","description":"Website configuration for the source."},"network":{"$ref":"#\/components\/schemas\/SourceNetworkResponse","description":"The source's [network](\/platform\/static-ips). Always present."},"created_at":{"type":"string","format":"date-time","description":"ISO 8601 timestamp of when the resource was created.","example":"2026-08-24T12:00:00Z"},"updated_at":{"type":"string","format":"date-time","description":"ISO 8601 timestamp of when the resource was last updated.","example":"2026-08-24T12:00:00Z"},"headers":{"oneOf":[{"type":"null"},{"$ref":"#\/components\/schemas\/SourceHeadersResponse"}],"description":"Request headers configured on the source. Omitted when none are set."}},"description":"A source object. Sources are websites or services that agents connect to."},"ListStorageItemResponse":{"required":["id","object","file_name","file_type","file_size","url","metadata","extraction","purpose","result","created_at"],"type":"object","properties":{"id":{"type":"string","description":"Unique identifier for the storage item, prefixed with `stor_`.","pattern":"^stor_","example":"stor_AbC123xYz456"},"object":{"type":"string","description":"Always `storage`."},"file_name":{"type":"string","description":"Original file name as it appeared on the source."},"file_type":{"type":"string","description":"MIME type (e.g. `application\/pdf`, `image\/png`, `text\/csv`)."},"file_size":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["integer","string"],"format":"int64","description":"File size in bytes."},"url":{"type":["null","string"],"description":"Pre-signed URL to download the file. Time-limited; re-fetch the item if it expires."},"metadata":{"oneOf":[{"type":"null"},{"$ref":"#\/components\/schemas\/JsonElement"}],"description":"A JSON object of additional key-value details Deck records about the file, or `null` when there are none. Which keys appear depends on the file and how it was captured, so treat it as informational and don't depend on specific keys being present."},"extraction":{"description":"Structured data extracted from the file, if extraction is enabled. Null if extraction failed or is not enabled."},"purpose":{"type":"string","enum":["attachment","extraction","output"],"description":"How the file relates to the run: `attachment` (a file you provided as task input for the agent to use), `extraction` (a file you provided as task input that Deck extracts data from directly, skipping the agent), or `output` (a file the agent captured during the run)."},"result":{"type":"string","description":"Extraction outcome: `failure` if the file's data couldn't be extracted, otherwise `success` (including files with no extraction)."},"created_at":{"type":"string","format":"date-time","description":"ISO 8601 timestamp of when the resource was created.","example":"2026-08-24T12:00:00Z"}},"description":"A storage item representing a file captured during a task run."},"ListScreenshotItemResponse":{"required":["id","object","file_name","file_type","file_size","created_at"],"type":"object","properties":{"id":{"type":"string","description":"Unique identifier for the storage item, prefixed with `stor_`.","pattern":"^stor_","example":"stor_AbC123xYz456"},"object":{"type":"string","description":"Always `screenshot`."},"file_name":{"type":"string","description":"Original file name."},"file_type":{"type":"string","description":"MIME type of the screenshot (e.g. `image\/png`, `image\/jpeg`)."},"file_size":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["integer","string"],"format":"int64","description":"File size in bytes."},"url":{"type":["null","string"],"description":"Pre-signed URL to download the screenshot. Time-limited; re-fetch the item if it expires."},"reasoning":{"type":["null","string"],"description":"Agent reasoning captured at the time of this screenshot, if any."},"created_at":{"type":"string","format":"date-time","description":"When the screenshot was captured.","example":"2026-08-24T12:00:00Z"}},"description":"A single agent screenshot captured during a task run."},"ListTaskRunData":{"required":["id","object","status","result","task_id","trigger_id","workflow_id","workflow_run_id","step","credential_id","session_id","agent_id","source_id","runtime_ms","output","errors","interaction","created_at","updated_at"],"type":"object","properties":{"id":{"type":"string","description":"Unique identifier for the task run, prefixed with `trun_`.","pattern":"^trun_","example":"trun_AbC123xYz456"},"object":{"type":"string","description":"Always `task_run`."},"status":{"type":"string","description":"Run status: `queued`, `running`, `canceling`, `interaction_required`, `review_required`, `completed`, `canceled`, or `failed`."},"result":{"type":["null","string"],"description":"Run result after completion: `success`, `failure`, or `unknown`. Null while running."},"task_id":{"type":"string","description":"The task that was executed. Prefixed with `task_`."},"trigger_id":{"type":["null","string"],"description":"The trigger that created this run, if any. Prefixed with `trg_`. `null` for runs created directly through the API."},"workflow_id":{"type":["null","string"],"description":"The workflow whose step dispatched this run. Prefixed with `wflo_`. `null` for a standalone run."},"workflow_run_id":{"type":["null","string"],"description":"The workflow run this run is a step of. Prefixed with `wrun_`. `null` for a standalone run."},"step":{"type":["null","string"],"description":"Name of the workflow step that dispatched this run. `null` for a standalone run."},"credential_id":{"type":["null","string"],"description":"The credential used for authentication, if any. Prefixed with `cred_`."},"session_id":{"type":["null","string"],"description":"The session this run executed within, if any. Prefixed with `sess_`."},"agent_id":{"type":"string","description":"The agent that executed this run. Prefixed with `agt_`."},"source_id":{"type":["null","string"],"description":"The source this run connected to, if any. Prefixed with `src_`."},"runtime_ms":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["null","integer","string"],"format":"int32","description":"Execution time in milliseconds."},"output":{"oneOf":[{"type":"null"},{"$ref":"#\/components\/schemas\/JsonElement"}],"description":"Output data produced by the task execution."},"errors":{"type":["null","array"],"items":{"$ref":"#\/components\/schemas\/TaskRunError"},"description":"Error details if the run failed. Same structure as API-level errors."},"interaction":{"oneOf":[{"type":"null"},{"$ref":"#\/components\/schemas\/JsonElement"}],"description":"Interaction details when the run is paused waiting for user input (e.g. MFA code, security question)."},"created_at":{"type":"string","format":"date-time","description":"ISO 8601 timestamp of when the resource was created.","example":"2026-08-24T12:00:00Z"},"updated_at":{"type":"string","format":"date-time","description":"ISO 8601 timestamp of when the resource was last updated.","example":"2026-08-24T12:00:00Z"},"interactions_suppressed":{"type":"boolean","description":"`true` when the run was created with `interactions_suppressed`. Omitted otherwise."}},"description":"A task run object representing a single execution of a task."},"PaginatedResponseOfEventDeliveryResponse":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#\/components\/schemas\/EventDeliveryResponse"},"description":"Array of resource objects for the current page."},"has_more":{"type":"boolean","description":"`true` if there are more results beyond this page."},"next_cursor":{"type":["null","string"],"description":"Opaque cursor string to pass as the `cursor` query parameter on the next request. `null` when there are no more pages."},"request_id":{"type":["null","string"],"description":"Unique identifier for the API request."}},"required":["data","has_more"]},"PaginatedResponseOfEventDestinationResponse":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#\/components\/schemas\/EventDestinationResponse"},"description":"Array of resource objects for the current page."},"has_more":{"type":"boolean","description":"`true` if there are more results beyond this page."},"next_cursor":{"type":["null","string"],"description":"Opaque cursor string to pass as the `cursor` query parameter on the next request. `null` when there are no more pages."},"request_id":{"type":["null","string"],"description":"Unique identifier for the API request."}},"required":["data","has_more"]},"PaginatedResponseOfGetTaskResponse":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#\/components\/schemas\/GetTaskResponse"},"description":"Array of resource objects for the current page."},"has_more":{"type":"boolean","description":"`true` if there are more results beyond this page."},"next_cursor":{"type":["null","string"],"description":"Opaque cursor string to pass as the `cursor` query parameter on the next request. `null` when there are no more pages."},"request_id":{"type":["null","string"],"description":"Unique identifier for the API request."}},"required":["data","has_more"]},"PaginatedResponseOfListAgentData":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#\/components\/schemas\/ListAgentData"},"description":"Array of resource objects for the current page."},"has_more":{"type":"boolean","description":"`true` if there are more results beyond this page."},"next_cursor":{"type":["null","string"],"description":"Opaque cursor string to pass as the `cursor` query parameter on the next request. `null` when there are no more pages."},"request_id":{"type":["null","string"],"description":"Unique identifier for the API request."}},"required":["data","has_more"]},"PaginatedResponseOfListCredentialData":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#\/components\/schemas\/ListCredentialData"},"description":"Array of resource objects for the current page."},"has_more":{"type":"boolean","description":"`true` if there are more results beyond this page."},"next_cursor":{"type":["null","string"],"description":"Opaque cursor string to pass as the `cursor` query parameter on the next request. `null` when there are no more pages."},"request_id":{"type":["null","string"],"description":"Unique identifier for the API request."}},"required":["data","has_more"]},"PaginatedResponseOfListEventData":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#\/components\/schemas\/ListEventData"},"description":"Array of resource objects for the current page."},"has_more":{"type":"boolean","description":"`true` if there are more results beyond this page."},"next_cursor":{"type":["null","string"],"description":"Opaque cursor string to pass as the `cursor` query parameter on the next request. `null` when there are no more pages."},"request_id":{"type":["null","string"],"description":"Unique identifier for the API request."}},"required":["data","has_more"]},"PaginatedResponseOfListSessionData":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#\/components\/schemas\/ListSessionData"},"description":"Array of resource objects for the current page."},"has_more":{"type":"boolean","description":"`true` if there are more results beyond this page."},"next_cursor":{"type":["null","string"],"description":"Opaque cursor string to pass as the `cursor` query parameter on the next request. `null` when there are no more pages."},"request_id":{"type":["null","string"],"description":"Unique identifier for the API request."}},"required":["data","has_more"]},"PaginatedResponseOfListSourceResponse":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#\/components\/schemas\/ListSourceResponse"},"description":"Array of resource objects for the current page."},"has_more":{"type":"boolean","description":"`true` if there are more results beyond this page."},"next_cursor":{"type":["null","string"],"description":"Opaque cursor string to pass as the `cursor` query parameter on the next request. `null` when there are no more pages."},"request_id":{"type":["null","string"],"description":"Unique identifier for the API request."}},"required":["data","has_more"]},"PaginatedResponseOfListStorageItemResponse":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#\/components\/schemas\/ListStorageItemResponse"},"description":"Array of storage items. All of the run's files are returned in a single response."},"has_more":{"type":"boolean","description":"Always `false`; this endpoint returns all items in one response."},"request_id":{"type":["null","string"],"description":"Unique identifier for the API request."}},"required":["data","has_more"]},"PaginatedResponseOfListScreenshotItemResponse":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#\/components\/schemas\/ListScreenshotItemResponse"},"description":"Array of screenshot items for the current page, oldest first."},"has_more":{"type":"boolean","description":"`true` if there are more results beyond this page."},"next_cursor":{"type":["null","string"],"description":"Opaque cursor string to pass as the `cursor` query parameter on the next request. `null` when there are no more pages."},"request_id":{"type":["null","string"],"description":"Unique identifier for the API request."}},"required":["data","has_more"]},"PaginatedResponseOfListTaskRunData":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#\/components\/schemas\/ListTaskRunData"},"description":"Array of resource objects for the current page."},"has_more":{"type":"boolean","description":"`true` if there are more results beyond this page."},"next_cursor":{"type":["null","string"],"description":"Opaque cursor string to pass as the `cursor` query parameter on the next request. `null` when there are no more pages."},"request_id":{"type":["null","string"],"description":"Unique identifier for the API request."}},"required":["data","has_more"]},"ResetSourceResponse":{"required":["id","object","name","type","website","created_at","updated_at","reset_at","request_id","network"],"type":"object","properties":{"id":{"type":"string","description":"Unique identifier for the source, prefixed with `src_`.","pattern":"^src_","example":"src_AbC123xYz456"},"object":{"type":"string","description":"Always `source`."},"name":{"type":["null","string"],"description":"Display name for the source."},"type":{"type":"string","description":"The source type. `website` is currently the only supported type; it defaults to `website` if omitted."},"website":{"$ref":"#\/components\/schemas\/SourceWebsite","description":"Website configuration for the source."},"network":{"$ref":"#\/components\/schemas\/SourceNetworkResponse","description":"The source's [network](\/platform\/static-ips). Always present."},"created_at":{"type":"string","format":"date-time","description":"ISO 8601 timestamp of when the resource was created.","example":"2026-08-24T12:00:00Z"},"updated_at":{"type":"string","format":"date-time","description":"ISO 8601 timestamp of when the resource was last updated.","example":"2026-08-24T12:00:00Z"},"reset_at":{"type":["null","string"],"format":"date-time","description":"ISO 8601 timestamp of when the source's antibot analysis was last reset, if ever.","example":"2026-08-24T12:00:00Z"},"request_id":{"type":"string","description":"Unique identifier for the API request. Include this when contacting support."}},"description":"The source after a reset request."},"RunTaskRequest":{"type":"object","properties":{"credential_id":{"type":["null","string"],"description":"The credential to authenticate with. Prefixed with `cred_`."},"source_id":{"type":["null","string"],"description":"The source to run the task against. Prefixed with `src_`."},"session_id":{"type":["null","string"],"description":"An existing session to reuse for this run. Prefixed with `sess_`."},"input":{"description":"Input data matching the task's `input_schema`."},"request_id":{"type":["null","string"],"description":"Client-specified request identifier for tracing."},"interactions_suppressed":{"type":"boolean","description":"When `true`, the run never sends an interaction (MFA code, security question) to your user. An interaction that needs a person fails the run with `interaction_suppressed`, and the credential stays valid. Defaults to `false`."}},"description":"Request body for running a task."},"SessionTaskRunData":{"required":["id","task_id","agent_id","credential_id"],"type":"object","properties":{"id":{"type":"string","description":"Unique identifier for the task run."},"task_id":{"type":"string","description":"ID of the task that was executed."},"agent_id":{"type":"string","description":"ID of the agent that executed the run."},"credential_id":{"type":["null","string"],"description":"ID of the credential used for authentication, if any."}},"description":"Lightweight summary of a task run within a session."},"SourceWebsite":{"required":["url"],"type":"object","properties":{"url":{"type":"string","description":"The URL of the website or service. Deck normalizes this on create: it prepends `https:\/\/` when no scheme is given, lowercases the scheme and host, drops default ports (80\/443), and trims trailing slashes \u2014 so the stored and returned value may differ from what you sent. Non-HTTP(S) URLs are rejected."}},"description":"Website configuration for a source."},"SubmitInteractionRequest":{"type":"object","properties":{"input":{"description":"Field values matching the interaction's field names. Each key corresponds to a field `name` from the interaction object (e.g. `{ \"code\": \"123456\" }`)."}},"description":"Request body for submitting interaction input to a paused task run."},"TaskRunArtifactData":{"type":"object","properties":{"screenshots":{"type":"array","items":{"$ref":"#\/components\/schemas\/TaskRunScreenshot"},"description":"Screenshots captured during the run."}},"description":"Run-level visibility artifacts returned when include=artifacts is requested.","required":["screenshots"]},"TaskRunError":{"required":["type","code","message"],"type":"object","properties":{"type":{"type":"string","description":"Error category (e.g. `source`, `auth`, `task`, `rate_limit`). Determines the class of failure."},"code":{"type":"string","description":"Machine-readable error code. Use this for programmatic handling."},"message":{"type":"string","description":"Human-readable explanation. Do not rely on this for logic \u2014 it may change."},"field":{"type":["null","string"],"description":"The input field that caused the error, when applicable."}},"description":"Error details for a failed task run. Same structure as API-level errors."},"TaskRunScreenshot":{"required":["file_name","file_type","file_size","created_at"],"type":"object","properties":{"file_name":{"type":"string","description":"Original file name."},"file_type":{"type":"string","description":"MIME type of the screenshot."},"file_size":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["integer","string"],"format":"int64","description":"Size of the file in bytes."},"url":{"type":["null","string"],"description":"Signed URL to download the screenshot. Time-limited."},"reasoning":{"type":["null","string"],"description":"AI reasoning at the time of capture, if recorded."},"created_at":{"type":"string","format":"date-time","description":"When the screenshot was captured.","example":"2026-08-24T12:00:00Z"}},"description":"A single screenshot captured during a task run."},"TaskRunStorageItem":{"required":["id","object","file_name","file_type","file_size","purpose","created_at"],"type":"object","properties":{"id":{"type":"string","description":"Unique identifier for the storage item, prefixed with `stor_`.","pattern":"^stor_","example":"stor_AbC123xYz456"},"object":{"type":"string","description":"Always `storage`."},"file_name":{"type":"string","description":"Original file name."},"file_type":{"type":"string","description":"MIME type of the file."},"file_size":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["integer","string"],"format":"int64","description":"Size of the file in bytes."},"url":{"type":["null","string"],"description":"Signed URL to download the file. Time-limited."},"extraction":{"oneOf":[{"type":"null"},{"$ref":"#\/components\/schemas\/JsonElement"}],"description":"Extracted structured data from the file, if any."},"purpose":{"type":"string","enum":["attachment","extraction","output"],"description":"How the file relates to the run: `attachment` (a file you provided as task input for the agent to use), `extraction` (a file you provided as task input that Deck extracts data from directly, skipping the agent), or `output` (a file the agent captured during the run)."},"created_at":{"type":"string","format":"date-time","description":"When the storage item was created.","example":"2026-08-24T12:00:00Z"}},"description":"A storage item embedded in the task run detail response when include=storage is requested. Includes the signed download URL and any inline extraction."},"TaskRunDeduplicatedFile":{"required":["file_name","duplicate_of","task_run_id","created_at"],"type":"object","properties":{"file_name":{"type":"string","description":"Name of the skipped file as the agent captured it."},"duplicate_of":{"type":"string","description":"Storage ID of the surviving item this file matched, prefixed with `stor_`. Fetch `GET \/v2\/storage\/{duplicate_of}` for the original's file name, extraction, and a fresh signed URL. The referenced item is deleted on the normal file retention schedule, after which the ID no longer resolves.","pattern":"^stor_","example":"stor_AbC123xYz456"},"task_run_id":{"type":"string","description":"The task run that originally captured the matched file, prefixed with `trun_`. This is the earlier capture run, not the run this entry appears on.","pattern":"^trun_","example":"trun_AbC123xYz456"},"created_at":{"type":"string","format":"date-time","description":"When the file was skipped.","example":"2026-08-24T12:00:00Z"}},"description":"A file skipped by deduplication, embedded in the task run detail response when include=storage_deduplicated is requested and the task has deduplication enabled. Entries are inline values, not addressable resources: no id, no object type, and no query endpoint."},"TaskSummary":{"required":["id","object","name","status"],"type":"object","properties":{"id":{"type":"string","description":"Unique identifier for the task, prefixed with `task_`.","pattern":"^task_","example":"task_AbC123xYz456"},"object":{"type":"string","description":"Resource type string (`task`)."},"name":{"type":"string","description":"Display name for the task."},"status":{"type":"string","description":"Current task status: `learning`, `test`, or `live`."}},"description":"Lightweight summary of a task, included in agent responses."},"UpdateAgentRequest":{"type":"object","properties":{"name":{"type":["null","string"],"description":"Updated display name."},"description":{"type":["null","string"],"description":"Updated description."}},"description":"Request body for updating an agent. Only include fields you want to change."},"UpdateCredentialRequest":{"type":"object","properties":{"auth_credentials":{"$ref":"#\/components\/schemas\/AuthCredentialsInput"},"external_id":{"type":["null","string"],"description":"Updated external identifier. Set to `null` to remove the mapping."},"persistence":{"$ref":"#\/components\/schemas\/PersistenceInput","description":"Updated persistence settings. Setting `enabled` to `false` permanently deletes the saved login state."},"queueing":{"$ref":"#\/components\/schemas\/QueueingSettings","description":"Updated queueing settings. Setting `enabled` to `false` lets waiting runs start right away."},"interactions_managed":{"$ref":"#\/components\/schemas\/InteractionsManagedInput"},"geolocation":{"oneOf":[{"$ref":"#\/components\/schemas\/GeolocationInput"},{"type":"null"}],"description":"Country this credential's task runs come from. An object sets it, `null` clears it so Deck picks, and omitting it leaves it unchanged."}},"description":"Request body for updating a credential. Only include fields you want to change."},"UpdateCredentialResponse":{"required":["id","object","status","source_id","auth_method","auth_credentials","persistence","queueing","geolocation","external_id","created_at","updated_at","request_id"],"type":"object","properties":{"id":{"type":"string","description":"Unique identifier for the credential, prefixed with `cred_`.","pattern":"^cred_","example":"cred_AbC123xYz456"},"object":{"type":"string","description":"Always `credential`."},"status":{"type":"string","description":"Credential status: `unverified`, `verified`, `invalid`, or `deleted`."},"source_id":{"type":"string","description":"The source this credential authenticates against. Prefixed with `src_`."},"auth_method":{"type":"string","description":"Authentication method: `username_password`, `username`, `source_fields`, `google_sso`, `apple_sso`, or `none`."},"auth_credentials":{"oneOf":[{"type":"null"},{"$ref":"#\/components\/schemas\/AuthCredentialsSummary"}],"description":"Summary of stored credentials. Sensitive values are not returned."},"persistence":{"$ref":"#\/components\/schemas\/PersistenceSummary","description":"Persistence settings for this credential."},"queueing":{"$ref":"#\/components\/schemas\/QueueingSettings","description":"Queueing settings for this credential."},"interactions_managed":{"oneOf":[{"type":"null"},{"$ref":"#\/components\/schemas\/InteractionsManagedSummary"}],"description":"Managed interaction settings for this credential. `null` when not configured."},"geolocation":{"oneOf":[{"$ref":"#\/components\/schemas\/GeolocationSummary"},{"type":"null"}],"description":"Country this credential's task runs come from. `null` when unset, and Deck picks."},"external_id":{"type":["null","string"],"description":"External identifier from your system, if set."},"created_at":{"type":"string","format":"date-time","description":"ISO 8601 timestamp of when the resource was created.","example":"2026-08-24T12:00:00Z"},"updated_at":{"type":"string","format":"date-time","description":"ISO 8601 timestamp of when the resource was last updated.","example":"2026-08-24T12:00:00Z"},"request_id":{"type":"string","description":"Unique identifier for the API request. Include this when contacting support."}}},"UpdateEventDestinationRequest":{"type":"object","properties":{"name":{"type":["null","string"],"description":"Updated display name."},"status":{"type":["null","string"],"description":"Updated status: `active` or `inactive`."},"events":{"type":["null","array"],"items":{"type":"string"},"description":"Updated list of subscribed event types (for example `task_run.completed`, `credential.verified`). Use `[\"*\"]` to subscribe to all event types; `*` cannot be combined with specific types, and the list must not be empty."},"filter":{"type":["null","object"],"description":"Replaces the destination's content filter. Omit to keep the current filter. Send `null` or `{}` to remove it. See [Filtering events](\/events\/destinations-and-deliveries#filtering-events)."},"webhook":{"type":"object","required":["url"],"properties":{"url":{"type":"string","description":"Absolute `https` or `http` URL that receives event deliveries."},"secret":{"type":"string","description":"Signing secret used to verify webhook signatures. Write-only; never returned."}},"description":"Configuration for a `webhook` destination. Provide this object under the `webhook` property when `type` is `webhook`."},"aws_sqs":{"type":"object","required":["queue_url"],"properties":{"queue_url":{"type":"string","description":"URL of the destination Amazon SQS queue."},"key":{"type":"string","description":"AWS access key ID. Accepted alias: `access_key`. Write-only."},"secret":{"type":"string","description":"AWS secret access key. Accepted alias: `secret_key`. Write-only."}},"description":"Configuration for a `aws_sqs` destination. Provide this object under the `aws_sqs` property when `type` is `aws_sqs`."},"aws_kinesis":{"type":"object","required":["stream_name","region"],"properties":{"stream_name":{"type":"string","description":"Name of the Amazon Kinesis stream."},"region":{"type":"string","description":"AWS region of the stream."},"key":{"type":"string","description":"AWS access key ID. Accepted alias: `access_key`. Write-only."},"secret":{"type":"string","description":"AWS secret access key. Accepted alias: `secret_key`. Write-only."}},"description":"Configuration for a `aws_kinesis` destination. Provide this object under the `aws_kinesis` property when `type` is `aws_kinesis`."},"aws_s3":{"type":"object","required":["bucket","region"],"properties":{"bucket":{"type":"string","description":"Name of the destination Amazon S3 bucket."},"region":{"type":"string","description":"AWS region of the bucket."},"key":{"type":"string","description":"AWS access key ID. Accepted alias: `access_key`. Write-only."},"secret":{"type":"string","description":"AWS secret access key. Accepted alias: `secret_key`. Write-only."}},"description":"Configuration for a `aws_s3` destination. Provide this object under the `aws_s3` property when `type` is `aws_s3`."},"aws_eventbridge":{"type":"object","required":["region"],"properties":{"event_bus_name":{"type":"string","description":"Name or ARN of the Amazon EventBridge event bus. Defaults to the account's default event bus."},"region":{"type":"string","description":"AWS region of the event bus."},"key":{"type":"string","description":"AWS access key ID. Accepted alias: `access_key`. Write-only."},"secret":{"type":"string","description":"AWS secret access key. Accepted alias: `secret_key`. Write-only."}},"description":"Configuration for a `aws_eventbridge` destination. Provide this object under the `aws_eventbridge` property when `type` is `aws_eventbridge`."},"gcp_pubsub":{"type":"object","required":["project_id","topic"],"properties":{"project_id":{"type":"string","description":"Google Cloud project ID."},"topic":{"type":"string","description":"Pub\/Sub topic name. Accepted alias: `topic_name`."},"service_account_json":{"type":"string","description":"Service account credentials JSON. Accepted alias: `credentials_json`. Write-only."}},"description":"Configuration for a `gcp_pubsub` destination. Provide this object under the `gcp_pubsub` property when `type` is `gcp_pubsub`."},"rabbitmq":{"type":"object","required":["exchange","server_url"],"properties":{"exchange":{"type":"string","description":"Name of the RabbitMQ exchange."},"server_url":{"type":"string","description":"RabbitMQ host as `host[:port]` (for example `rabbitmq:5672`). You may instead pass a full AMQP URL with embedded credentials; Deck extracts the host, username, and password from it."},"username":{"type":"string","description":"RabbitMQ username (or embed it in the AMQP `server_url`). Write-only."},"password":{"type":"string","description":"RabbitMQ password (or embed it in the AMQP `server_url`). Write-only."}},"description":"Configuration for a `rabbitmq` destination. Provide this object under the `rabbitmq` property when `type` is `rabbitmq`."},"azure_servicebus":{"type":"object","required":["name"],"properties":{"name":{"type":"string","description":"Name of the Service Bus queue or topic. Accepted alias: `queue_name`."},"connection_string":{"type":"string","description":"Azure Service Bus connection string. Write-only."}},"description":"Configuration for a `azure_servicebus` destination. Provide this object under the `azure_servicebus` property when `type` is `azure_servicebus`."},"hookdeck":{"type":"object","properties":{"token":{"type":"string","description":"Hookdeck API key. Accepted alias: `api_key`. Write-only."}},"description":"Configuration for a `hookdeck` destination. Provide this object under the `hookdeck` property when `type` is `hookdeck`."},"cloudflare_queues":{"type":"object","required":["account_id","queue_id"],"properties":{"account_id":{"type":"string","description":"Cloudflare account ID."},"queue_id":{"type":"string","description":"ID of the Cloudflare queue."},"api_token":{"type":"string","description":"Cloudflare API token with permission to send messages to the queue. Write-only."}},"description":"Configuration for a `cloudflare_queues` destination. Provide this object under the `cloudflare_queues` property when `type` is `cloudflare_queues`."}},"description":"Request body for updating an event destination. Only include fields you want to change. To change endpoint configuration or credentials, include the configuration object whose property name matches the destination's existing `type`."},"UpdateSourceRequest":{"type":"object","properties":{"name":{"type":["null","string"],"description":"Updated display name."},"url":{"type":["null","string"],"description":"Updated website URL."},"headers":{"oneOf":[{"type":"null"},{"$ref":"#\/components\/schemas\/SourceHeadersRequest"}],"description":"Optional. Replaces the full set of [custom headers](\/platform\/source-headers) on the source. Send `null` to remove all headers. Omit to leave them unchanged. Available on Enterprise plans as an add-on."},"network":{"$ref":"#\/components\/schemas\/SourceNetworkRequest","description":"Optional. Changes the source's [network](\/platform\/static-ips). Send `{ \"type\": \"default\" }` to turn static IPs off. Omit to leave it unchanged. Available on Enterprise plans as an add-on."}},"description":"Request body for updating a source. Only include fields you want to change."},"UpdateSourceResponse":{"required":["id","object","name","type","website","created_at","updated_at","request_id","network"],"type":"object","properties":{"id":{"type":"string","description":"Unique identifier for the source, prefixed with `src_`.","pattern":"^src_","example":"src_AbC123xYz456"},"object":{"type":"string","description":"Always `source`."},"name":{"type":["null","string"],"description":"Display name for the source."},"type":{"type":"string","description":"The source type. `website` is currently the only supported type; it defaults to `website` if omitted."},"website":{"$ref":"#\/components\/schemas\/SourceWebsite","description":"Website configuration for the source."},"network":{"$ref":"#\/components\/schemas\/SourceNetworkResponse","description":"The source's [network](\/platform\/static-ips). Always present."},"created_at":{"type":"string","format":"date-time","description":"ISO 8601 timestamp of when the resource was created.","example":"2026-08-24T12:00:00Z"},"updated_at":{"type":"string","format":"date-time","description":"ISO 8601 timestamp of when the resource was last updated.","example":"2026-08-24T12:00:00Z"},"request_id":{"type":"string","description":"Unique identifier for the API request. Include this when contacting support."},"headers":{"oneOf":[{"type":"null"},{"$ref":"#\/components\/schemas\/SourceHeadersResponse"}],"description":"Request headers configured on the source. Omitted when none are set."}},"description":"A source object. Sources are websites or services that agents connect to."},"UpdateTaskRequest":{"type":"object","properties":{"name":{"type":["null","string"],"description":"Updated display name."},"input_schema":{"description":"Updated JSON Schema for task run input."},"output_schema":{"description":"Updated JSON Schema for task run output."},"prompt":{"type":["null","string"],"description":"Updated agent instructions."},"storage":{"description":"Updated storage configuration."},"settings":{"type":"object","properties":{"timeout_seconds":{"type":"integer","minimum":1,"description":"Maximum wall-clock time, in seconds, that a single run of this task may execute before Deck stops it and the run fails with a `timeout` error. Must be a positive integer. The maximum you can set is determined by your plan (see https:\/\/deck.co\/pricing); the overall ceiling is 28800 seconds (8 hours). If omitted, the task uses your plan's default timeout. A value above your plan's maximum is rejected when the task is updated with a `422` `timeout_exceeds_plan_max` error."},"sensitive":{"type":"boolean","description":"Marks the task as sensitive. When `true`, the Console hides the live browser view, agent reasoning, and screenshots for this task's runs. Must be a boolean; any other value is rejected with a `422` `invalid_field_value` error."}},"description":"Task-level settings. Supports `timeout_seconds` and `sensitive`. When included, `settings` replaces the task's settings as a whole, so send every key you want to keep."}},"description":"Request body for updating a task. Only include fields you want to change."},"UpdateTaskResponse":{"required":["id","object","name","prompt","status","agent_id","input_schema","output_schema","storage","settings","created_at","updated_at","request_id"],"type":"object","properties":{"id":{"type":"string","description":"Unique identifier for the task, prefixed with `task_`.","pattern":"^task_","example":"task_AbC123xYz456"},"object":{"type":"string","description":"Always `task`."},"name":{"type":"string","description":"Display name for the task."},"prompt":{"type":["null","string"],"description":"Instructions for the agent describing what this task should do."},"status":{"type":"string","description":"Task status: `learning`, `test`, or `live`."},"agent_id":{"type":"string","description":"The agent this task belongs to. Prefixed with `agt_`."},"input_schema":{"oneOf":[{"type":"null"},{"$ref":"#\/components\/schemas\/JsonElement"}],"description":"JSON Schema defining the expected input for task runs."},"output_schema":{"oneOf":[{"type":"null"},{"$ref":"#\/components\/schemas\/JsonElement"}],"description":"JSON Schema defining the expected output for task runs."},"storage":{"oneOf":[{"type":"null"},{"$ref":"#\/components\/schemas\/JsonElement"}],"description":"Storage configuration for file capture during task execution."},"settings":{"oneOf":[{"type":"null"},{"$ref":"#\/components\/schemas\/JsonElement"}],"description":"Task-level settings. Supports `timeout_seconds` (the per-run timeout, in seconds) and `sensitive` (when `true`, the Console hides the live browser view, agent reasoning, and screenshots for this task's runs). `null` when no settings were set on the task, in which case runs use your plan's default timeout and the task is not sensitive."},"created_at":{"type":"string","format":"date-time","description":"ISO 8601 timestamp of when the resource was created.","example":"2026-08-24T12:00:00Z"},"updated_at":{"type":"string","format":"date-time","description":"ISO 8601 timestamp of when the resource was last updated.","example":"2026-08-24T12:00:00Z"},"request_id":{"type":"string","description":"Unique identifier for the API request. Include this when contacting support."}},"description":"A task object. Tasks are defined actions an agent can perform."},"TestResponse":{"required":["status","environment","request_id"],"type":"object","properties":{"status":{"type":"string","description":"Always \"ready\"."},"environment":{"type":"string","description":"Always \"live\"."},"request_id":{"type":"string","description":"Unique identifier for this request, useful for tracing."}},"description":"Response from the API health check endpoint."},"ValidationErrorResponse":{"required":["errors"],"type":"object","properties":{"type":{"type":["null","string"],"description":"RFC 9110 problem type URI."},"title":{"type":["null","string"],"description":"Short summary of the validation failure."},"status":{"type":["null","integer"],"description":"HTTP status code.","format":"int32"},"errors":{"type":"object","additionalProperties":{"type":"array","items":{"type":"string"}},"description":"Validation errors grouped by field name."},"traceId":{"type":["null","string"],"description":"Request trace identifier."}},"description":"Validation error returned for malformed requests (HTTP 400)."},"ErrorResponse":{"required":["errors","request_id"],"type":"object","properties":{"errors":{"type":"array","items":{"$ref":"#\/components\/schemas\/TaskRunError"},"description":"One or more errors that describe what went wrong."},"request_id":{"type":"string","description":"Unique identifier for this request, useful for tracing."}},"description":"Standard error response."},"TriggerCondition":{"required":["type","cron","timezone"],"type":"object","properties":{"type":{"type":"string","description":"The condition type. Always `schedule`."},"cron":{"type":"string","description":"Standard 5-field cron expression: minute, hour, day of month, month, day of week."},"timezone":{"type":"string","description":"IANA timezone name the schedule is evaluated in (e.g. `America\/New_York`). Day boundaries and DST shifts follow local time."}},"description":"When the trigger fires: a cron expression evaluated in a timezone."},"TriggerCredentialFilter":{"required":["source_ids","status"],"type":"object","properties":{"source_ids":{"type":"array","items":{"type":"string"},"description":"Match credentials on any of these sources. IDs prefixed with `src_`. Pass `[\"*\"]` to match every source in the organization; the wildcard must be the only entry."},"status":{"type":"array","items":{"type":"string"},"description":"Allowlist of credential statuses to fan out to, typically `unverified` and `verified`. There is no default, and an empty list is rejected. `invalid` \/ `deleted` credentials never match."}},"description":"A scope of credentials, resolved each time the trigger fires."},"TriggerSkipLastRun":{"required":["result","within_seconds"],"type":"object","properties":{"result":{"type":"string","description":"Task run result to match: `success`, `failure`, or `unknown`."},"within_seconds":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["integer","string"],"format":"int64","description":"Time window in seconds, measured back from the fire time."}},"description":"Skips a credential when its most recent completed run of the trigger's task finished with `result` within `within_seconds`."},"TriggerSkipIf":{"required":["last_run"],"type":"object","properties":{"last_run":{"$ref":"#\/components\/schemas\/TriggerSkipLastRun"}},"description":"Skip condition evaluated per credential before a run is created. When met, the credential is skipped for that fire and no run is created."},"TriggerResponse":{"required":["id","object","name","description","status","condition","task_id","workflow_id","credential_ids","credential_filter","input","steps","skip_if","concurrency_max","created_at","updated_at","request_id"],"type":"object","properties":{"id":{"type":"string","description":"Unique identifier for the trigger, prefixed with `trg_`.","pattern":"^trg_","example":"trg_AbC123xYz456"},"object":{"type":"string","description":"Always `trigger`."},"name":{"type":"string","description":"Display name for the trigger."},"description":{"type":["null","string"],"description":"Description of the trigger's purpose."},"status":{"type":"string","description":"`active` or `inactive`. Inactive triggers keep their configuration and fire nothing."},"condition":{"$ref":"#\/components\/schemas\/TriggerCondition"},"task_id":{"type":["null","string"],"description":"The task this trigger runs. Prefixed with `task_`. `null` when the trigger targets a workflow."},"workflow_id":{"type":["null","string"],"description":"The workflow this trigger runs. Prefixed with `wflo_`. `null` when the trigger targets a task."},"credential_ids":{"type":["null","array"],"items":{"type":"string"},"description":"Explicit credentials the trigger targets. `null` when the trigger uses `credential_filter`."},"credential_filter":{"oneOf":[{"type":"null"},{"$ref":"#\/components\/schemas\/TriggerCredentialFilter"}],"description":"Credential scope the trigger fans out across. `null` when the trigger uses `credential_ids`."},"input":{"oneOf":[{"type":"null"},{"$ref":"#\/components\/schemas\/JsonElement"}],"description":"Input passed to every run this trigger creates, matching the task's `input_schema`. `null` for a workflow target."},"steps":{"type":["null","array"],"items":{"$ref":"#\/components\/schemas\/RunWorkflowStep"},"description":"Per-step config for a workflow target. `null` for a task target."},"skip_if":{"oneOf":[{"type":"null"},{"$ref":"#\/components\/schemas\/TriggerSkipIf"}],"description":"Skip condition evaluated per credential before a run is created."},"concurrency_max":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["null","integer","string"],"format":"int32","description":"Maximum simultaneous runs from this trigger. `null` means no per-trigger cap."},"created_at":{"type":"string","format":"date-time","description":"ISO 8601 timestamp of when the resource was created.","example":"2026-08-24T12:00:00Z"},"updated_at":{"type":"string","format":"date-time","description":"ISO 8601 timestamp of when the resource was last updated.","example":"2026-08-24T12:00:00Z"},"request_id":{"type":"string","description":"Unique identifier for the API request. Include this when contacting support."}},"description":"A trigger object. Triggers create task runs on a schedule across a set of credentials."},"ListTriggerData":{"required":["id","object","name","description","status","condition","task_id","workflow_id","credential_ids","credential_filter","input","steps","skip_if","concurrency_max","created_at","updated_at"],"type":"object","properties":{"id":{"type":"string","description":"Unique identifier for the trigger, prefixed with `trg_`.","pattern":"^trg_","example":"trg_AbC123xYz456"},"object":{"type":"string","description":"Always `trigger`."},"name":{"type":"string","description":"Display name for the trigger."},"description":{"type":["null","string"],"description":"Description of the trigger's purpose."},"status":{"type":"string","description":"`active` or `inactive`. Inactive triggers keep their configuration and fire nothing."},"condition":{"$ref":"#\/components\/schemas\/TriggerCondition"},"task_id":{"type":["null","string"],"description":"The task this trigger runs. Prefixed with `task_`. `null` when the trigger targets a workflow."},"workflow_id":{"type":["null","string"],"description":"The workflow this trigger runs. Prefixed with `wflo_`. `null` when the trigger targets a task."},"credential_ids":{"type":["null","array"],"items":{"type":"string"},"description":"Explicit credentials the trigger targets. `null` when the trigger uses `credential_filter`."},"credential_filter":{"oneOf":[{"type":"null"},{"$ref":"#\/components\/schemas\/TriggerCredentialFilter"}],"description":"Credential scope the trigger fans out across. `null` when the trigger uses `credential_ids`."},"input":{"oneOf":[{"type":"null"},{"$ref":"#\/components\/schemas\/JsonElement"}],"description":"Input passed to every run this trigger creates, matching the task's `input_schema`. `null` for a workflow target."},"steps":{"type":["null","array"],"items":{"$ref":"#\/components\/schemas\/RunWorkflowStep"},"description":"Per-step config for a workflow target. `null` for a task target."},"skip_if":{"oneOf":[{"type":"null"},{"$ref":"#\/components\/schemas\/TriggerSkipIf"}],"description":"Skip condition evaluated per credential before a run is created."},"concurrency_max":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["null","integer","string"],"format":"int32","description":"Maximum simultaneous runs from this trigger. `null` means no per-trigger cap."},"created_at":{"type":"string","format":"date-time","description":"ISO 8601 timestamp of when the resource was created.","example":"2026-08-24T12:00:00Z"},"updated_at":{"type":"string","format":"date-time","description":"ISO 8601 timestamp of when the resource was last updated.","example":"2026-08-24T12:00:00Z"}},"description":"A trigger object. Triggers create task runs on a schedule across a set of credentials."},"CreateTriggerRequest":{"required":["name","condition"],"type":"object","properties":{"name":{"type":"string","description":"Display name for the trigger."},"description":{"type":["null","string"],"description":"Description of the trigger's purpose."},"condition":{"$ref":"#\/components\/schemas\/TriggerCondition"},"task_id":{"type":["null","string"],"description":"The task to run. Prefixed with `task_`. Exactly one of `task_id` \/ `workflow_id`. Cannot be changed after creation."},"workflow_id":{"type":["null","string"],"pattern":"^wflo_","description":"The workflow to run. Prefixed with `wflo_`. Exactly one of `task_id` \/ `workflow_id`. Cannot be changed after creation."},"credential_ids":{"type":["null","array"],"items":{"type":"string"},"description":"Explicit credentials to target, one or many. Pass exactly one of `credential_ids` \/ `credential_filter`. Optional for a workflow target whose steps all pin their own credential or source; each fire then creates a single run."},"credential_filter":{"oneOf":[{"type":"null"},{"$ref":"#\/components\/schemas\/TriggerCredentialFilter"}],"description":"A scope of credentials to fan out across, resolved each time the trigger fires. Pass exactly one of `credential_ids` \/ `credential_filter`."},"input":{"oneOf":[{"type":"null"},{"$ref":"#\/components\/schemas\/JsonElement"}],"description":"Input passed to every run this trigger creates, validated against the task's `input_schema`. Task targets only."},"steps":{"type":["null","array"],"items":{"$ref":"#\/components\/schemas\/RunWorkflowStep"},"description":"Per-step config for a workflow target, the same shape as the `steps` array on `POST \/workflows\/{workflow_id}\/run`. A step pinned here keeps its `credential_id` \/ `source_id`; every other step runs with the fanned-out credential. Validated against the workflow on create. Workflow targets only; `input` isn't accepted with `workflow_id`."},"skip_if":{"oneOf":[{"type":"null"},{"$ref":"#\/components\/schemas\/TriggerSkipIf"}],"description":"Skip condition evaluated per credential before a run is created."},"concurrency_max":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["null","integer","string"],"format":"int32","description":"Maximum simultaneous runs from this trigger. Omit for no per-trigger cap."}},"description":"Creates a trigger. The trigger is created with `status: \"active\"` and fires on its schedule immediately."},"UpdateTriggerRequest":{"type":"object","properties":{"name":{"type":"string","description":"Display name for the trigger."},"description":{"type":["null","string"],"description":"Description of the trigger's purpose. `null` clears it."},"status":{"type":"string","description":"`active` or `inactive`. Setting this is how you pause and resume a trigger."},"condition":{"$ref":"#\/components\/schemas\/TriggerCondition"},"credential_ids":{"type":["null","array"],"items":{"type":"string"},"description":"Explicit credentials to target. Replaces the existing list wholesale."},"credential_filter":{"oneOf":[{"type":"null"},{"$ref":"#\/components\/schemas\/TriggerCredentialFilter"}],"description":"A scope of credentials to fan out across."},"input":{"oneOf":[{"type":"null"},{"$ref":"#\/components\/schemas\/JsonElement"}],"description":"Input passed to every run this trigger creates, validated against the task's `input_schema`. Task targets only."},"steps":{"type":["null","array"],"items":{"$ref":"#\/components\/schemas\/RunWorkflowStep"},"description":"Replacement per-step config for a workflow target, validated against the workflow. Workflow targets only."},"skip_if":{"oneOf":[{"type":"null"},{"$ref":"#\/components\/schemas\/TriggerSkipIf"}],"description":"Skip condition evaluated per credential. `null` clears it."},"concurrency_max":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["null","integer","string"],"format":"int32","description":"Maximum simultaneous runs from this trigger. `null` removes the cap."}},"description":"All fields are optional; omitted fields are left unchanged. The trigger's target task cannot be changed."},"DeleteTriggerResponse":{"required":["id","object","deleted","request_id"],"type":"object","properties":{"id":{"type":"string","description":"ID of the deleted trigger."},"object":{"type":"string","description":"Always `trigger`."},"deleted":{"type":"boolean","description":"Always `true` for successful deletions."},"request_id":{"type":"string","description":"Unique identifier for the API request. Include this when contacting support."}},"description":"Confirmation object returned after a successful deletion."},"PaginatedResponseOfListTriggerData":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#\/components\/schemas\/ListTriggerData"},"description":"Array of resource objects for the current page."},"has_more":{"type":"boolean","description":"`true` if there are more results beyond this page."},"next_cursor":{"type":["null","string"],"description":"Opaque cursor string to pass as the `cursor` query parameter on the next request. `null` when there are no more pages."},"request_id":{"type":["null","string"],"description":"Unique identifier for the API request."}},"required":["data","has_more"]},"WorkflowTaskStep":{"type":"object","required":["name","type","task_id"],"properties":{"name":{"type":"string","pattern":"^[a-z_][a-z0-9_]*$","example":"check_price","description":"Step identifier, unique within the workflow. Lowercase letters, digits, and underscores."},"type":{"type":"string","enum":["task"],"description":"Always `task`."},"task_id":{"type":"string","pattern":"^task_","example":"task_AbC123xYz456","description":"The task to run. The agent is derived from the task."},"credential_id":{"type":["null","string"],"description":"Credential for the task run. Mutually exclusive with `source_id`."},"source_id":{"type":["null","string"],"description":"Source for the task run, for public sources that don't require authentication. Mutually exclusive with `credential_id`."},"input":{"type":["null","object"],"additionalProperties":true,"description":"Input for the task run. String values may reference an earlier step's output, or the current item inside a `for_each`, using the template syntax in [Build a workflow](\/guides\/workflows#wiring-outputs-into-inputs). A value that is a single reference keeps its JSON type. Not checked against the task's `input_schema` before the run starts."},"if":{"type":["null","string"],"description":"Condition expression. When it evaluates false the step is `skipped`. Inside a `for_each`, the inner step's `if` may read `item`.","example":"steps.check_price.output.price_dropped == true"}},"description":"A step that runs one task as a task run."},"WorkflowForEachInnerStep":{"type":"object","required":["task_id"],"properties":{"type":{"type":"string","enum":["task"],"description":"`task`. May be omitted; a loop's inner step is always a task."},"task_id":{"type":"string","pattern":"^task_","example":"task_AbC123xYz456","description":"The task to run. The agent is derived from the task."},"credential_id":{"type":["null","string"],"description":"Credential for the task run. Mutually exclusive with `source_id`."},"source_id":{"type":["null","string"],"description":"Source for the task run, for public sources that don't require authentication. Mutually exclusive with `credential_id`."},"input":{"type":["null","object"],"additionalProperties":true,"description":"Input for the task run. String values may reference an earlier step's output, or the current item inside a `for_each`, using the template syntax in [Build a workflow](\/guides\/workflows#wiring-outputs-into-inputs). A value that is a single reference keeps its JSON type. Not checked against the task's `input_schema` before the run starts."},"if":{"type":["null","string"],"description":"Condition expression. When it evaluates false the step is `skipped`. Inside a `for_each`, the inner step's `if` may read `item`.","example":"steps.check_price.output.price_dropped == true"}},"description":"The task step a `for_each` runs once per item. It has no `name`; reference the loop by its outer name."},"WorkflowForEachStep":{"type":"object","required":["name","type","items","step"],"properties":{"name":{"type":"string","pattern":"^[a-z_][a-z0-9_]*$","example":"process_refunds","description":"Step identifier, unique within the workflow. Lowercase letters, digits, and underscores."},"type":{"type":"string","enum":["for_each"],"description":"Always `for_each`."},"items":{"type":"string","example":"steps.find.output.reservations","description":"Path to the array to iterate, on an earlier step's output."},"step":{"$ref":"#\/components\/schemas\/WorkflowForEachInnerStep"},"failure_behavior":{"type":["null","string"],"enum":[null,"stop","continue"],"default":"stop","description":"`stop` (default) fails the step on the first failed item, which stops the workflow. `continue` runs the remaining items and the workflow carries on; failed items have `null` output."},"if":{"type":["null","string"],"description":"Condition expression gating the whole loop. May not read `item`."}},"description":"A step that runs an inner task step once per item in an array. Items run sequentially in the same session."},"WorkflowStep":{"oneOf":[{"$ref":"#\/components\/schemas\/WorkflowTaskStep"},{"$ref":"#\/components\/schemas\/WorkflowForEachStep"}],"discriminator":{"propertyName":"type","mapping":{"task":"#\/components\/schemas\/WorkflowTaskStep","for_each":"#\/components\/schemas\/WorkflowForEachStep"}},"description":"One step of a workflow definition, discriminated by `type`."},"CreateWorkflowRequest":{"type":"object","required":["name","steps"],"properties":{"name":{"type":"string","maxLength":255,"example":"Price drop rebooking","description":"Display name for the workflow."},"steps":{"type":"array","minItems":1,"items":{"$ref":"#\/components\/schemas\/WorkflowStep"},"description":"Ordered array of step definitions. Every `task_id` must exist in your organization, step names must be unique, and references may only point at earlier steps."}},"description":"Request body for creating a workflow."},"UpdateWorkflowRequest":{"type":"object","properties":{"name":{"type":["null","string"],"maxLength":255,"description":"New display name."},"steps":{"type":["null","array"],"minItems":1,"items":{"$ref":"#\/components\/schemas\/WorkflowStep"},"description":"Replacement step definitions. The array is replaced wholesale, not merged."}},"description":"Request body for updating a workflow. Omit a field to leave it unchanged. Edits apply to future runs only."},"WorkflowResponse":{"type":"object","required":["id","object","name","steps","created_at","updated_at"],"properties":{"id":{"type":"string","pattern":"^wflo_","example":"wflo_AbC123xYz456","description":"Unique identifier for the workflow, prefixed with `wflo_`."},"object":{"type":"string","description":"Always `workflow`."},"name":{"type":"string","description":"Display name."},"steps":{"type":"array","items":{"$ref":"#\/components\/schemas\/WorkflowStep"},"description":"Ordered array of step definitions."},"created_at":{"type":"string","format":"date-time","example":"2026-06-18T00:00:00Z"},"updated_at":{"type":"string","format":"date-time","example":"2026-06-18T00:00:00Z"},"request_id":{"type":"string","description":"Unique identifier for the API request. Include this when contacting support."}},"description":"Workflow definition object."},"DeleteWorkflowResponse":{"type":"object","required":["id","object","deleted","request_id"],"properties":{"id":{"type":"string","description":"ID of the deleted workflow."},"object":{"type":"string","description":"Always `workflow`."},"deleted":{"type":"boolean","description":"Always `true` for successful deletions."},"request_id":{"type":"string","description":"Unique identifier for the API request. Include this when contacting support."}},"description":"Confirmation object returned after a successful deletion."},"PaginatedResponseOfWorkflowResponse":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#\/components\/schemas\/WorkflowResponse"},"description":"Array of resource objects for the current page."},"has_more":{"type":"boolean","description":"`true` if there are more results beyond this page."},"next_cursor":{"type":["null","string"],"description":"Opaque cursor string to pass as the `cursor` query parameter on the next request. `null` when there are no more pages."},"request_id":{"type":["null","string"],"description":"Unique identifier for the API request."}},"required":["data","has_more"]},"RunWorkflowStep":{"type":"object","required":["name"],"properties":{"name":{"type":"string","example":"check_price","description":"The step to override, matching a step `name` in the workflow definition. For a `for_each`, the override applies to the inner step on every item."},"credential_id":{"type":["null","string"],"description":"Credential for this step's task run. Mutually exclusive with `source_id`."},"source_id":{"type":["null","string"],"description":"Source for this step's task run (public sources only). Mutually exclusive with `credential_id`."},"input":{"type":["null","object"],"additionalProperties":true,"description":"Shallow-merged onto the definition's `input`: top-level keys here win, keys absent fall back to the definition. Nested objects replace entirely."}},"description":"Run-time values for one step. `session_id` is not accepted per step; every step of a run executes in one session. Pass `session_id` on the run instead."},"RunWorkflowRequest":{"type":"object","properties":{"session_id":{"type":["null","string"],"description":"Run every step in this session instead of one the run opens for itself \u2014 a session you started with `POST \/v2\/sessions`, such as one you [prepared](\/concepts\/sessions#preparing-a-session) with a `source_id` so the agent is already on that source's login page when the first step runs. Reusing a session is exempt from the concurrency ceiling, so the run costs no second slot. **The run ends the session when it finishes**, as it does a session it opens itself, so pass one you are handing to this run rather than one you want to keep using. The session must still be open and unused: a completed, failed, ended or unknown session is a 404, and one another run is already using \u2014 a workflow run executing in it, a task run still in flight, or a session a workflow or trigger run opened for itself \u2014 is a 409 `resource_not_ready`. A session whose browser another client is controlling is a 409 `session_in_use`. Omit it and the run opens and manages its own session. Prefixed with `sess_`."},"steps":{"type":["null","array"],"items":{"$ref":"#\/components\/schemas\/RunWorkflowStep"},"description":"Per-step overrides. Steps you don't list run exactly as defined."},"interactions_suppressed":{"type":"boolean","description":"When `true`, no step of the run sends an interaction (MFA code, security question) to your user. An interaction that needs a person fails the run with `interaction_suppressed`, and the credential stays valid. Defaults to `false`."}},"description":"Request body for running a workflow. The body may be empty."},"WorkflowRunError":{"type":"object","required":["type","code","message"],"properties":{"type":{"type":"string","description":"Error category (e.g. `source`, `auth`, `task`)."},"code":{"type":"string","description":"Machine-readable error code."},"message":{"type":"string","description":"Human-readable explanation. Do not rely on this for logic; it may change."},"field":{"type":["null","string"],"description":"The input field that caused the error, when applicable. Omitted otherwise."},"step":{"type":["null","string"],"description":"The step that caused the run to fail."}},"description":"A standard Deck error object plus the `step` that caused the failure. The same error, without `step`, appears on that step's `task_runs` entry."},"WorkflowRunTaskRunResponse":{"type":"object","required":["task_run_id","status","result","created_at","runtime_ms","errors"],"properties":{"task_run_id":{"type":"string","pattern":"^trun_","example":"trun_AbC123xYz456","description":"The task run this entry summarizes. `GET \/v2\/task-runs\/{run_id}` is the authoritative record."},"status":{"type":"string","description":"The task run's status."},"result":{"type":["null","string"],"description":"`success`, `failure`, or `unknown`. `null` until terminal."},"created_at":{"type":"string","format":"date-time","example":"2026-06-18T00:00:00Z","description":"When the task run was created. Because steps run sequentially, this is when the step or item started."},"runtime_ms":{"type":["null","integer"],"format":"int32","description":"Execution time in milliseconds. `null` until terminal, and for a run that failed before it started."},"errors":{"type":["null","array"],"items":{"$ref":"#\/components\/schemas\/TaskRunError"},"description":"Errors for this run when it failed. `null` otherwise."},"item":{"oneOf":[{"type":"null"},{"$ref":"#\/components\/schemas\/JsonElement"}],"description":"`for_each` only. The input item this run processed."},"input":{"oneOf":[{"type":"null"},{"$ref":"#\/components\/schemas\/JsonElement"}],"description":"The resolved input this run received, with references substituted. Returned only when `include=input` is requested."},"storage":{"type":["null","array"],"items":{"$ref":"#\/components\/schemas\/TaskRunStorageItem"},"description":"Files captured during this run, each with inline extraction (if any). Returned only when `include=storage` is requested."},"artifacts":{"oneOf":[{"type":"null"},{"$ref":"#\/components\/schemas\/TaskRunArtifactData"}],"description":"Screenshots for this run. Returned only when `include=artifacts` is requested."}},"description":"A compact summary of one task run a step produced."},"WorkflowRunStepResponse":{"type":"object","required":["name","type","status","output"],"properties":{"name":{"type":"string","description":"The step's name, matching the definition."},"type":{"type":"string","enum":["task","for_each"],"description":"`task` or `for_each`."},"status":{"type":"string","description":"The underlying task run's status (`queued`, `running`, `interaction_required`, `review_required`, `completed`, `failed`, `canceling`, `canceled`), plus `skipped` when the step's `if` evaluated false. A `for_each` aggregates its items."},"output":{"oneOf":[{"type":"null"},{"$ref":"#\/components\/schemas\/JsonElement"}],"description":"What references to this step resolve to: the task's output, or the ordered array of per-item outputs for a `for_each`. `null` until completion, and for a skipped step."},"task_runs":{"type":["null","array"],"items":{"$ref":"#\/components\/schemas\/WorkflowRunTaskRunResponse"},"description":"The task runs this step produced, in order: one for a `task` step, one per item processed for a `for_each`, none for a skipped step. Returned on single-run responses; omitted from list responses."}},"description":"One step's state within a workflow run."},"WorkflowRunResponse":{"type":"object","required":["id","object","workflow_id","status","result","runtime_ms","session_id","trigger_id","steps","errors","created_at","updated_at"],"properties":{"id":{"type":"string","pattern":"^wrun_","example":"wrun_AbC123xYz456","description":"Unique identifier for the workflow run, prefixed with `wrun_`."},"object":{"type":"string","description":"Always `workflow_run`."},"workflow_id":{"type":"string","pattern":"^wflo_","example":"wflo_AbC123xYz456","description":"The workflow that was run."},"status":{"type":"string","enum":["queued","running","paused","completed","failed","canceling","canceled"],"description":"Lifecycle state. `paused` means the current step is waiting on external input; the step's own status carries the reason."},"result":{"type":["null","string"],"description":"Outcome once terminal: `success` only when every task run succeeded, `failure` if any failed, `unknown` otherwise. `null` while running and for a canceled run."},"runtime_ms":{"type":["null","integer"],"format":"int64","description":"Milliseconds from the first step's start until the run reached a terminal status, excluding time spent queued. `null` until terminal."},"session_id":{"type":["null","string"],"description":"The session every step of this run executes in. Prefixed with `sess_`. Assigned when the run is created through the API, or when a trigger-created run is admitted, so `null` while such a run is queued."},"trigger_id":{"type":["null","string"],"description":"The trigger that created this run. Prefixed with `trg_`. `null` for runs created through the API."},"steps":{"type":"array","items":{"$ref":"#\/components\/schemas\/WorkflowRunStepResponse"},"description":"Per-step state, in definition order."},"errors":{"type":["null","array"],"items":{"$ref":"#\/components\/schemas\/WorkflowRunError"},"description":"Error objects, each naming its `step`, when the run failed. `null` otherwise."},"created_at":{"type":"string","format":"date-time","example":"2026-06-18T00:00:00Z"},"updated_at":{"type":"string","format":"date-time","example":"2026-06-18T00:00:00Z"},"request_id":{"type":"string","description":"Unique identifier for the API request. Include this when contacting support."},"interactions_suppressed":{"type":"boolean","description":"`true` when the run was created with `interactions_suppressed`. Omitted otherwise."}},"description":"Workflow run object."},"PaginatedResponseOfWorkflowRunResponse":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#\/components\/schemas\/WorkflowRunResponse"},"description":"Array of workflow runs for the current page. List entries omit each step's `task_runs`."},"has_more":{"type":"boolean","description":"`true` if there are more results beyond this page."},"next_cursor":{"type":["null","string"],"description":"Opaque cursor string to pass as the `cursor` query parameter on the next request. `null` when there are no more pages."},"request_id":{"type":["null","string"],"description":"Unique identifier for the API request."}},"required":["data","has_more"]},"SourceHeadersRequest":{"type":"object","properties":{"values":{"type":"object","additionalProperties":{"type":"string"},"description":"Header names mapped to their values (for example, `{ \"CF-Access-Client-Id\": \"a1b2c3.access\" }`). Names must be valid HTTP header names and values must be strings. At most 10 entries. `Host`, `Cookie`, `Content-Length`, `Connection`, `Transfer-Encoding`, `User-Agent`, `Origin`, and `Referer` are managed by the browser and cannot be set."},"tokenized":{"type":["null","array"],"items":{"type":"string"},"description":"Optional. Names of the headers in `values` whose values are secret. Tokenized values are vaulted and never returned."}},"required":["values"],"description":"Request headers Deck attaches to every request to the source's host. Available on Enterprise plans as an add-on."},"SourceHeadersResponse":{"type":"object","properties":{"values":{"type":"object","additionalProperties":{"type":"string"},"description":"Non-tokenized headers returned as name\/value pairs in the clear. Tokenized headers are dropped from this map and named in `tokenized` instead."},"tokenized":{"type":["null","array"],"items":{"type":"string"},"description":"Names of the headers whose values were vaulted. Their values never appear in `values` and cannot be read back through the API. Omitted when nothing was tokenized."}},"required":["values"],"description":"Request headers configured on the source. Secret values are not returned."},"SourceNetworkRequest":{"type":"object","properties":{"type":{"type":"string","enum":["default","static_ips"],"description":"The source's network. `static_ips` runs every run against the source from Deck's [static IP](\/platform\/static-ips) range. `default` uses Deck's default IPs."}},"required":["type"],"description":"Network setting for the source. Only `type` can be set; the static IP range is read-only."},"SourceNetworkStaticIps":{"type":"object","properties":{"cidr":{"type":"string","description":"The CIDR range to allowlist at the source. The same for every source in your organization. Omitted if the range is temporarily unavailable.","example":"203.0.113.0\/26"}},"description":"The static IP range runs against this source come from."},"SourceNetworkResponse":{"type":"object","properties":{"type":{"type":"string","enum":["default","static_ips"],"description":"The source's network: `default` or `static_ips`.","example":"static_ips"},"static_ips":{"$ref":"#\/components\/schemas\/SourceNetworkStaticIps","description":"Present only when `type` is `static_ips`."}},"required":["type"],"description":"The source's network. Always present; `{ \"type\": \"default\" }` on a source without static IPs."},"StaticIpsResponse":{"type":"object","properties":{"object":{"type":"string","description":"Always `static_ips`.","example":"static_ips"},"cidr":{"type":"string","description":"The CIDR range to allowlist. Omitted until static IPs are enabled for your organization.","example":"203.0.113.0\/26"},"request_id":{"type":"string","description":"Unique identifier for the API request. Include this when contacting support."}},"required":["object","request_id"],"description":"Deck's static IP range for your organization."},"InteractionsManagedInput":{"type":"object","properties":{"enabled":{"type":"boolean","description":"Whether Deck answers interactions for this credential. Defaults to `false`."},"methods":{"type":"array","items":{"$ref":"#\/components\/schemas\/ManagedMethodInput"},"description":"The methods Deck answers with, in priority order. Required when `enabled` is `true`. Replaced as a whole on update."},"fallback":{"$ref":"#\/components\/schemas\/ManagedFallbackInput"}},"description":"Managed interaction settings. Deck answers interactions from these methods before sending them to your user. Omit on update to leave unchanged."},"ManagedMethodInput":{"required":["type"],"type":"object","properties":{"type":{"enum":["security_question"],"type":"string","description":"Method type. One method per type."},"questions":{"maxItems":10,"type":"array","items":{"$ref":"#\/components\/schemas\/SecurityQuestionInput"},"description":"`security_question`: question and answer pairs. An entry with `text` and no `answer` keeps its saved answer. Entries left out are deleted."},"capture":{"$ref":"#\/components\/schemas\/ManagedCaptureInput","description":"`security_question`: save answers your user gives during runs."}}},"SecurityQuestionInput":{"required":["text"],"type":"object","properties":{"text":{"type":"string","description":"The question as the source words it."},"answer":{"type":"string","writeOnly":true,"description":"The answer. Write-only. Required for a new question."}}},"ManagedCaptureInput":{"type":"object","properties":{"enabled":{"type":"boolean","description":"Save answers your user gives during runs once the source accepts them. Requires `fallback.enabled`. Defaults to `false`. Turning it off deletes the answers it saved."}}},"ManagedFallbackInput":{"type":"object","properties":{"enabled":{"type":"boolean","description":"Send interactions Deck can't answer to your user. When `false`, the run fails instead. Defaults to `true`."}}},"InteractionsManagedSummary":{"required":["enabled","methods","fallback"],"type":"object","properties":{"enabled":{"type":"boolean","description":"Whether Deck answers interactions for this credential."},"methods":{"type":"array","items":{"$ref":"#\/components\/schemas\/ManagedMethodSummary"},"description":"The configured methods."},"fallback":{"$ref":"#\/components\/schemas\/ManagedFallbackSummary"}},"description":"Managed interaction settings for this credential. Secrets are never returned."},"ManagedMethodSummary":{"required":["type"],"type":"object","properties":{"type":{"type":"string","description":"Method type."},"questions":{"type":"array","items":{"$ref":"#\/components\/schemas\/SecurityQuestionSummary"},"description":"`security_question`: the saved questions, including captured ones."},"capture":{"$ref":"#\/components\/schemas\/ManagedCaptureSummary","description":"`security_question`: capture settings."}}},"SecurityQuestionSummary":{"required":["text"],"type":"object","properties":{"text":{"type":"string","description":"The question as the source words it."}}},"ManagedCaptureSummary":{"required":["enabled"],"type":"object","properties":{"enabled":{"type":"boolean","description":"Whether capture is on."}}},"ManagedFallbackSummary":{"required":["enabled"],"type":"object","properties":{"enabled":{"type":"boolean","description":"Whether interactions Deck can't answer are sent to your user."}}},"TaskRunInteraction":{"required":["type","responder","method","errors","created_at","answered_at"],"type":"object","properties":{"type":{"type":"string","description":"The interaction type, such as `mfa` or `security_question`."},"responder":{"enum":["customer","deck"],"type":"string","description":"Who answered."},"method":{"type":["null","string"],"description":"The managed method Deck answered with. `null` when your user answered alone."},"errors":{"type":["null","array"],"items":{"$ref":"#\/components\/schemas\/TaskRunError"},"description":"Why Deck sent the interaction to your user. `null` otherwise."},"created_at":{"type":"string","format":"date-time","description":"When the source prompted."},"answered_at":{"type":["null","string"],"format":"date-time","description":"When the response was submitted. `null` while pending or after a timeout."}}},"GeolocationInput":{"required":["country"],"type":"object","properties":{"country":{"type":"string","enum":["AU","BR","CA","CO","CZ","DE","EC","ES","FR","GB","IE","IT","JP","MY","PL","PT","US"],"description":"ISO 3166-1 alpha-2 country code, case-insensitive. Every task run on the credential gets a Deck IP address in this country, and never falls back to another country.","example":"US"}},"description":"The country this credential's task runs come from. See [Credential geolocation](\/concepts\/credentials#credential-geolocation)."},"GeolocationSummary":{"required":["country"],"type":"object","properties":{"country":{"type":"string","description":"ISO 3166-1 alpha-2 country code, in uppercase.","example":"US"}},"description":"The country this credential's task runs come from."}},"securitySchemes":{"BearerAuth":{"type":"http","description":"Secret key (sk_live_...)","scheme":"bearer","bearerFormat":"JWT"}}},"security":[{"BearerAuth":[]}],"tags":[{"name":"Agents","description":"Agents are the AI workers that execute tasks against sources. Create and manage the agents in your organization."},{"name":"Components","description":"Embeddable UI components. Create short-lived session tokens for the Auth Component."},{"name":"Platform","description":"Organization-wide platform settings, such as the static IP range."},{"name":"Credentials","description":"Credentials store the login details an agent uses at a source. Values are tokenized at rest and never returned in plaintext."},{"name":"Event Destinations","description":"Where Deck delivers events: webhooks, SQS, Kinesis, S3, and more. Manage destinations and inspect delivery attempts."},{"name":"Events","description":"Immutable records of things that happened in your organization, such as a task run completing or a credential being verified."},{"name":"Sessions","description":"Sessions are agent sandbox lifetimes. A session is created for each task run (or explicitly) and counts toward your concurrency limit."},{"name":"Sources","description":"Sources are the websites and portals agents work against. Register, inspect, reset, and delete them."},{"name":"Storage","description":"Files produced by task runs: downloaded documents, exports, and extraction results."},{"name":"Task Runs","description":"A task run is one execution of a task. Inspect status and output, retrieve files and screenshots, cancel runs, and answer interaction requests."},{"name":"Tasks","description":"Tasks define reusable units of work for an agent: a goal, an input schema, and an output schema. Run them against sources with credentials."},{"name":"Test","description":"Connectivity check for your API key."},{"name":"Triggers","description":"Triggers run tasks automatically on a schedule or in response to events."},{"name":"Workflows"},{"name":"Workflow Runs"}]}