Organization Management API

Administer organization members and usage limits, and review enterprise control history.

GET/api/billing/limits

Get rate-limit usage

Usage `limits` are returned only for an organization on a paid plan tier with an active subscription: per authenticated principal on Teams, per organization on other paid tiers. Overage preference and extra usage balance belong to the organization. Extra usage details, and preferences other than `droidCore`, are returned only to Managers and above.

cURL
curl 'https://api.factory.ai/api/billing/limits' \
  -H "Authorization: Bearer $FACTORY_BEARER_TOKEN"

Parameters

X-Factory-Org-Idstringheaderoptional

Organization a JWT request acts in; required to act in a sub-organization. Without it, the request acts in the user's root organization, or is rejected with 403 when the user cannot access the root organization. API keys always act in their own organization and ignore this header.

Responses

200Response for status 200

application/json

usesTokenRateLimitsBillingbooleanrequired

True exactly when `limits` is present.

hasActiveSubscriptionbooleanrequired

Whether the organization has an enterprise plan or an active subscription.

limitsobject

Present only for an organization on a paid plan tier with an active subscription.

standardobjectrequired

Rate-limit windows of the standard model pool

fiveHourobjectrequired
usedPercentintegerrequired

Share of the window's token allowance used, from 0 to 100. Any usage reads as at least 1, and a window that has ended reads as 0.

Minimum: 0

windowEndstring <date-time> | nullrequired

When the current window ends. Null, together with `secondsRemaining`, when no window is running.

secondsRemaininginteger | nullrequired

Seconds until `windowEnd`, rounded up. Null exactly when `windowEnd` is null.

Greater than: 0

unlimitedboolean

Present when the plan has no cap for this window, which then reads as 0% used with no window end.

Allowed values

true
weeklyobjectrequired
usedPercentintegerrequired

Share of the window's token allowance used, from 0 to 100. Any usage reads as at least 1, and a window that has ended reads as 0.

Minimum: 0

windowEndstring <date-time> | nullrequired

When the current window ends. Null, together with `secondsRemaining`, when no window is running.

secondsRemaininginteger | nullrequired

Seconds until `windowEnd`, rounded up. Null exactly when `windowEnd` is null.

Greater than: 0

unlimitedboolean

Present when the plan has no cap for this window, which then reads as 0% used with no window end.

Allowed values

true
monthlyobjectrequired
usedPercentintegerrequired

Share of the window's token allowance used, from 0 to 100. Any usage reads as at least 1, and a window that has ended reads as 0.

Minimum: 0

windowEndstring <date-time> | nullrequired

When the current window ends. Null, together with `secondsRemaining`, when no window is running.

secondsRemaininginteger | nullrequired

Seconds until `windowEnd`, rounded up. Null exactly when `windowEnd` is null.

Greater than: 0

unlimitedboolean

Present when the plan has no cap for this window, which then reads as 0% used with no window end.

Allowed values

true
coreobjectrequired

Rate-limit windows of the Droid Core model pool

fiveHourobjectrequired
usedPercentintegerrequired

Share of the window's token allowance used, from 0 to 100. Any usage reads as at least 1, and a window that has ended reads as 0.

Minimum: 0

windowEndstring <date-time> | nullrequired

When the current window ends. Null, together with `secondsRemaining`, when no window is running.

secondsRemaininginteger | nullrequired

Seconds until `windowEnd`, rounded up. Null exactly when `windowEnd` is null.

Greater than: 0

unlimitedboolean

Present when the plan has no cap for this window, which then reads as 0% used with no window end.

Allowed values

true
weeklyobjectrequired
usedPercentintegerrequired

Share of the window's token allowance used, from 0 to 100. Any usage reads as at least 1, and a window that has ended reads as 0.

Minimum: 0

windowEndstring <date-time> | nullrequired

When the current window ends. Null, together with `secondsRemaining`, when no window is running.

secondsRemaininginteger | nullrequired

Seconds until `windowEnd`, rounded up. Null exactly when `windowEnd` is null.

Greater than: 0

unlimitedboolean

Present when the plan has no cap for this window, which then reads as 0% used with no window end.

Allowed values

true
monthlyobjectrequired
usedPercentintegerrequired

Share of the window's token allowance used, from 0 to 100. Any usage reads as at least 1, and a window that has ended reads as 0.

Minimum: 0

windowEndstring <date-time> | nullrequired

When the current window ends. Null, together with `secondsRemaining`, when no window is running.

secondsRemaininginteger | nullrequired

Seconds until `windowEnd`, rounded up. Null exactly when `windowEnd` is null.

Greater than: 0

unlimitedboolean

Present when the plan has no cap for this window, which then reads as 0% used with no window end.

Allowed values

true
overagePreferencestring | nullrequired

What happens when the standard pool is used up: `extraUsage` spends prepaid extra usage, `droidCore` falls back to Droid Core models. With `limits`, an unset preference reads as `droidCore`; without, as null. Callers who cannot manage overage see null for any value other than `droidCore`.

Allowed values

extraUsagedroidCorenull
canManageOveragebooleanrequired

True for Managers and above.

extraUsageBalanceCentsinteger

Prepaid extra usage balance in cents. Present only with `limits`, and only when `canManageOverage` is true.

extraUsageAllowedboolean

Whether the organization has an active subscription that is not in a free trial. Present only when `canManageOverage` is true.

400Response for status 400

application/json

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

errorobject

The same error fields, for clients that only read body.error

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

401Response for status 401

application/json

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

errorobject

The same error fields, for clients that only read body.error

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

402Response for status 402

application/json

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

errorobject

The same error fields, for clients that only read body.error

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

403Response for status 403

application/json

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

errorobject

The same error fields, for clients that only read body.error

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

404Response for status 404

application/json

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

errorobject

The same error fields, for clients that only read body.error

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

451Response for status 451

application/json

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

errorobject

The same error fields, for clients that only read body.error

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

500Response for status 500

application/json

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

errorobject

The same error fields, for clients that only read body.error

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

503Response for status 503

application/json

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

errorobject

The same error fields, for clients that only read body.error

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

defaultResponse for status default

application/json

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

errorobject

The same error fields, for clients that only read body.error

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

GET/api/v0/organization/audit

List organization audit events

Returns owner-visible organization audit events, newest first. Requires an Enterprise plan and a human Owner API key or JWT; service-account keys are not supported. Poll with startDate/endDate and follow nextCursor until null, keeping filters unchanged. Cursors are opaque and can become invalid after authority or scope changes: on audit_cursor_restart_required, restart the time window without cursor and deduplicate by organizationId and event ID. Root Owners can select an organization in their subtree or use organization=all for an in-region merged view (up to 100 organizations). This is a polling API, not a streaming export.

cURL
curl 'https://api.factory.ai/api/v0/organization/audit' \
  -H "Authorization: Bearer $FACTORY_BEARER_TOKEN"

Parameters

cursorstringqueryoptional

Opaque nextCursor from the previous page. Keep all filters unchanged.

Minimum length: 1

eventTypestringqueryoptional

Filter by one audit event type.

Allowed values

user_lifecycle_changeuser_limit_changemembership_changeapi_key_lifecycle_changeservice_account_changeintegration_changeorganization_lifecycle_changemanaged_settings_changecompliance_settings_changeorganization_security_settings_changeanalytics_settings_changeconnector_availability_changeconnector_tool_invokedmcp_tool_invokedcompute_deployment_changecomputer_secrets_changecomputer_provisioning_changeorganization_monthly_usage_settings_changedelegation_activityremote_delegation_config_changeagent_readiness_report_changeagent_readiness_criterion_changesandbox_environment_changecontext_space_member_changeworkstream_ownership_transfercomputer_owner_transferautomation_owner_transferworkstream_member_inviteworkstream_member_startworkstream_member_removeworkstream_member_leaveprovider_credential_changesession_createdsession_surface_sync_change
scopestringqueryoptional

Filter by payload scope. With eventType, only user_limit_change and integration_change support this filter.

Allowed values

organizationuser
actorIdstringqueryoptional

Filter by actor principal ID.

Minimum length: 1

startDatestring <date-time>queryoptional

Inclusive creation-time lower bound (ISO 8601 UTC).

endDatestring <date-time>queryoptional

Inclusive creation-time upper bound (ISO 8601 UTC).

organizationstringqueryoptional

Root owners only: all merges the in-region organization subtree; an organization ID selects one organization in that subtree. Omit for the active organization.

Minimum length: 1

limitintegerqueryoptional

Maximum events per page, an integer from 1 to 100. Defaults to 25.

X-Factory-Org-Idstringheaderoptional

Organization a JWT request acts in; required to act in a sub-organization. Without it, the request acts in the user's root organization, or is rejected with 403 when the user cannot access the root organization. API keys always act in their own organization and ignore this header.

Responses

200Response for status 200

application/json

eventsobject[]required

Array items

idstringrequired
eventTypestringrequired

Audit event type. New event types may be added.

sourcestringrequired

Surface that originated the event, not the actor IP address.

actorobject | nullrequired
principalKindstringrequired
principalIdstringrequired
emailstring | nullrequired
rolestringrequired
actorOrgIdstring
targetobject (map)required

Values

object
payloadobject (map) | nullrequired

Values

object
createdAtstring <date-time>required
organizationIdstring
nextCursorstring | nullrequired

Opaque continuation cursor, or null at the end. Cursors may require restarting after an authority or scope change.

auditReadAuthoritystring
auditReadGenerationstring
unavailableOrganizationsobject[]

Organizations excluded from a merged view because they are served in another region.

Array items

idstringrequired
namestringrequired
regionstringrequired
400Response for status 400

application/json

variantOption 1 · object
detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
codestring

On audit_cursor_restart_required, restart without cursor and deduplicate by organizationId and event ID.

messagenot allowed
variantOption 2 · object
messagestringrequired

Request validation error

errorsobject[]

Framework validation issues, when available

Array items

object
401Response for status 401

application/json

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
codestring

On audit_cursor_restart_required, restart without cursor and deduplicate by organizationId and event ID.

402Response for status 402

application/json

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
codestring

On audit_cursor_restart_required, restart without cursor and deduplicate by organizationId and event ID.

403Response for status 403

application/json

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
codestring

On audit_cursor_restart_required, restart without cursor and deduplicate by organizationId and event ID.

404Response for status 404

application/json

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
codestring

On audit_cursor_restart_required, restart without cursor and deduplicate by organizationId and event ID.

429Response for status 429

application/json

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
codestring

On audit_cursor_restart_required, restart without cursor and deduplicate by organizationId and event ID.

451Response for status 451

application/json

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
codestring

On audit_cursor_restart_required, restart without cursor and deduplicate by organizationId and event ID.

500Response for status 500

application/json

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
codestring

On audit_cursor_restart_required, restart without cursor and deduplicate by organizationId and event ID.

503Response for status 503

application/json

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
codestring

On audit_cursor_restart_required, restart without cursor and deduplicate by organizationId and event ID.

GET/api/v0/organization/computer-access

Get computer access policy

Returns who may use OpenCompute and Factory-hosted managed computers in the organization, as stored in enterprise controls with defaults applied for unset values. Each policy has an org-wide `enabled` toggle and an `allowedEmails` list. While `enabled` is true, every member is admitted and the list is ignored. While `enabled` is false, only members whose sign-in email is in the list are admitted (case-insensitive); an empty list admits nobody. A service account that owns an existing computer keeps operating it either way, except that OpenCompute admits nobody, service accounts included, while it is disabled with an empty list.

cURL
curl 'https://api.factory.ai/api/v0/organization/computer-access' \
  -H "Authorization: Bearer $FACTORY_BEARER_TOKEN"

Parameters

X-Factory-Org-Idstringheaderoptional

Organization a JWT request acts in; required to act in a sub-organization. Without it, the request acts in the user's root organization, or is rejected with 403 when the user cannot access the root organization. API keys always act in their own organization and ignore this header.

Responses

200Response for status 200

application/json

openComputeobjectrequired

OpenCompute access (computers on customer-managed infrastructure). Unset defaults to disabled with an empty allowlist. The OpenCompute rollout and an eligible region are also required.

enabledbooleanrequired

Org-wide toggle. When true, every member is admitted and `allowedEmails` is ignored.

allowedEmailsstring[]required

Members admitted while `enabled` is false, matched case-insensitively against their sign-in email. With `enabled` false and an empty list, nobody is admitted.

Array items

string
managedComputersobjectrequired

Factory-hosted managed computer access. Unset defaults to enabled. A compliance restriction that disables managed computers overrides these values.

enabledbooleanrequired

Org-wide toggle. When true, every member is admitted and `allowedEmails` is ignored.

allowedEmailsstring[]required

Members admitted while `enabled` is false, matched case-insensitively against their sign-in email. With `enabled` false and an empty list, nobody is admitted.

Array items

string
400Response for status 400

application/json

variantOption 1 · object
detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

errorobject

The same error fields, for clients that only read body.error

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

variantOption 2 · object
messagestringrequired

Request validation error

errorsobject[]

Framework validation issues, when available

Array items

object
401Response for status 401

application/json

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

errorobject

The same error fields, for clients that only read body.error

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

402Response for status 402

application/json

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

errorobject

The same error fields, for clients that only read body.error

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

403Response for status 403

application/json

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

errorobject

The same error fields, for clients that only read body.error

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

404Response for status 404

application/json

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

errorobject

The same error fields, for clients that only read body.error

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

451Response for status 451

application/json

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

errorobject

The same error fields, for clients that only read body.error

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

500Response for status 500

application/json

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

errorobject

The same error fields, for clients that only read body.error

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

502Response for status 502

application/json

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

errorobject

The same error fields, for clients that only read body.error

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

503Response for status 503

application/json

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

errorobject

The same error fields, for clients that only read body.error

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

504Response for status 504

application/json

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

errorobject

The same error fields, for clients that only read body.error

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

PATCH/api/v0/organization/computer-access

Update computer access policy

Changes the org-wide toggles and adds / removes allowlisted emails for OpenCompute and Factory-hosted managed computers, leaving every other enterprise control unchanged. Omitted fields keep their current values. Returns the resulting policy. Each policy has an org-wide `enabled` toggle and an `allowedEmails` list. While `enabled` is true, every member is admitted and the list is ignored. While `enabled` is false, only members whose sign-in email is in the list are admitted (case-insensitive); an empty list admits nobody. A service account that owns an existing computer keeps operating it either way, except that OpenCompute admits nobody, service accounts included, while it is disabled with an empty list. Changing `openCompute` requires the OpenCompute rollout for the organization (403 otherwise). Returns 409 when enterprise controls have never been saved for the organization; save them once in the web app first.

cURL
curl -X PATCH 'https://api.factory.ai/api/v0/organization/computer-access' \
  -H "Authorization: Bearer $FACTORY_BEARER_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{ ... }'

Parameters

X-Factory-Org-Idstringheaderoptional

Organization a JWT request acts in; required to act in a sub-organization. Without it, the request acts in the user's root organization, or is rejected with 403 when the user cannot access the root organization. API keys always act in their own organization and ignore this header.

Request body

Required

application/json

No additional properties

openComputeobject

Changes to OpenCompute access. Requires the OpenCompute rollout for the organization.

No additional properties

enabledboolean

Sets the org-wide toggle. Omit to leave it unchanged. Turning it off keeps the allowlist.

addAllowedEmailsstring[]

Emails to add to the allowlist. Matching is case-insensitive; emails already present are ignored.

Maximum items: 1000

Array items

Maximum length: 320

string <email>
removeAllowedEmailsstring[]

Emails to remove from the allowlist. Matching is case-insensitive; emails not present are ignored.

Maximum items: 1000

Array items

Minimum length: 1

Maximum length: 320

string
managedComputersobject

Changes to Factory-hosted managed computer access.

No additional properties

enabledboolean

Sets the org-wide toggle. Omit to leave it unchanged. Turning it off keeps the allowlist.

addAllowedEmailsstring[]

Emails to add to the allowlist. Matching is case-insensitive; emails already present are ignored.

Maximum items: 1000

Array items

Maximum length: 320

string <email>
removeAllowedEmailsstring[]

Emails to remove from the allowlist. Matching is case-insensitive; emails not present are ignored.

Maximum items: 1000

Array items

Minimum length: 1

Maximum length: 320

string

Responses

200Response for status 200

application/json

openComputeobjectrequired

OpenCompute access (computers on customer-managed infrastructure). Unset defaults to disabled with an empty allowlist. The OpenCompute rollout and an eligible region are also required.

enabledbooleanrequired

Org-wide toggle. When true, every member is admitted and `allowedEmails` is ignored.

allowedEmailsstring[]required

Members admitted while `enabled` is false, matched case-insensitively against their sign-in email. With `enabled` false and an empty list, nobody is admitted.

Array items

string
managedComputersobjectrequired

Factory-hosted managed computer access. Unset defaults to enabled. A compliance restriction that disables managed computers overrides these values.

enabledbooleanrequired

Org-wide toggle. When true, every member is admitted and `allowedEmails` is ignored.

allowedEmailsstring[]required

Members admitted while `enabled` is false, matched case-insensitively against their sign-in email. With `enabled` false and an empty list, nobody is admitted.

Array items

string
400Response for status 400

application/json

variantOption 1 · object
detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

errorobject

The same error fields, for clients that only read body.error

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

variantOption 2 · object
messagestringrequired

Request validation error

errorsobject[]

Framework validation issues, when available

Array items

object
401Response for status 401

application/json

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

errorobject

The same error fields, for clients that only read body.error

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

402Response for status 402

application/json

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

errorobject

The same error fields, for clients that only read body.error

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

403Response for status 403

application/json

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

errorobject

The same error fields, for clients that only read body.error

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

404Response for status 404

application/json

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

errorobject

The same error fields, for clients that only read body.error

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

409Response for status 409

application/json

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

errorobject

The same error fields, for clients that only read body.error

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

413The platform edge refused a body over its own size limit before the route ran, for example `Request Entity Too Large` followed by an error code such as `FUNCTION_PAYLOAD_TOO_LARGE`.

text/plain

The platform edge refused a body over its own size limit before the route ran, for example `Request Entity Too Large` followed by an error code such as `FUNCTION_PAYLOAD_TOO_LARGE`.

string

application/json

The platform edge refused a body over its own size limit before the route ran, and answered in JSON because the request accepts JSON, for example `{"error":{"code":"413","message":"Request Entity Too Large"}}`.

Must not include detail

errorobjectrequired
codestringrequired
messagestringrequired
415Response for status 415

application/json

messagestringrequired

Request validation error

errorsobject[]

Framework validation issues, when available

Array items

object
451Response for status 451

application/json

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

errorobject

The same error fields, for clients that only read body.error

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

500Response for status 500

application/json

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

errorobject

The same error fields, for clients that only read body.error

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

502Response for status 502

application/json

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

errorobject

The same error fields, for clients that only read body.error

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

503Response for status 503

application/json

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

errorobject

The same error fields, for clients that only read body.error

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

504Response for status 504

application/json

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

errorobject

The same error fields, for clients that only read body.error

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

GET/api/v0/organization/computer-secrets

List organization computer secret names

Lists names and normalized usage policy for write-only secrets in the authenticated organization. Secrets without stored usage policy report runtime. Values are never returned.

cURL
curl 'https://api.factory.ai/api/v0/organization/computer-secrets' \
  -H "Authorization: Bearer $FACTORY_BEARER_TOKEN"

Parameters

X-Factory-Org-Idstringheaderoptional

Organization a JWT request acts in; required to act in a sub-organization. Without it, the request acts in the user's root organization, or is rejected with 403 when the user cannot access the root organization. API keys always act in their own organization and ignore this header.

Responses

200Response for status 200

application/json

supportsUsagesboolean

True when the organization endpoint supports usage-only updates. Clients must confirm support before sending usages.

secretsobject[]required

Array items

keystringrequired
usagesstring[]

Array items

string
400Response for status 400

application/json

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

errorobject

The same error fields, for clients that only read body.error

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

401Response for status 401

application/json

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

errorobject

The same error fields, for clients that only read body.error

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

402Response for status 402

application/json

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

errorobject

The same error fields, for clients that only read body.error

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

403Response for status 403

application/json

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

errorobject

The same error fields, for clients that only read body.error

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

404Response for status 404

application/json

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

errorobject

The same error fields, for clients that only read body.error

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

451Response for status 451

application/json

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

errorobject

The same error fields, for clients that only read body.error

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

500Response for status 500

application/json

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

errorobject

The same error fields, for clients that only read body.error

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

503Response for status 503

application/json

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

errorobject

The same error fields, for clients that only read body.error

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

PATCH/api/v0/organization/computer-secrets

Update organization computer secrets

Atomically upserts and deletes write-only secrets shared by managed computers in the authenticated organization. Omitted usages retain existing policy and default new secrets to runtime. Values may be omitted only for existing keys. Responses include names and usages, never values.

cURL
curl -X PATCH 'https://api.factory.ai/api/v0/organization/computer-secrets' \
  -H "Authorization: Bearer $FACTORY_BEARER_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{ ... }'

Parameters

X-Factory-Org-Idstringheaderoptional

Organization a JWT request acts in; required to act in a sub-organization. Without it, the request acts in the user's root organization, or is rejected with 403 when the user cannot access the root organization. API keys always act in their own organization and ignore this header.

Request body

Required

application/json

No additional properties

createOnlyboolean
upsertobject[]required

Maximum items: 100

Array items

No additional properties

keystringrequired

Uppercase POSIX environment variable name.

Maximum length: 128

Pattern: ^[A-Z_][A-Z0-9_]*$

valuestring

Minimum length: 1

Maximum length: 10000

usagesstring[]

Minimum items: 1

Array items

string

Allowed values

runtimebuild
deletestring[]required

Maximum items: 100

Array items

Maximum length: 128

Pattern: ^[A-Z_][A-Z0-9_]*$

string

Responses

200Response for status 200

application/json

supportsUsagesboolean

True when the organization endpoint supports usage-only updates. Clients must confirm support before sending usages.

secretsobject[]required

Array items

keystringrequired
usagesstring[]

Array items

string
400Response for status 400

application/json

variantOption 1 · object
detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

errorobject

The same error fields, for clients that only read body.error

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

variantOption 2 · object
messagestringrequired

Request validation error

errorsobject[]

Framework validation issues, when available

Array items

object
401Response for status 401

application/json

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

errorobject

The same error fields, for clients that only read body.error

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

402Response for status 402

application/json

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

errorobject

The same error fields, for clients that only read body.error

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

403Response for status 403

application/json

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

errorobject

The same error fields, for clients that only read body.error

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

404Response for status 404

application/json

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

errorobject

The same error fields, for clients that only read body.error

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

409Response for status 409

application/json

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

errorobject

The same error fields, for clients that only read body.error

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

413The platform edge refused a body over its own size limit before the route ran, for example `Request Entity Too Large` followed by an error code such as `FUNCTION_PAYLOAD_TOO_LARGE`.

text/plain

The platform edge refused a body over its own size limit before the route ran, for example `Request Entity Too Large` followed by an error code such as `FUNCTION_PAYLOAD_TOO_LARGE`.

string

application/json

The platform edge refused a body over its own size limit before the route ran, and answered in JSON because the request accepts JSON, for example `{"error":{"code":"413","message":"Request Entity Too Large"}}`.

Must not include detail

errorobjectrequired
codestringrequired
messagestringrequired
415Response for status 415

application/json

messagestringrequired

Request validation error

errorsobject[]

Framework validation issues, when available

Array items

object
451Response for status 451

application/json

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

errorobject

The same error fields, for clients that only read body.error

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

500Response for status 500

application/json

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

errorobject

The same error fields, for clients that only read body.error

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

503Response for status 503

application/json

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

errorobject

The same error fields, for clients that only read body.error

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

GET/api/v0/organization/enterprise-controls/history

List enterprise control change history

Returns a paginated list of enterprise control setting changes for the organization, ordered by revision descending. Properties for the `settings` object may be added, removed, or renamed between API versions. Clients should parse it as a generic JSON object.

cURL
curl 'https://api.factory.ai/api/v0/organization/enterprise-controls/history' \
  -H "Authorization: Bearer $FACTORY_BEARER_TOKEN"

Parameters

limitintegerqueryoptional

Maximum number of items to return (1-100)

Default: 20

cursorstringqueryoptional

Cursor for pagination

X-Factory-Org-Idstringheaderoptional

Organization a JWT request acts in; required to act in a sub-organization. Without it, the request acts in the user's root organization, or is rejected with 403 when the user cannot access the root organization. API keys always act in their own organization and ignore this header.

Responses

200Response for status 200

application/json

changesobject[]required

List of enterprise control changes

Array items

revisionintegerrequired

Revision number of the change

settingsobjectrequired

The managed settings snapshot at this revision. Properties may be added, removed, or renamed between API versions. Clients should parse this as a generic JSON object.

sessionDefaultSettingsobject
modelstring
reasoningEffortstring

Allowed values

nonedynamicoffminimallowmediumhighxhighmax
interactionModestring

Allowed values

autospecagimission
autonomyLevelstring

Allowed values

offlowmediumhigh
autonomyModestring

Deprecated: use interactionMode + autonomyLevel instead.

Allowed values

normalspecauto-lowauto-mediumauto-high
specModeModelstring
specModeReasoningEffortstring

Allowed values

nonedynamicoffminimallowmediumhighxhighmax
missionOrchestratorModelstring
missionOrchestratorReasoningEffortstring

Allowed values

nonedynamicoffminimallowmediumhighxhighmax
missionModelSettingsobject
workerModelstring
workerReasoningEffortstring

Allowed values

nonedynamicoffminimallowmediumhighxhighmax
validationWorkerModelstring
validationWorkerReasoningEffortstring

Allowed values

nonedynamicoffminimallowmediumhighxhighmax
maxAutonomyLevelstring

Allowed values

offlowmediumhigh
subagentAutonomyLevelstring

Allowed values

offlowmediumhighinherit
subagentModelSettingsobject
lightModelstring
lightReasoningEffortstring

Allowed values

nonedynamicoffminimallowmediumhighxhighmax
mediumModelstring
mediumReasoningEffortstring

Allowed values

nonedynamicoffminimallowmediumhighxhighmax
heavyModelstring
heavyReasoningEffortstring

Allowed values

nonedynamicoffminimallowmediumhighxhighmax
allowSubagentModelOverridesboolean
mcpAutonomyOverridesobject (map)

Values

defaultLevelstring

Allowed values

lowmediumhigh
toolsobject (map)

Values

string

Allowed values

lowmediumhigh
mcpAutonomyUrlOverridesobject[]

Array items

urlPatternstringrequired

Minimum length: 1

defaultLevelstringrequired

Allowed values

lowmediumhigh
builtInToolAutonomyOverridesobject (map)

Values

string

Allowed values

lowmediumhigh
cloudSessionSyncboolean
allowSessionTitleInMetadataboolean
allowSharedFoldersWhenSyncOffboolean
cloudConfigSyncboolean
cloudItemPullboolean
voiceDictationEnabledboolean
routedModelVisibilityPolicystring

Allowed values

off_for_everyoneusers_chooseon_for_everyone
imageGenerationEnabledboolean
imageGenerationModelstring
imageGenerationAllowedModelIdsstring[]

Array items

string
webSearchDisabledboolean
readinessReportUploadstring

Allowed values

askalwaysnever
wikiCloudSyncboolean
advancedAnalyticsEnabledboolean
cycleTimeBoundariesobject
linearobject (map)

Values

startStatusesobject[]required

Minimum items: 1

Array items

idstringrequired

Minimum length: 1

namestringrequired

Minimum length: 1

endStatusesobject[]required

Minimum items: 1

Array items

idstringrequired

Minimum length: 1

namestringrequired

Minimum length: 1

jiraobject (map)

Values

startStatusesobject[]required

Minimum items: 1

Array items

idstringrequired

Minimum length: 1

namestringrequired

Minimum length: 1

endStatusesobject[]required

Minimum items: 1

Array items

idstringrequired

Minimum length: 1

namestringrequired

Minimum length: 1

includeCoAuthoredByDroidboolean
enableDroidShieldboolean
enableOneHourAnthropicCachingboolean
droidShield20OptInboolean
ideAutoConnectboolean
outputStylestring

Minimum length: 1

Maximum length: 1024

commandAllowliststring[]

Array items

string
commandDenyliststring[]

Array items

string
commandBlockliststring[]

Array items

string
customModelsobject[]

Array items

All of the following apply

modelstringrequired
idstring
indexnumber
baseUrlstring
apiKeystring
apiKeyHelperstring
apiKeyHelperTtlMsinteger

Greater than: 0

credentialSourcestring

Allowed values

chatgpt-plan
authModestring

Authentication mode for the configured credential. "bearer" uses the Anthropic SDK authToken path; omitted or "provider-default" preserves native provider authentication.

Allowed values

provider-defaultbearer
providerstringrequired

Allowed values

anthropicopenaigeneric-chat-completion-apifactorygooglexaibedrock-converse
displayNamestring
maxContextLimitnumber
enableThinkingboolean
thinkingMaxTokensnumber
maxOutputTokensnumber
reasoningEffortstring

Allowed values

nonedynamicoffminimallowmediumhighxhighmax
extraHeadersobject (map)

Values

string
extraArgsobject (map)

Values

object
noImageSupportboolean
bedrockobject
authMethodstring

Allowed values

aws-credentialscredentials-commandenvironment-api-key
awsProfilestring
awsRegionstring

Minimum length: 1

bedrockBaseUrlstring
variantOption 1 · string <uri>
variantOption 2 · string

Pattern: \$\{[A-Za-z_][A-Za-z0-9_]*\}

awsAuthRefreshstring
awsCredentialExportstring
requestMetadataobject (map)

Values

string
baseModelIdobject
useInRouterboolean

Opt this model into Auto Model routing when baseModelId matches a built-in model and organization policy permits BYOK routing.

fileEditToolProfilestring

Optional file-tool override for exceptional model harnesses. Use "apply-patch" to advertise ApplyPatch or "create-edit" to advertise Create and Edit. This setting takes precedence over registry overrides, registry provider identity, and GPT/Codex/o-series name inference.

Allowed values

apply-patchcreate-edit
hideDisabledModelsboolean
modelPolicyobject
allowedModelIdsstring[]

Array items

string
blockedModelIdsstring[]

Array items

string
allowCustomModelsboolean
allowedBaseUrlsstring[]

Array items

string
allowAllFactoryModelsboolean
isFastModelsAllowedboolean
requireExplicitOptInModelIdsstring[]

Array items

string
allowFactoryRouterByokboolean
factoryRouterByokOnlyboolean
managedInferenceUnentitledboolean
mcpPolicyobject
enabledboolean

Default: false

allowliststring[]

Array items

string
missionPolicyobject
restrictedAccessboolean

Default: false

allowedUserIdsstring[]

Array items

string
workstreamPolicyobject
restrictedAccessboolean

Default: false

allowedUserIdsstring[]

Array items

string
userModelPoliciesobject (map)

Values

allowedModelIdsstring[]required

Array items

string
blockedModelIdsstring[]required

Array items

string
enabledPluginsobject (map)

Values

boolean
strictEnabledPluginsboolean
disabledSkillsstring[]

Array items

string
extraKnownMarketplacesobject (map)

Values

sourceobjectrequired
variantOption 1 · object
sourcestringrequired

Allowed values

github
repostringrequired

Pattern: ^[A-Za-z0-9_.-]+\/[A-Za-z0-9_.-]+$

refstring

Minimum length: 1

shastring

Pattern: ^[0-9a-fA-F]{40}$

variantOption 2 · object
sourcestringrequired

Allowed values

url
urlstringrequired
refstring

Minimum length: 1

shastring

Pattern: ^[0-9a-fA-F]{40}$

variantOption 3 · object
sourcestringrequired

Allowed values

local
pathstringrequired
variantOption 4 · object
sourcestringrequired

Allowed values

git-subdir
urlstringrequired
pathstringrequired
refstring

Minimum length: 1

shastring

Pattern: ^[0-9a-fA-F]{40}$

strictKnownMarketplacesobject[]

Array items

variantOption 1 · object
sourcestringrequired

Allowed values

github
repostringrequired

Pattern: ^[A-Za-z0-9_.-]+\/[A-Za-z0-9_.-]+$

refstring

Minimum length: 1

shastring

Pattern: ^[0-9a-fA-F]{40}$

variantOption 2 · object
sourcestringrequired

Allowed values

url
urlstringrequired
refstring

Minimum length: 1

shastring

Pattern: ^[0-9a-fA-F]{40}$

variantOption 3 · object
sourcestringrequired

Allowed values

local
pathstringrequired
variantOption 4 · object
sourcestringrequired

Allowed values

git-subdir
urlstringrequired
pathstringrequired
refstring

Minimum length: 1

shastring

Pattern: ^[0-9a-fA-F]{40}$

pluginTokenHostsobject (map)

Values

string
networkPolicyobject
allowedIpsstring[]required

Minimum items: 1

Array items

string
sandboxobject
enabledboolean
modestring

Allowed values

per-commandwhole-process
filesystemobject
allowWritestring[]

Array items

string
allowReadstring[]

Array items

string
denyWritestring[]

Array items

string
denyReadstring[]

Array items

string
networkobject
allowedDomainsstring[]

Array items

string
deniedDomainsstring[]

Array items

string
allowUnixSocketsstring[]

Array items

string
allowAllUnixSocketsboolean
allowLocalBindingboolean
httpProxyPortnumber
socksProxyPortnumber
allowManagedHooksOnlyboolean
hooksobject
PreToolUseobject[]

Array items

matcherstring
commandRegexstring
hooksobject[]required

Array items

typestringrequired

Allowed values

command
commandstringrequired
timeoutnumber
preserveRiskLevelboolean
onFailurestring

Allowed values

continueblock
PostToolUseobject[]

Array items

matcherstring
commandRegexstring
hooksobject[]required

Array items

typestringrequired

Allowed values

command
commandstringrequired
timeoutnumber
preserveRiskLevelboolean
onFailurestring

Allowed values

continueblock
Notificationobject[]

Array items

matcherstring
commandRegexstring
hooksobject[]required

Array items

typestringrequired

Allowed values

command
commandstringrequired
timeoutnumber
preserveRiskLevelboolean
onFailurestring

Allowed values

continueblock
UserPromptSubmitobject[]

Array items

matcherstring
commandRegexstring
hooksobject[]required

Array items

typestringrequired

Allowed values

command
commandstringrequired
timeoutnumber
preserveRiskLevelboolean
onFailurestring

Allowed values

continueblock
Stopobject[]

Array items

matcherstring
commandRegexstring
hooksobject[]required

Array items

typestringrequired

Allowed values

command
commandstringrequired
timeoutnumber
preserveRiskLevelboolean
onFailurestring

Allowed values

continueblock
SubagentStopobject[]

Array items

matcherstring
commandRegexstring
hooksobject[]required

Array items

typestringrequired

Allowed values

command
commandstringrequired
timeoutnumber
preserveRiskLevelboolean
onFailurestring

Allowed values

continueblock
PreCompactobject[]

Array items

matcherstring
commandRegexstring
hooksobject[]required

Array items

typestringrequired

Allowed values

command
commandstringrequired
timeoutnumber
preserveRiskLevelboolean
onFailurestring

Allowed values

continueblock
SessionStartobject[]

Array items

matcherstring
commandRegexstring
hooksobject[]required

Array items

typestringrequired

Allowed values

command
commandstringrequired
timeoutnumber
preserveRiskLevelboolean
onFailurestring

Allowed values

continueblock
SessionEndobject[]

Array items

matcherstring
commandRegexstring
hooksobject[]required

Array items

typestringrequired

Allowed values

command
commandstringrequired
timeoutnumber
preserveRiskLevelboolean
onFailurestring

Allowed values

continueblock
hooksDisabledboolean
showHookOutputboolean
restrictMemberVisibilityboolean
restrictApiKeyCreationToManagersboolean
apiKeyMaxLifetimeDaysinteger

Minimum: 1

localComputersEnabledboolean
managedComputersEnabledboolean
managedComputersAllowedEmailsstring[]

Array items

string
byomComputersEnabledboolean
byomComputersAllowedEmailsstring[]

Array items

string
openComputeEnabledboolean
openComputeAllowedEmailsstring[]

Array items

string
evaluationsEnabledboolean
evaluationsAllowedEmailsstring[]

Array items

string
evaluationsMaxEstimatedRunCreditsinteger

Greater than: 0

disableAutoUpdateboolean
personaSettingsobject
enabledRolesstring[]

Minimum items: 1

Maximum items: 9

Array items

string

Allowed values

engineeringproductfinancemarketingsalesoperationsdesignfoundersomething-else
personaConnectorsobject (map)

Values

Minimum items: 1

Maximum items: 20

Array items

string

Allowed values

airtableamazon_s3amplitudeapolloasanaashbyaxiomaxiom_coaxiom_mcp_serverbitlycalendlyclayclickupcloudflarecodaconfluencecontentfuldatabricksdatadogdoordashdropboxdynamics365exafigmafirecrawlfirefliesgithubgitlabgmailgonggoogle_calendargoogle_docsgoogle_drivegoogle_mapsgoogle_sheetsgoogle_slidesgrafanagranolagreenhousehexhubspotjirajira_service_managementlinearlookermetabasemicrosoft_teamsmicrosoft_teams_gccmondaynotiononedriveonedrive_gcconenoteoracle_hcmoracle_sales_cloudoracle_scmoktaouraoutlookpagerdutypaypalposthogpubmedpylonrenderrootlysalesforcesendgridsentryservicenowsharepointsharepoint_gccshopifyslacksnowflakespotifystatsigstatsig_mcpstripesupabaseteamworktrellovercelwhoopwordpressworkdayxzendeskzendesk_sellzoom
personaPluginsobject (map)

Values

Minimum items: 1

Maximum items: 20

Array items

string
sessionRetentionDaysinteger

Minimum: 14

Maximum: 365

factoryRouterGuidancestring

Maximum length: 2000

factoryRouterRulesobject[]

Maximum items: 20

Array items

whenstring

Maximum length: 300

guidancestringrequired

Maximum length: 600

factoryRouterCandidatesobject (map)

Values

enabledboolean
cardstring
disableWeeklyUsageSummaryboolean
envobject (map)

Values

string
telemetryobject
enabledboolean
logMessageContentboolean
granularitystring

Allowed values

useraggregate
formatstring

Allowed values

legacygenai
endpointstring
headersobject (map)

Values

string
metricExportIntervalMsinteger

Greater than: 0

Maximum: 2147483647

permissionRulesobject
userobjectrequired

The user who made the change

idstringrequired

WorkOS user ID who made the change

emailstring | nullrequired

Email of the user who made the change

namestring | nullrequired

Display name of the user who made the change

updatedAtstring <date-time>required

ISO 8601 timestamp of when the change was made

paginationobjectrequired
hasMorebooleanrequired

Whether there are more items after this page

nextCursorstring | nullrequired

Cursor to use for the next page, null if no more pages

400Response for status 400

application/json

variantOption 1 · object
detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

errorobject

The same error fields, for clients that only read body.error

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

variantOption 2 · object
messagestringrequired

Request validation error

errorsobject[]

Framework validation issues, when available

Array items

object
401Response for status 401

application/json

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

errorobject

The same error fields, for clients that only read body.error

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

402Response for status 402

application/json

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

errorobject

The same error fields, for clients that only read body.error

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

403Response for status 403

application/json

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

errorobject

The same error fields, for clients that only read body.error

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

404Response for status 404

application/json

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

errorobject

The same error fields, for clients that only read body.error

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

451Response for status 451

application/json

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

errorobject

The same error fields, for clients that only read body.error

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

500Response for status 500

application/json

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

errorobject

The same error fields, for clients that only read body.error

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

503Response for status 503

application/json

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

errorobject

The same error fields, for clients that only read body.error

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

GET/api/v0/organization/usage/limits/global

Get global user credits limit

Returns the global per-user credits limit for the organization. This limit applies to all users who do not have an individual override.

cURL
curl 'https://api.factory.ai/api/v0/organization/usage/limits/global' \
  -H "Authorization: Bearer $FACTORY_BEARER_TOKEN"

Parameters

X-Factory-Org-Idstringheaderoptional

Organization a JWT request acts in; required to act in a sub-organization. Without it, the request acts in the user's root organization, or is rejected with 403 when the user cannot access the root organization. API keys always act in their own organization and ignore this header.

Responses

200Response for status 200

application/json

limitinteger | nullrequired

Current global per-user credits limit, or null if none is configured

Minimum: 0

400Response for status 400

application/json

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

errorobject

The same error fields, for clients that only read body.error

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

401Response for status 401

application/json

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

errorobject

The same error fields, for clients that only read body.error

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

402Response for status 402

application/json

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

errorobject

The same error fields, for clients that only read body.error

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

403Response for status 403

application/json

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

errorobject

The same error fields, for clients that only read body.error

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

404Response for status 404

application/json

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

errorobject

The same error fields, for clients that only read body.error

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

451Response for status 451

application/json

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

errorobject

The same error fields, for clients that only read body.error

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

500Response for status 500

application/json

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

errorobject

The same error fields, for clients that only read body.error

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

503Response for status 503

application/json

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

errorobject

The same error fields, for clients that only read body.error

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

PUT/api/v0/organization/usage/limits/global

Set global user credits limit

Set the global per-user credits limit for the organization. This limit applies to all users who do not have an individual override. Pass null to remove the global limit.

cURL
curl -X PUT 'https://api.factory.ai/api/v0/organization/usage/limits/global' \
  -H "Authorization: Bearer $FACTORY_BEARER_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{ ... }'

Parameters

X-Factory-Org-Idstringheaderoptional

Organization a JWT request acts in; required to act in a sub-organization. Without it, the request acts in the user's root organization, or is rejected with 403 when the user cannot access the root organization. API keys always act in their own organization and ignore this header.

Request body

Required

application/json

No additional properties

limitinteger | nullrequired

Global per-user credits limit (minimum 1,000,000). Pass null to remove the global limit.

Minimum: 1000000

Responses

200Response for status 200

application/json

limitinteger | nullrequired

The limit that was set, or null if it was removed

Minimum: 0

400Response for status 400

application/json

variantOption 1 · object
detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

errorobject

The same error fields, for clients that only read body.error

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

variantOption 2 · object
messagestringrequired

Request validation error

errorsobject[]

Framework validation issues, when available

Array items

object
401Response for status 401

application/json

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

errorobject

The same error fields, for clients that only read body.error

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

402Response for status 402

application/json

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

errorobject

The same error fields, for clients that only read body.error

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

403Response for status 403

application/json

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

errorobject

The same error fields, for clients that only read body.error

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

404Response for status 404

application/json

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

errorobject

The same error fields, for clients that only read body.error

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

413The platform edge refused a body over its own size limit before the route ran, for example `Request Entity Too Large` followed by an error code such as `FUNCTION_PAYLOAD_TOO_LARGE`.

text/plain

The platform edge refused a body over its own size limit before the route ran, for example `Request Entity Too Large` followed by an error code such as `FUNCTION_PAYLOAD_TOO_LARGE`.

string

application/json

The platform edge refused a body over its own size limit before the route ran, and answered in JSON because the request accepts JSON, for example `{"error":{"code":"413","message":"Request Entity Too Large"}}`.

Must not include detail

errorobjectrequired
codestringrequired
messagestringrequired
415Response for status 415

application/json

messagestringrequired

Request validation error

errorsobject[]

Framework validation issues, when available

Array items

object
451Response for status 451

application/json

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

errorobject

The same error fields, for clients that only read body.error

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

500Response for status 500

application/json

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

errorobject

The same error fields, for clients that only read body.error

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

503Response for status 503

application/json

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

errorobject

The same error fields, for clients that only read body.error

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

GET/api/v0/organization/usage/limits/groups

Get group credits limits

Returns the directory-group credits limits mapped for the organization. Each mapping applies the mapped limit to every synced member of the group, between their individual override and the global limit. Members of several mapped groups get the highest mapped limit.

cURL
curl 'https://api.factory.ai/api/v0/organization/usage/limits/groups' \
  -H "Authorization: Bearer $FACTORY_BEARER_TOKEN"

Parameters

X-Factory-Org-Idstringheaderoptional

Organization a JWT request acts in; required to act in a sub-organization. Without it, the request acts in the user's root organization, or is rejected with 403 when the user cannot access the root organization. API keys always act in their own organization and ignore this header.

Responses

200Response for status 200

application/json

groupLimitsobject[]required

Directory groups with mapped credits limits

Array items

groupIdstringrequired

Stable WorkOS directory group id. Rename-proof: renaming the group in your identity provider never changes this id, so the mapping survives.

namestring | nullrequired

Directory group display name from the IdP, or null when the group is no longer present in the synced directory

limitinteger | nullrequired

Credits limit mapped to this group, or null if no limit is mapped

Minimum: 0

400Response for status 400

application/json

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

errorobject

The same error fields, for clients that only read body.error

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

401Response for status 401

application/json

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

errorobject

The same error fields, for clients that only read body.error

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

402Response for status 402

application/json

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

errorobject

The same error fields, for clients that only read body.error

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

403Response for status 403

application/json

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

errorobject

The same error fields, for clients that only read body.error

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

404Response for status 404

application/json

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

errorobject

The same error fields, for clients that only read body.error

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

451Response for status 451

application/json

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

errorobject

The same error fields, for clients that only read body.error

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

500Response for status 500

application/json

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

errorobject

The same error fields, for clients that only read body.error

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

503Response for status 503

application/json

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

errorobject

The same error fields, for clients that only read body.error

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

PUT/api/v0/organization/usage/limits/groups

Set group credits limits

Map synced directory groups to per-member credits limits (up to 100 per request). Identify each group by its stable WorkOS group id; renaming a group in your identity provider never changes the id, so mappings survive renames. Pass null for limit to unmap a group (members fall back to the global limit). Enforcement is read-time: members pick a mapping change up at their next request, with no per-user writes.

cURL
curl -X PUT 'https://api.factory.ai/api/v0/organization/usage/limits/groups' \
  -H "Authorization: Bearer $FACTORY_BEARER_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{ ... }'

Parameters

X-Factory-Org-Idstringheaderoptional

Organization a JWT request acts in; required to act in a sub-organization. Without it, the request acts in the user's root organization, or is rejected with 403 when the user cannot access the root organization. API keys always act in their own organization and ignore this header.

Request body

Required

application/json

No additional properties

groupsobject[]required

Array of group limit entries (up to 100). Each maps a synced directory group to a per-member credits limit.

Minimum items: 1

Maximum items: 100

Array items

No additional properties

groupIdstringrequired

Stable WorkOS directory group id. Rename-proof: renaming the group in your identity provider never changes this id, so the mapping survives.

Pattern: ^[A-Za-z0-9_-]{1,256}$

limitinteger | nullrequired

Credits limit to set for members of this group (minimum 1,000,000). Pass null to unmap the group (members fall back to the global limit).

Minimum: 1000000

Responses

200Response for status 200

application/json

updatedobject[]required

Successfully updated group limits

Array items

groupIdstringrequired

Stable WorkOS directory group id. Rename-proof: renaming the group in your identity provider never changes this id, so the mapping survives.

limitinteger | nullrequired

The limit that was set, or null if the group mapping was removed

Minimum: 0

errorsobject[]required

Errors for groups that could not be updated

Array items

groupIdstringrequired

Group id that was provided

errorstringrequired

Error message

400Response for status 400

application/json

variantOption 1 · object
detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

errorobject

The same error fields, for clients that only read body.error

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

variantOption 2 · object
messagestringrequired

Request validation error

errorsobject[]

Framework validation issues, when available

Array items

object
401Response for status 401

application/json

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

errorobject

The same error fields, for clients that only read body.error

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

402Response for status 402

application/json

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

errorobject

The same error fields, for clients that only read body.error

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

403Response for status 403

application/json

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

errorobject

The same error fields, for clients that only read body.error

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

404Response for status 404

application/json

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

errorobject

The same error fields, for clients that only read body.error

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

413The platform edge refused a body over its own size limit before the route ran, for example `Request Entity Too Large` followed by an error code such as `FUNCTION_PAYLOAD_TOO_LARGE`.

text/plain

The platform edge refused a body over its own size limit before the route ran, for example `Request Entity Too Large` followed by an error code such as `FUNCTION_PAYLOAD_TOO_LARGE`.

string

application/json

The platform edge refused a body over its own size limit before the route ran, and answered in JSON because the request accepts JSON, for example `{"error":{"code":"413","message":"Request Entity Too Large"}}`.

Must not include detail

errorobjectrequired
codestringrequired
messagestringrequired
415Response for status 415

application/json

messagestringrequired

Request validation error

errorsobject[]

Framework validation issues, when available

Array items

object
451Response for status 451

application/json

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

errorobject

The same error fields, for clients that only read body.error

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

500Response for status 500

application/json

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

errorobject

The same error fields, for clients that only read body.error

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

503Response for status 503

application/json

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

errorobject

The same error fields, for clients that only read body.error

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

GET/api/v0/organization/usage/limits/shared

Get shared monthly user limits

List configured Global Organization Limits for the authenticated root organization. Each cap applies to one human user across the root and every sub-organization, independently of existing per-org limits. Requires a human Owner API key or JWT acting in the Enterprise root and the shared-usage-limits feature. Service-account credentials are not supported. Amounts are normalized Factory credits, not millions of credits; 0 is a blocking cap. An empty list means no shared caps are configured.

cURL
curl 'https://api.factory.ai/api/v0/organization/usage/limits/shared' \
  -H "Authorization: Bearer $FACTORY_BEARER_TOKEN"

Parameters

X-Factory-Org-Idstringheaderoptional

Organization a JWT request acts in; required to act in a sub-organization. Without it, the request acts in the user's root organization, or is rejected with 403 when the user cannot access the root organization. API keys always act in their own organization and ignore this header.

Responses

200Response for status 200

application/json

principalsobject[]required

Array items

principalIdstringrequired
limitnumber | nullrequired
400Response for status 400

application/json

variantOption 1 · object
detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
messagenot allowed
variantOption 2 · object
messagestringrequired

Request validation error

errorsobject[]

Framework validation issues, when available

Array items

object
401Response for status 401

application/json

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
402Response for status 402

application/json

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
403Response for status 403

application/json

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
404Response for status 404

application/json

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
429Response for status 429

application/json

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
451Response for status 451

application/json

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
500Response for status 500

application/json

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
503Response for status 503

application/json

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
PUT/api/v0/organization/usage/limits/shared

Set shared monthly user limits

Set or remove Global Organization Limits for up to 100 human user IDs in the authenticated root organization. Requires a human Owner API key or JWT acting in the Enterprise root and the shared-usage-limits feature. Each principalId identifies a human user, not a service account. Amounts are normalized Factory credits (5000000 means 5M credits); 0 blocks usage and null removes the shared cap. Other shared caps and existing per-org limits are unchanged. Duplicate IDs, malformed ID/limit shapes, or oversized batches reject the request; service-account and reserved IDs are reported per entry while valid entries save together. A timeout or failed response can follow a committed write: inspect the current limits before retrying.

cURL
curl -X PUT 'https://api.factory.ai/api/v0/organization/usage/limits/shared' \
  -H "Authorization: Bearer $FACTORY_BEARER_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{ ... }'

Parameters

X-Factory-Org-Idstringheaderoptional

Organization a JWT request acts in; required to act in a sub-organization. Without it, the request acts in the user's root organization, or is rejected with 403 when the user cannot access the root organization. API keys always act in their own organization and ignore this header.

Request body

Required

application/json

No additional properties

principalsobject[]required

Minimum items: 1

Maximum items: 100

Array items

No additional properties

principalIdstringrequired

Minimum length: 1

Maximum length: 256

limitinteger | nullrequired

Minimum: 0

Maximum: 9007199254740991

Responses

200Response for status 200

application/json

updatedobject[]required

Array items

principalIdstringrequired
limitnumber | nullrequired
errorsobject[]required

Array items

principalIdstringrequired
errorstringrequired
400Response for status 400

application/json

variantOption 1 · object
detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
messagenot allowed
variantOption 2 · object
messagestringrequired

Request validation error

errorsobject[]

Framework validation issues, when available

Array items

object
401Response for status 401

application/json

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
402Response for status 402

application/json

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
403Response for status 403

application/json

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
404Response for status 404

application/json

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
413The platform edge refused a body over its own size limit before the route ran, for example `Request Entity Too Large` followed by an error code such as `FUNCTION_PAYLOAD_TOO_LARGE`.

text/plain

The platform edge refused a body over its own size limit before the route ran, for example `Request Entity Too Large` followed by an error code such as `FUNCTION_PAYLOAD_TOO_LARGE`.

string

application/json

The platform edge refused a body over its own size limit before the route ran, and answered in JSON because the request accepts JSON, for example `{"error":{"code":"413","message":"Request Entity Too Large"}}`.

Must not include detail

errorobjectrequired
codestringrequired
messagestringrequired
415Response for status 415

application/json

messagestringrequired

Request validation error

errorsobject[]

Framework validation issues, when available

Array items

object
429Response for status 429

application/json

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
451Response for status 451

application/json

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
500Response for status 500

application/json

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
503Response for status 503

application/json

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
GET/api/v0/organization/usage/limits/users

Get user credits limits

Returns the global per-user credits limit and any individual user overrides for the organization.

cURL
curl 'https://api.factory.ai/api/v0/organization/usage/limits/users' \
  -H "Authorization: Bearer $FACTORY_BEARER_TOKEN"

Parameters

X-Factory-Org-Idstringheaderoptional

Organization a JWT request acts in; required to act in a sub-organization. Without it, the request acts in the user's root organization, or is rejected with 403 when the user cannot access the root organization. API keys always act in their own organization and ignore this header.

Responses

200Response for status 200

application/json

globalLimitinteger | nullrequired

Global per-user credits limit applied to all users without an individual override

Minimum: 0

userLimitsobject[]required

Users with individual limit overrides

Array items

emailstringrequired

User email address

Minimum length: 1

limitinteger | nullrequired

Individual credits limit override, or null if using the global default

Minimum: 0

400Response for status 400

application/json

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

errorobject

The same error fields, for clients that only read body.error

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

401Response for status 401

application/json

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

errorobject

The same error fields, for clients that only read body.error

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

402Response for status 402

application/json

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

errorobject

The same error fields, for clients that only read body.error

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

403Response for status 403

application/json

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

errorobject

The same error fields, for clients that only read body.error

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

404Response for status 404

application/json

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

errorobject

The same error fields, for clients that only read body.error

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

451Response for status 451

application/json

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

errorobject

The same error fields, for clients that only read body.error

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

500Response for status 500

application/json

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

errorobject

The same error fields, for clients that only read body.error

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

503Response for status 503

application/json

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

errorobject

The same error fields, for clients that only read body.error

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

PUT/api/v0/organization/usage/limits/users

Set user credits limits

Set individual per-user credits limits for one or more users. Supports bulk updates (up to 100 users per request). Identify each user by email. Pass null for limit to remove an individual override.

cURL
curl -X PUT 'https://api.factory.ai/api/v0/organization/usage/limits/users' \
  -H "Authorization: Bearer $FACTORY_BEARER_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{ ... }'

Parameters

X-Factory-Org-Idstringheaderoptional

Organization a JWT request acts in; required to act in a sub-organization. Without it, the request acts in the user's root organization, or is rejected with 403 when the user cannot access the root organization. API keys always act in their own organization and ignore this header.

Request body

Required

application/json

No additional properties

usersobject[]required

Array of user limit entries (up to 100). Each identifies a user by email.

Minimum items: 1

Maximum items: 100

Array items

No additional properties

emailstringrequired

User email address

Minimum length: 1

limitinteger | nullrequired

Credits limit to set for this user (minimum 1,000,000). Pass null to remove the individual override.

Minimum: 1000000

Responses

200Response for status 200

application/json

updatedobject[]required

Successfully updated user limits

Array items

emailstringrequired

User email address

Minimum length: 1

limitinteger | nullrequired

The limit that was set, or null if the override was removed

Minimum: 0

errorsobject[]required

Errors for users that could not be updated

Array items

emailstringrequired

Email that was provided

errorstringrequired

Error message

400Response for status 400

application/json

variantOption 1 · object
detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

errorobject

The same error fields, for clients that only read body.error

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

variantOption 2 · object
messagestringrequired

Request validation error

errorsobject[]

Framework validation issues, when available

Array items

object
401Response for status 401

application/json

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

errorobject

The same error fields, for clients that only read body.error

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

402Response for status 402

application/json

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

errorobject

The same error fields, for clients that only read body.error

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

403Response for status 403

application/json

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

errorobject

The same error fields, for clients that only read body.error

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

404Response for status 404

application/json

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

errorobject

The same error fields, for clients that only read body.error

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

413The platform edge refused a body over its own size limit before the route ran, for example `Request Entity Too Large` followed by an error code such as `FUNCTION_PAYLOAD_TOO_LARGE`.

text/plain

The platform edge refused a body over its own size limit before the route ran, for example `Request Entity Too Large` followed by an error code such as `FUNCTION_PAYLOAD_TOO_LARGE`.

string

application/json

The platform edge refused a body over its own size limit before the route ran, and answered in JSON because the request accepts JSON, for example `{"error":{"code":"413","message":"Request Entity Too Large"}}`.

Must not include detail

errorobjectrequired
codestringrequired
messagestringrequired
415Response for status 415

application/json

messagestringrequired

Request validation error

errorsobject[]

Framework validation issues, when available

Array items

object
451Response for status 451

application/json

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

errorobject

The same error fields, for clients that only read body.error

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

500Response for status 500

application/json

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

errorobject

The same error fields, for clients that only read body.error

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

503Response for status 503

application/json

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

errorobject

The same error fields, for clients that only read body.error

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

GET/api/v0/organization/users

List organization users

Returns a paginated list of users in the Factory organization.

cURL
curl 'https://api.factory.ai/api/v0/organization/users' \
  -H "Authorization: Bearer $FACTORY_BEARER_TOKEN"

Parameters

limitintegerqueryoptional

Maximum number of items to return (1-100)

Default: 20

cursorstringqueryoptional

Cursor for pagination

X-Factory-Org-Idstringheaderoptional

Organization a JWT request acts in; required to act in a sub-organization. Without it, the request acts in the user's root organization, or is rejected with 403 when the user cannot access the root organization. API keys always act in their own organization and ignore this header.

Responses

200Response for status 200

application/json

usersobject[]required

List of users

Array items

idstringrequired

WorkOS user ID

emailstring <email>required

User email address

firstNamestring

User first name

lastNamestring

User last name

createdAtstringrequired

ISO 8601 timestamp of user creation

lastSignInAtstring

ISO 8601 timestamp of last sign in

metadataobject (map)required

Custom metadata for the user

Values

string
paginationobjectrequired
hasMorebooleanrequired

Whether there are more items after this page

nextCursorstring | nullrequired

Cursor to use for the next page, null if no more pages

400Response for status 400

application/json

variantOption 1 · object
detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

errorobject

The same error fields, for clients that only read body.error

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

variantOption 2 · object
messagestringrequired

Request validation error

errorsobject[]

Framework validation issues, when available

Array items

object
401Response for status 401

application/json

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

errorobject

The same error fields, for clients that only read body.error

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

402Response for status 402

application/json

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

errorobject

The same error fields, for clients that only read body.error

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

403Response for status 403

application/json

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

errorobject

The same error fields, for clients that only read body.error

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

404Response for status 404

application/json

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

errorobject

The same error fields, for clients that only read body.error

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

451Response for status 451

application/json

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

errorobject

The same error fields, for clients that only read body.error

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

500Response for status 500

application/json

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

errorobject

The same error fields, for clients that only read body.error

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

503Response for status 503

application/json

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

errorobject

The same error fields, for clients that only read body.error

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

DELETE/api/v0/organization/users

Remove a user

Removes a user from the organization by email. Works for both active members (deletes membership) and pending invitations (revokes the invite).

cURL
curl -X DELETE 'https://api.factory.ai/api/v0/organization/users' \
  -H "Authorization: Bearer $FACTORY_BEARER_TOKEN"

Parameters

emailstring <email>queryrequired

Email address of the user to remove

X-Factory-Org-Idstringheaderoptional

Organization a JWT request acts in; required to act in a sub-organization. Without it, the request acts in the user's root organization, or is rejected with 403 when the user cannot access the root organization. API keys always act in their own organization and ignore this header.

Responses

204Response for status 204

No response body.

400Response for status 400

application/json

variantOption 1 · object
detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

errorobject

The same error fields, for clients that only read body.error

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

variantOption 2 · object
messagestringrequired

Request validation error

errorsobject[]

Framework validation issues, when available

Array items

object
401Response for status 401

application/json

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

errorobject

The same error fields, for clients that only read body.error

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

402Response for status 402

application/json

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

errorobject

The same error fields, for clients that only read body.error

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

403Response for status 403

application/json

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

errorobject

The same error fields, for clients that only read body.error

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

404Response for status 404

application/json

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

errorobject

The same error fields, for clients that only read body.error

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

409Response for status 409

application/json

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

errorobject

The same error fields, for clients that only read body.error

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

451Response for status 451

application/json

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

errorobject

The same error fields, for clients that only read body.error

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

500Response for status 500

application/json

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

errorobject

The same error fields, for clients that only read body.error

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

503Response for status 503

application/json

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

errorobject

The same error fields, for clients that only read body.error

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

POST/api/v0/organization/users/invite

Invite or update a user

Sends an invitation to a user to join the organization. If the user is already a member, updates their role to the specified value. If the user has a pending invite, returns the current status without changes. If the organization has reached its seat limit, returns status "error" with a descriptive error message.

cURL
curl -X POST 'https://api.factory.ai/api/v0/organization/users/invite' \
  -H "Authorization: Bearer $FACTORY_BEARER_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{ ... }'

Parameters

X-Factory-Org-Idstringheaderoptional

Organization a JWT request acts in; required to act in a sub-organization. Without it, the request acts in the user's root organization, or is rejected with 403 when the user cannot access the root organization. API keys always act in their own organization and ignore this header.

Request body

Required

application/json

No additional properties

emailstring <email>required

Email address to invite

rolestring

Role to assign (defaults to user)

Default: "user"

Allowed values

usermanagerowner

Responses

200Response for status 200

application/json

emailstring <email>required

Invited email address

rolestringrequired

Assigned role

Allowed values

usermanagerowner
statusstringrequired

Result of the invite operation

Allowed values

invitedalready_memberrole_updatedalready_invitederror
errorstring

Error message if status is error

400Response for status 400

application/json

variantOption 1 · object
detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

errorobject

The same error fields, for clients that only read body.error

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

variantOption 2 · object
messagestringrequired

Request validation error

errorsobject[]

Framework validation issues, when available

Array items

object
401Response for status 401

application/json

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

errorobject

The same error fields, for clients that only read body.error

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

402Response for status 402

application/json

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

errorobject

The same error fields, for clients that only read body.error

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

403Response for status 403

application/json

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

errorobject

The same error fields, for clients that only read body.error

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

404Response for status 404

application/json

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

errorobject

The same error fields, for clients that only read body.error

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

409Response for status 409

application/json

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

errorobject

The same error fields, for clients that only read body.error

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

413The platform edge refused a body over its own size limit before the route ran, for example `Request Entity Too Large` followed by an error code such as `FUNCTION_PAYLOAD_TOO_LARGE`.

text/plain

The platform edge refused a body over its own size limit before the route ran, for example `Request Entity Too Large` followed by an error code such as `FUNCTION_PAYLOAD_TOO_LARGE`.

string

application/json

The platform edge refused a body over its own size limit before the route ran, and answered in JSON because the request accepts JSON, for example `{"error":{"code":"413","message":"Request Entity Too Large"}}`.

Must not include detail

errorobjectrequired
codestringrequired
messagestringrequired
415Response for status 415

application/json

messagestringrequired

Request validation error

errorsobject[]

Framework validation issues, when available

Array items

object
451Response for status 451

application/json

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

errorobject

The same error fields, for clients that only read body.error

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

500Response for status 500

application/json

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

errorobject

The same error fields, for clients that only read body.error

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

503Response for status 503

application/json

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users

errorobject

The same error fields, for clients that only read body.error

detailstringrequired

Human-readable error message

statusnumberrequired

HTTP status code

titlestringrequired

HTTP status title

metadataobject (map)

Additional error metadata

Values

object
requestIdstring

Request identifier to include when contacting support

codestring

Stable machine-readable error code, when one applies

displayToUserboolean

True when detail is curated copy that is safe to show users