{"openapi":"3.1.0","info":{"title":"Abliteration Platform API","summary":"Greenfield Abliteration backend and API gateway.","version":"0.1.0"},"servers":[{"url":"https://api.abliteration.ai","description":"Production environment"}],"paths":{"/health/live":{"get":{"tags":["Health"],"summary":"Liveness probe","operationId":"healthLive","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HealthResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/health/ready":{"get":{"tags":["Health"],"summary":"Readiness probe","operationId":"healthReady","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HealthResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service Unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v1/organization":{"get":{"tags":["Administration"],"summary":"Retrieve the organization that owns the Admin API key","operationId":"retrieveOrganization","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdministrationOrganization"}}}},"400":{"description":"The request or cursor is invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"The Admin API key is missing, invalid, expired, or revoked.","headers":{"WWW-Authenticate":{"description":"Authentication scheme required by the endpoint.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The Admin API key lacks the required permission.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"The resource was not found in the credential's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"The request conflicts with current resource or idempotency state.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"The request parameters or body are invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"The credential or organization rate limit was exceeded.","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"Limit for the blocking rate-limit policy.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests or concurrency slots remaining.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Unix time when the blocking policy resets.","schema":{"type":"integer"}},"X-RateLimit-Scope":{"description":"Credential or organization policy scope.","schema":{"type":"string"}},"X-RateLimit-Metric":{"description":"Requests or concurrent requests.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"The request failed unexpectedly.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"A required dependency is temporarily unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"AdminApiKey":[]}],"x-mint":{"metadata":{"sidebarTitle":"Get organization"}}}},"/v1/organization/projects":{"get":{"tags":["Administration"],"summary":"List projects in the organization","operationId":"listProjects","security":[{"AdminApiKey":[]}],"parameters":[{"name":"after","in":"query","required":false,"schema":{"anyOf":[{"type":"string","minLength":1,"maxLength":200},{"type":"null"}],"description":"ID of the last object from the prior page.","title":"After"},"description":"ID of the last object from the prior page."},{"name":"include_archived","in":"query","required":false,"schema":{"type":"boolean","description":"Include archived projects in the result.","default":false,"title":"Include Archived"},"description":"Include archived projects in the result."},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Maximum number of objects to return.","default":20,"title":"Limit"},"description":"Maximum number of objects to return."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdministrationProjectList"}}}},"400":{"description":"The request or cursor is invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"The Admin API key is missing, invalid, expired, or revoked.","headers":{"WWW-Authenticate":{"description":"Authentication scheme required by the endpoint.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The Admin API key lacks the required permission.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"The resource was not found in the credential's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"The request conflicts with current resource or idempotency state.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"The request parameters or body are invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"The credential or organization rate limit was exceeded.","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"Limit for the blocking rate-limit policy.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests or concurrency slots remaining.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Unix time when the blocking policy resets.","schema":{"type":"integer"}},"X-RateLimit-Scope":{"description":"Credential or organization policy scope.","schema":{"type":"string"}},"X-RateLimit-Metric":{"description":"Requests or concurrent requests.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"The request failed unexpectedly.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"A required dependency is temporarily unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-mint":{"metadata":{"sidebarTitle":"List projects"}}},"post":{"tags":["Administration"],"summary":"Create a project","operationId":"createProject","security":[{"AdminApiKey":[]}],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","minLength":8,"maxLength":200,"description":"Client-generated key used to safely retry this mutation.","title":"Idempotency-Key"},"description":"Client-generated key used to safely retry this mutation."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdministrationCreateProjectRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdministrationProject"}}}},"400":{"description":"The request or cursor is invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"The Admin API key is missing, invalid, expired, or revoked.","headers":{"WWW-Authenticate":{"description":"Authentication scheme required by the endpoint.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The Admin API key lacks the required permission.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"The resource was not found in the credential's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"The request conflicts with current resource or idempotency state.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"The request parameters or body are invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"The credential or organization rate limit was exceeded.","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"Limit for the blocking rate-limit policy.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests or concurrency slots remaining.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Unix time when the blocking policy resets.","schema":{"type":"integer"}},"X-RateLimit-Scope":{"description":"Credential or organization policy scope.","schema":{"type":"string"}},"X-RateLimit-Metric":{"description":"Requests or concurrent requests.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"The request failed unexpectedly.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"A required dependency is temporarily unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"413":{"description":"The request body exceeds the 64 KiB limit.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-mint":{"metadata":{"sidebarTitle":"Create project"}}}},"/v1/organization/projects/{project_id}":{"get":{"tags":["Administration"],"summary":"Retrieve a project","operationId":"retrieveProject","security":[{"AdminApiKey":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":200,"description":"Public project ID.","title":"Project Id"},"description":"Public project ID."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdministrationProject"}}}},"400":{"description":"The request or cursor is invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"The Admin API key is missing, invalid, expired, or revoked.","headers":{"WWW-Authenticate":{"description":"Authentication scheme required by the endpoint.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The Admin API key lacks the required permission.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"The resource was not found in the credential's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"The request conflicts with current resource or idempotency state.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"The request parameters or body are invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"The credential or organization rate limit was exceeded.","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"Limit for the blocking rate-limit policy.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests or concurrency slots remaining.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Unix time when the blocking policy resets.","schema":{"type":"integer"}},"X-RateLimit-Scope":{"description":"Credential or organization policy scope.","schema":{"type":"string"}},"X-RateLimit-Metric":{"description":"Requests or concurrent requests.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"The request failed unexpectedly.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"A required dependency is temporarily unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-mint":{"metadata":{"sidebarTitle":"Get project"}}},"post":{"tags":["Administration"],"summary":"Update a project","operationId":"updateProject","security":[{"AdminApiKey":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":200,"description":"Public project ID.","title":"Project Id"},"description":"Public project ID."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdministrationUpdateProjectRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdministrationProject"}}}},"400":{"description":"The request or cursor is invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"The Admin API key is missing, invalid, expired, or revoked.","headers":{"WWW-Authenticate":{"description":"Authentication scheme required by the endpoint.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The Admin API key lacks the required permission.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"The resource was not found in the credential's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"The request conflicts with current resource or idempotency state.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"The request parameters or body are invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"The credential or organization rate limit was exceeded.","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"Limit for the blocking rate-limit policy.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests or concurrency slots remaining.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Unix time when the blocking policy resets.","schema":{"type":"integer"}},"X-RateLimit-Scope":{"description":"Credential or organization policy scope.","schema":{"type":"string"}},"X-RateLimit-Metric":{"description":"Requests or concurrent requests.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"The request failed unexpectedly.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"A required dependency is temporarily unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"413":{"description":"The request body exceeds the 64 KiB limit.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-mint":{"metadata":{"sidebarTitle":"Update project"}}}},"/v1/organization/projects/{project_id}/archive":{"post":{"tags":["Administration"],"summary":"Archive a project","operationId":"archiveProject","security":[{"AdminApiKey":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":200,"description":"Public project ID.","title":"Project Id"},"description":"Public project ID."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdministrationProjectDeleted"}}}},"400":{"description":"The request or cursor is invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"The Admin API key is missing, invalid, expired, or revoked.","headers":{"WWW-Authenticate":{"description":"Authentication scheme required by the endpoint.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The Admin API key lacks the required permission.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"The resource was not found in the credential's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"The request conflicts with current resource or idempotency state.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"The request parameters or body are invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"The credential or organization rate limit was exceeded.","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"Limit for the blocking rate-limit policy.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests or concurrency slots remaining.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Unix time when the blocking policy resets.","schema":{"type":"integer"}},"X-RateLimit-Scope":{"description":"Credential or organization policy scope.","schema":{"type":"string"}},"X-RateLimit-Metric":{"description":"Requests or concurrent requests.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"The request failed unexpectedly.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"A required dependency is temporarily unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-mint":{"metadata":{"sidebarTitle":"Archive project"}}}},"/v1/organization/policies":{"get":{"tags":["Administration"],"summary":"List policies in the organization","operationId":"listPolicies","security":[{"AdminApiKey":[]}],"parameters":[{"name":"after","in":"query","required":false,"schema":{"anyOf":[{"type":"string","minLength":1,"maxLength":200},{"type":"null"}],"description":"ID of the last object from the prior page.","title":"After"},"description":"ID of the last object from the prior page."},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Maximum number of objects to return.","default":20,"title":"Limit"},"description":"Maximum number of objects to return."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdministrationPolicyList"}}}},"400":{"description":"The request or cursor is invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"The Admin API key is missing, invalid, expired, or revoked.","headers":{"WWW-Authenticate":{"description":"Authentication scheme required by the endpoint.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The Admin API key lacks the required permission.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"The resource was not found in the credential's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"The request conflicts with current resource or idempotency state.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"The request parameters or body are invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"The credential or organization rate limit was exceeded.","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"Limit for the blocking rate-limit policy.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests or concurrency slots remaining.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Unix time when the blocking policy resets.","schema":{"type":"integer"}},"X-RateLimit-Scope":{"description":"Credential or organization policy scope.","schema":{"type":"string"}},"X-RateLimit-Metric":{"description":"Requests or concurrent requests.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"The request failed unexpectedly.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"A required dependency is temporarily unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-mint":{"metadata":{"sidebarTitle":"List policies"}}},"post":{"tags":["Administration"],"summary":"Create a policy draft","operationId":"createPolicy","security":[{"AdminApiKey":[]}],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","minLength":8,"maxLength":200,"description":"Client-generated key used to safely retry this mutation.","title":"Idempotency-Key"},"description":"Client-generated key used to safely retry this mutation."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdministrationCreatePolicyRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdministrationPolicy"}}}},"400":{"description":"The request or cursor is invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"The Admin API key is missing, invalid, expired, or revoked.","headers":{"WWW-Authenticate":{"description":"Authentication scheme required by the endpoint.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The Admin API key lacks the required permission.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"The resource was not found in the credential's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"The request conflicts with current resource or idempotency state.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"The request parameters or body are invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"The credential or organization rate limit was exceeded.","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"Limit for the blocking rate-limit policy.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests or concurrency slots remaining.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Unix time when the blocking policy resets.","schema":{"type":"integer"}},"X-RateLimit-Scope":{"description":"Credential or organization policy scope.","schema":{"type":"string"}},"X-RateLimit-Metric":{"description":"Requests or concurrent requests.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"The request failed unexpectedly.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"A required dependency is temporarily unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"413":{"description":"The request body exceeds the 64 KiB limit.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-mint":{"metadata":{"sidebarTitle":"Create policy"}}}},"/v1/organization/policies/{policy_id}":{"get":{"tags":["Administration"],"summary":"Retrieve a policy","operationId":"retrievePolicy","security":[{"AdminApiKey":[]}],"parameters":[{"name":"policy_id","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":200,"description":"Public policy ID.","title":"Policy Id"},"description":"Public policy ID."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdministrationPolicy"}}}},"400":{"description":"The request or cursor is invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"The Admin API key is missing, invalid, expired, or revoked.","headers":{"WWW-Authenticate":{"description":"Authentication scheme required by the endpoint.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The Admin API key lacks the required permission.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"The resource was not found in the credential's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"The request conflicts with current resource or idempotency state.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"The request parameters or body are invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"The credential or organization rate limit was exceeded.","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"Limit for the blocking rate-limit policy.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests or concurrency slots remaining.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Unix time when the blocking policy resets.","schema":{"type":"integer"}},"X-RateLimit-Scope":{"description":"Credential or organization policy scope.","schema":{"type":"string"}},"X-RateLimit-Metric":{"description":"Requests or concurrent requests.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"The request failed unexpectedly.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"A required dependency is temporarily unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-mint":{"metadata":{"sidebarTitle":"Get policy"}}},"patch":{"tags":["Administration"],"summary":"Update a policy draft","operationId":"updatePolicy","security":[{"AdminApiKey":[]}],"parameters":[{"name":"policy_id","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":200,"description":"Public policy ID.","title":"Policy Id"},"description":"Public policy ID."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdministrationUpdatePolicyRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdministrationPolicy"}}}},"400":{"description":"The request or cursor is invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"The Admin API key is missing, invalid, expired, or revoked.","headers":{"WWW-Authenticate":{"description":"Authentication scheme required by the endpoint.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The Admin API key lacks the required permission.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"The resource was not found in the credential's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"The request conflicts with current resource or idempotency state.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"The request parameters or body are invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"The credential or organization rate limit was exceeded.","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"Limit for the blocking rate-limit policy.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests or concurrency slots remaining.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Unix time when the blocking policy resets.","schema":{"type":"integer"}},"X-RateLimit-Scope":{"description":"Credential or organization policy scope.","schema":{"type":"string"}},"X-RateLimit-Metric":{"description":"Requests or concurrent requests.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"The request failed unexpectedly.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"A required dependency is temporarily unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"413":{"description":"The request body exceeds the 64 KiB limit.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-mint":{"metadata":{"sidebarTitle":"Update policy"}}},"delete":{"tags":["Administration"],"summary":"Delete a policy","operationId":"deletePolicy","security":[{"AdminApiKey":[]}],"parameters":[{"name":"policy_id","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":200,"description":"Public policy ID.","title":"Policy Id"},"description":"Public policy ID."},{"name":"revision","in":"query","required":true,"schema":{"type":"integer","maximum":2147483647,"minimum":1,"description":"Current policy revision.","title":"Revision"},"description":"Current policy revision."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdministrationPolicyDeleted"}}}},"400":{"description":"The request or cursor is invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"The Admin API key is missing, invalid, expired, or revoked.","headers":{"WWW-Authenticate":{"description":"Authentication scheme required by the endpoint.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The Admin API key lacks the required permission.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"The resource was not found in the credential's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"The request conflicts with current resource or idempotency state.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"The request parameters or body are invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"The credential or organization rate limit was exceeded.","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"Limit for the blocking rate-limit policy.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests or concurrency slots remaining.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Unix time when the blocking policy resets.","schema":{"type":"integer"}},"X-RateLimit-Scope":{"description":"Credential or organization policy scope.","schema":{"type":"string"}},"X-RateLimit-Metric":{"description":"Requests or concurrent requests.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"The request failed unexpectedly.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"A required dependency is temporarily unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-mint":{"metadata":{"sidebarTitle":"Delete policy"}}}},"/v1/organization/policies/{policy_id}/publish":{"post":{"tags":["Administration"],"summary":"Publish a policy draft","operationId":"publishPolicy","security":[{"AdminApiKey":[]}],"parameters":[{"name":"policy_id","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":200,"description":"Public policy ID.","title":"Policy Id"},"description":"Public policy ID."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdministrationPolicyActionRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdministrationPolicy"}}}},"400":{"description":"The request or cursor is invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"The Admin API key is missing, invalid, expired, or revoked.","headers":{"WWW-Authenticate":{"description":"Authentication scheme required by the endpoint.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The Admin API key lacks the required permission.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"The resource was not found in the credential's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"The request conflicts with current resource or idempotency state.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"The request parameters or body are invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"The credential or organization rate limit was exceeded.","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"Limit for the blocking rate-limit policy.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests or concurrency slots remaining.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Unix time when the blocking policy resets.","schema":{"type":"integer"}},"X-RateLimit-Scope":{"description":"Credential or organization policy scope.","schema":{"type":"string"}},"X-RateLimit-Metric":{"description":"Requests or concurrent requests.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"The request failed unexpectedly.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"A required dependency is temporarily unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"413":{"description":"The request body exceeds the 64 KiB limit.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-mint":{"metadata":{"sidebarTitle":"Publish policy"}}}},"/v1/organization/policies/{policy_id}/pause":{"post":{"tags":["Administration"],"summary":"Pause a policy","operationId":"pausePolicy","security":[{"AdminApiKey":[]}],"parameters":[{"name":"policy_id","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":200,"description":"Public policy ID.","title":"Policy Id"},"description":"Public policy ID."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdministrationPolicyActionRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdministrationPolicy"}}}},"400":{"description":"The request or cursor is invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"The Admin API key is missing, invalid, expired, or revoked.","headers":{"WWW-Authenticate":{"description":"Authentication scheme required by the endpoint.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The Admin API key lacks the required permission.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"The resource was not found in the credential's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"The request conflicts with current resource or idempotency state.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"The request parameters or body are invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"The credential or organization rate limit was exceeded.","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"Limit for the blocking rate-limit policy.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests or concurrency slots remaining.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Unix time when the blocking policy resets.","schema":{"type":"integer"}},"X-RateLimit-Scope":{"description":"Credential or organization policy scope.","schema":{"type":"string"}},"X-RateLimit-Metric":{"description":"Requests or concurrent requests.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"The request failed unexpectedly.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"A required dependency is temporarily unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"413":{"description":"The request body exceeds the 64 KiB limit.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-mint":{"metadata":{"sidebarTitle":"Pause policy"}}}},"/v1/organization/policies/{policy_id}/resume":{"post":{"tags":["Administration"],"summary":"Resume a policy","operationId":"resumePolicy","security":[{"AdminApiKey":[]}],"parameters":[{"name":"policy_id","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":200,"description":"Public policy ID.","title":"Policy Id"},"description":"Public policy ID."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdministrationPolicyActionRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdministrationPolicy"}}}},"400":{"description":"The request or cursor is invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"The Admin API key is missing, invalid, expired, or revoked.","headers":{"WWW-Authenticate":{"description":"Authentication scheme required by the endpoint.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The Admin API key lacks the required permission.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"The resource was not found in the credential's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"The request conflicts with current resource or idempotency state.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"The request parameters or body are invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"The credential or organization rate limit was exceeded.","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"Limit for the blocking rate-limit policy.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests or concurrency slots remaining.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Unix time when the blocking policy resets.","schema":{"type":"integer"}},"X-RateLimit-Scope":{"description":"Credential or organization policy scope.","schema":{"type":"string"}},"X-RateLimit-Metric":{"description":"Requests or concurrent requests.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"The request failed unexpectedly.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"A required dependency is temporarily unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"413":{"description":"The request body exceeds the 64 KiB limit.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-mint":{"metadata":{"sidebarTitle":"Resume policy"}}}},"/v1/organization/policies/{policy_id}/versions":{"get":{"tags":["Administration"],"summary":"List published policy versions","operationId":"listPolicyVersions","security":[{"AdminApiKey":[]}],"parameters":[{"name":"policy_id","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":200,"description":"Public policy ID.","title":"Policy Id"},"description":"Public policy ID."},{"name":"after","in":"query","required":false,"schema":{"anyOf":[{"type":"string","minLength":1,"maxLength":200},{"type":"null"}],"description":"ID of the last object from the prior page.","title":"After"},"description":"ID of the last object from the prior page."},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Maximum number of objects to return.","default":20,"title":"Limit"},"description":"Maximum number of objects to return."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdministrationPolicyVersionList"}}}},"400":{"description":"The request or cursor is invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"The Admin API key is missing, invalid, expired, or revoked.","headers":{"WWW-Authenticate":{"description":"Authentication scheme required by the endpoint.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The Admin API key lacks the required permission.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"The resource was not found in the credential's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"The request conflicts with current resource or idempotency state.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"The request parameters or body are invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"The credential or organization rate limit was exceeded.","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"Limit for the blocking rate-limit policy.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests or concurrency slots remaining.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Unix time when the blocking policy resets.","schema":{"type":"integer"}},"X-RateLimit-Scope":{"description":"Credential or organization policy scope.","schema":{"type":"string"}},"X-RateLimit-Metric":{"description":"Requests or concurrent requests.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"The request failed unexpectedly.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"A required dependency is temporarily unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-mint":{"metadata":{"sidebarTitle":"List versions"}}}},"/v1/organization/policies/{policy_id}/versions/{version}":{"get":{"tags":["Administration"],"summary":"Retrieve a published policy version","operationId":"retrievePolicyVersion","security":[{"AdminApiKey":[]}],"parameters":[{"name":"policy_id","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":200,"description":"Public policy ID.","title":"Policy Id"},"description":"Public policy ID."},{"name":"version","in":"path","required":true,"schema":{"type":"integer","maximum":2147483647,"minimum":1,"description":"Published policy version number.","title":"Version"},"description":"Published policy version number."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdministrationPolicyVersion"}}}},"400":{"description":"The request or cursor is invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"The Admin API key is missing, invalid, expired, or revoked.","headers":{"WWW-Authenticate":{"description":"Authentication scheme required by the endpoint.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The Admin API key lacks the required permission.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"The resource was not found in the credential's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"The request conflicts with current resource or idempotency state.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"The request parameters or body are invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"The credential or organization rate limit was exceeded.","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"Limit for the blocking rate-limit policy.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests or concurrency slots remaining.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Unix time when the blocking policy resets.","schema":{"type":"integer"}},"X-RateLimit-Scope":{"description":"Credential or organization policy scope.","schema":{"type":"string"}},"X-RateLimit-Metric":{"description":"Requests or concurrent requests.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"The request failed unexpectedly.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"A required dependency is temporarily unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-mint":{"metadata":{"sidebarTitle":"Get version"}}}},"/v1/organization/projects/{project_id}/effective_policies":{"get":{"tags":["Administration"],"summary":"List active policies for a project","operationId":"listEffectivePolicies","security":[{"AdminApiKey":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":200,"description":"Public project ID.","title":"Project Id"},"description":"Public project ID."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdministrationEffectivePolicyList"}}}},"400":{"description":"The request or cursor is invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"The Admin API key is missing, invalid, expired, or revoked.","headers":{"WWW-Authenticate":{"description":"Authentication scheme required by the endpoint.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The Admin API key lacks the required permission.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"The resource was not found in the credential's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"The request conflicts with current resource or idempotency state.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"The request parameters or body are invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"The credential or organization rate limit was exceeded.","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"Limit for the blocking rate-limit policy.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests or concurrency slots remaining.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Unix time when the blocking policy resets.","schema":{"type":"integer"}},"X-RateLimit-Scope":{"description":"Credential or organization policy scope.","schema":{"type":"string"}},"X-RateLimit-Metric":{"description":"Requests or concurrent requests.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"The request failed unexpectedly.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"A required dependency is temporarily unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-mint":{"metadata":{"sidebarTitle":"List effective policies"}}}},"/v1/organization/projects/{project_id}/api_keys":{"get":{"tags":["Administration"],"summary":"List API keys for a project","operationId":"listProjectApiKeys","security":[{"AdminApiKey":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":200,"description":"Public project ID.","title":"Project Id"},"description":"Public project ID."},{"name":"after","in":"query","required":false,"schema":{"anyOf":[{"type":"string","minLength":1,"maxLength":200},{"type":"null"}],"description":"ID of the last object from the prior page.","title":"After"},"description":"ID of the last object from the prior page."},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Maximum number of objects to return.","default":20,"title":"Limit"},"description":"Maximum number of objects to return."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdministrationProjectApiKeyList"}}}},"400":{"description":"The request or cursor is invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"The Admin API key is missing, invalid, expired, or revoked.","headers":{"WWW-Authenticate":{"description":"Authentication scheme required by the endpoint.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The Admin API key lacks the required permission.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"The resource was not found in the credential's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"The request conflicts with current resource or idempotency state.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"The request parameters or body are invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"The credential or organization rate limit was exceeded.","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"Limit for the blocking rate-limit policy.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests or concurrency slots remaining.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Unix time when the blocking policy resets.","schema":{"type":"integer"}},"X-RateLimit-Scope":{"description":"Credential or organization policy scope.","schema":{"type":"string"}},"X-RateLimit-Metric":{"description":"Requests or concurrent requests.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"The request failed unexpectedly.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"A required dependency is temporarily unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-mint":{"metadata":{"sidebarTitle":"List project keys"}}},"post":{"tags":["Administration"],"summary":"Create a project API key","operationId":"createProjectApiKey","security":[{"AdminApiKey":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":200,"description":"Public project ID.","title":"Project Id"},"description":"Public project ID."},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","minLength":8,"maxLength":200,"description":"Client-generated key used to safely retry this mutation.","title":"Idempotency-Key"},"description":"Client-generated key used to safely retry this mutation."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdministrationCreateProjectApiKeyRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdministrationCreatedProjectApiKey"}}}},"400":{"description":"The request or cursor is invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"The Admin API key is missing, invalid, expired, or revoked.","headers":{"WWW-Authenticate":{"description":"Authentication scheme required by the endpoint.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The Admin API key lacks the required permission.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"The resource was not found in the credential's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"The request conflicts with current resource or idempotency state.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"The request parameters or body are invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"The credential or organization rate limit was exceeded.","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"Limit for the blocking rate-limit policy.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests or concurrency slots remaining.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Unix time when the blocking policy resets.","schema":{"type":"integer"}},"X-RateLimit-Scope":{"description":"Credential or organization policy scope.","schema":{"type":"string"}},"X-RateLimit-Metric":{"description":"Requests or concurrent requests.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"The request failed unexpectedly.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"A required dependency is temporarily unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"413":{"description":"The request body exceeds the 64 KiB limit.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-mint":{"metadata":{"sidebarTitle":"Create project key"}}}},"/v1/organization/projects/{project_id}/api_keys/{api_key_id}":{"get":{"tags":["Administration"],"summary":"Retrieve a project API key","operationId":"retrieveProjectApiKey","security":[{"AdminApiKey":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":200,"description":"Public project ID.","title":"Project Id"},"description":"Public project ID."},{"name":"api_key_id","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":200,"description":"Public API key ID.","title":"Api Key Id"},"description":"Public API key ID."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdministrationProjectApiKey"}}}},"400":{"description":"The request or cursor is invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"The Admin API key is missing, invalid, expired, or revoked.","headers":{"WWW-Authenticate":{"description":"Authentication scheme required by the endpoint.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The Admin API key lacks the required permission.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"The resource was not found in the credential's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"The request conflicts with current resource or idempotency state.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"The request parameters or body are invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"The credential or organization rate limit was exceeded.","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"Limit for the blocking rate-limit policy.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests or concurrency slots remaining.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Unix time when the blocking policy resets.","schema":{"type":"integer"}},"X-RateLimit-Scope":{"description":"Credential or organization policy scope.","schema":{"type":"string"}},"X-RateLimit-Metric":{"description":"Requests or concurrent requests.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"The request failed unexpectedly.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"A required dependency is temporarily unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-mint":{"metadata":{"sidebarTitle":"Get project key"}}},"delete":{"tags":["Administration"],"summary":"Revoke a project API key","operationId":"deleteProjectApiKey","security":[{"AdminApiKey":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":200,"description":"Public project ID.","title":"Project Id"},"description":"Public project ID."},{"name":"api_key_id","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":200,"description":"Public API key ID.","title":"Api Key Id"},"description":"Public API key ID."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdministrationProjectApiKeyDeleted"}}}},"400":{"description":"The request or cursor is invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"The Admin API key is missing, invalid, expired, or revoked.","headers":{"WWW-Authenticate":{"description":"Authentication scheme required by the endpoint.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The Admin API key lacks the required permission.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"The resource was not found in the credential's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"The request conflicts with current resource or idempotency state.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"The request parameters or body are invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"The credential or organization rate limit was exceeded.","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"Limit for the blocking rate-limit policy.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests or concurrency slots remaining.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Unix time when the blocking policy resets.","schema":{"type":"integer"}},"X-RateLimit-Scope":{"description":"Credential or organization policy scope.","schema":{"type":"string"}},"X-RateLimit-Metric":{"description":"Requests or concurrent requests.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"The request failed unexpectedly.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"A required dependency is temporarily unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-mint":{"metadata":{"sidebarTitle":"Revoke project key"}}}},"/v1/organization/admin_api_keys":{"get":{"tags":["Administration"],"summary":"List Admin API keys","operationId":"listAdminApiKeys","security":[{"AdminApiKey":[]}],"parameters":[{"name":"after","in":"query","required":false,"schema":{"anyOf":[{"type":"string","minLength":1,"maxLength":200},{"type":"null"}],"description":"ID of the last object from the prior page.","title":"After"},"description":"ID of the last object from the prior page."},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Maximum number of objects to return.","default":20,"title":"Limit"},"description":"Maximum number of objects to return."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdministrationAdminApiKeyList"}}}},"400":{"description":"The request or cursor is invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"The Admin API key is missing, invalid, expired, or revoked.","headers":{"WWW-Authenticate":{"description":"Authentication scheme required by the endpoint.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The Admin API key lacks the required permission.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"The resource was not found in the credential's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"The request conflicts with current resource or idempotency state.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"The request parameters or body are invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"The credential or organization rate limit was exceeded.","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"Limit for the blocking rate-limit policy.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests or concurrency slots remaining.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Unix time when the blocking policy resets.","schema":{"type":"integer"}},"X-RateLimit-Scope":{"description":"Credential or organization policy scope.","schema":{"type":"string"}},"X-RateLimit-Metric":{"description":"Requests or concurrent requests.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"The request failed unexpectedly.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"A required dependency is temporarily unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-mint":{"metadata":{"sidebarTitle":"List Admin keys"}}},"post":{"tags":["Administration"],"summary":"Create an Admin API key","operationId":"createAdminApiKey","security":[{"AdminApiKey":[]}],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","minLength":8,"maxLength":200,"description":"Client-generated key used to safely retry this mutation.","title":"Idempotency-Key"},"description":"Client-generated key used to safely retry this mutation."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdministrationCreateAdminApiKeyRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdministrationCreatedAdminApiKey"}}}},"400":{"description":"The request or cursor is invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"The Admin API key is missing, invalid, expired, or revoked.","headers":{"WWW-Authenticate":{"description":"Authentication scheme required by the endpoint.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The Admin API key lacks the required permission.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"The resource was not found in the credential's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"The request conflicts with current resource or idempotency state.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"The request parameters or body are invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"The credential or organization rate limit was exceeded.","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"Limit for the blocking rate-limit policy.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests or concurrency slots remaining.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Unix time when the blocking policy resets.","schema":{"type":"integer"}},"X-RateLimit-Scope":{"description":"Credential or organization policy scope.","schema":{"type":"string"}},"X-RateLimit-Metric":{"description":"Requests or concurrent requests.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"The request failed unexpectedly.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"A required dependency is temporarily unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"413":{"description":"The request body exceeds the 64 KiB limit.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-mint":{"metadata":{"sidebarTitle":"Create Admin key"}}}},"/v1/organization/admin_api_keys/{api_key_id}":{"get":{"tags":["Administration"],"summary":"Retrieve an Admin API key","operationId":"retrieveAdminApiKey","security":[{"AdminApiKey":[]}],"parameters":[{"name":"api_key_id","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":200,"description":"Public API key ID.","title":"Api Key Id"},"description":"Public API key ID."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdministrationAdminApiKey"}}}},"400":{"description":"The request or cursor is invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"The Admin API key is missing, invalid, expired, or revoked.","headers":{"WWW-Authenticate":{"description":"Authentication scheme required by the endpoint.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The Admin API key lacks the required permission.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"The resource was not found in the credential's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"The request conflicts with current resource or idempotency state.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"The request parameters or body are invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"The credential or organization rate limit was exceeded.","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"Limit for the blocking rate-limit policy.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests or concurrency slots remaining.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Unix time when the blocking policy resets.","schema":{"type":"integer"}},"X-RateLimit-Scope":{"description":"Credential or organization policy scope.","schema":{"type":"string"}},"X-RateLimit-Metric":{"description":"Requests or concurrent requests.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"The request failed unexpectedly.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"A required dependency is temporarily unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-mint":{"metadata":{"sidebarTitle":"Get Admin key"}}},"delete":{"tags":["Administration"],"summary":"Revoke an Admin API key","operationId":"deleteAdminApiKey","security":[{"AdminApiKey":[]}],"parameters":[{"name":"api_key_id","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":200,"description":"Public API key ID.","title":"Api Key Id"},"description":"Public API key ID."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdministrationAdminApiKeyDeleted"}}}},"400":{"description":"The request or cursor is invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"The Admin API key is missing, invalid, expired, or revoked.","headers":{"WWW-Authenticate":{"description":"Authentication scheme required by the endpoint.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The Admin API key lacks the required permission.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"The resource was not found in the credential's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"The request conflicts with current resource or idempotency state.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"The request parameters or body are invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"The credential or organization rate limit was exceeded.","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"Limit for the blocking rate-limit policy.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests or concurrency slots remaining.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Unix time when the blocking policy resets.","schema":{"type":"integer"}},"X-RateLimit-Scope":{"description":"Credential or organization policy scope.","schema":{"type":"string"}},"X-RateLimit-Metric":{"description":"Requests or concurrent requests.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"The request failed unexpectedly.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"A required dependency is temporarily unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-mint":{"metadata":{"sidebarTitle":"Revoke Admin key"}}}},"/v1/organization/spend_limit":{"get":{"tags":["Administration"],"summary":"Retrieve the organization spend limit","operationId":"retrieveOrganizationSpendLimit","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdministrationSpendLimit"}}}},"400":{"description":"The request or cursor is invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"The Admin API key is missing, invalid, expired, or revoked.","headers":{"WWW-Authenticate":{"description":"Authentication scheme required by the endpoint.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The Admin API key lacks the required permission.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"The resource was not found in the credential's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"The request conflicts with current resource or idempotency state.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"The request parameters or body are invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"The credential or organization rate limit was exceeded.","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"Limit for the blocking rate-limit policy.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests or concurrency slots remaining.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Unix time when the blocking policy resets.","schema":{"type":"integer"}},"X-RateLimit-Scope":{"description":"Credential or organization policy scope.","schema":{"type":"string"}},"X-RateLimit-Metric":{"description":"Requests or concurrent requests.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"The request failed unexpectedly.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"A required dependency is temporarily unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"AdminApiKey":[]}],"x-mint":{"metadata":{"sidebarTitle":"Get organization limit"}}},"post":{"tags":["Administration"],"summary":"Set the organization spend limit","operationId":"updateOrganizationSpendLimit","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdministrationSetSpendLimitRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdministrationSpendLimit"}}}},"400":{"description":"The request or cursor is invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"The Admin API key is missing, invalid, expired, or revoked.","headers":{"WWW-Authenticate":{"description":"Authentication scheme required by the endpoint.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The Admin API key lacks the required permission.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"The resource was not found in the credential's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"The request conflicts with current resource or idempotency state.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"The request parameters or body are invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"The credential or organization rate limit was exceeded.","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"Limit for the blocking rate-limit policy.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests or concurrency slots remaining.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Unix time when the blocking policy resets.","schema":{"type":"integer"}},"X-RateLimit-Scope":{"description":"Credential or organization policy scope.","schema":{"type":"string"}},"X-RateLimit-Metric":{"description":"Requests or concurrent requests.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"The request failed unexpectedly.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"A required dependency is temporarily unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"413":{"description":"The request body exceeds the 64 KiB limit.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"AdminApiKey":[]}],"x-mint":{"metadata":{"sidebarTitle":"Set organization limit"}}},"delete":{"tags":["Administration"],"summary":"Delete the organization spend limit","operationId":"deleteOrganizationSpendLimit","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdministrationSpendLimitDeleted"}}}},"400":{"description":"The request or cursor is invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"The Admin API key is missing, invalid, expired, or revoked.","headers":{"WWW-Authenticate":{"description":"Authentication scheme required by the endpoint.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The Admin API key lacks the required permission.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"The resource was not found in the credential's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"The request conflicts with current resource or idempotency state.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"The request parameters or body are invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"The credential or organization rate limit was exceeded.","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"Limit for the blocking rate-limit policy.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests or concurrency slots remaining.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Unix time when the blocking policy resets.","schema":{"type":"integer"}},"X-RateLimit-Scope":{"description":"Credential or organization policy scope.","schema":{"type":"string"}},"X-RateLimit-Metric":{"description":"Requests or concurrent requests.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"The request failed unexpectedly.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"A required dependency is temporarily unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"AdminApiKey":[]}],"x-mint":{"metadata":{"sidebarTitle":"Delete organization limit"}}}},"/v1/organization/projects/{project_id}/spend_limit":{"get":{"tags":["Administration"],"summary":"Retrieve a project spend limit","operationId":"retrieveProjectSpendLimit","security":[{"AdminApiKey":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":200,"description":"Public project ID.","title":"Project Id"},"description":"Public project ID."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdministrationSpendLimit"}}}},"400":{"description":"The request or cursor is invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"The Admin API key is missing, invalid, expired, or revoked.","headers":{"WWW-Authenticate":{"description":"Authentication scheme required by the endpoint.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The Admin API key lacks the required permission.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"The resource was not found in the credential's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"The request conflicts with current resource or idempotency state.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"The request parameters or body are invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"The credential or organization rate limit was exceeded.","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"Limit for the blocking rate-limit policy.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests or concurrency slots remaining.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Unix time when the blocking policy resets.","schema":{"type":"integer"}},"X-RateLimit-Scope":{"description":"Credential or organization policy scope.","schema":{"type":"string"}},"X-RateLimit-Metric":{"description":"Requests or concurrent requests.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"The request failed unexpectedly.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"A required dependency is temporarily unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-mint":{"metadata":{"sidebarTitle":"Get project limit"}}},"post":{"tags":["Administration"],"summary":"Set a project spend limit","operationId":"updateProjectSpendLimit","security":[{"AdminApiKey":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":200,"description":"Public project ID.","title":"Project Id"},"description":"Public project ID."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdministrationSetSpendLimitRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdministrationSpendLimit"}}}},"400":{"description":"The request or cursor is invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"The Admin API key is missing, invalid, expired, or revoked.","headers":{"WWW-Authenticate":{"description":"Authentication scheme required by the endpoint.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The Admin API key lacks the required permission.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"The resource was not found in the credential's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"The request conflicts with current resource or idempotency state.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"The request parameters or body are invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"The credential or organization rate limit was exceeded.","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"Limit for the blocking rate-limit policy.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests or concurrency slots remaining.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Unix time when the blocking policy resets.","schema":{"type":"integer"}},"X-RateLimit-Scope":{"description":"Credential or organization policy scope.","schema":{"type":"string"}},"X-RateLimit-Metric":{"description":"Requests or concurrent requests.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"The request failed unexpectedly.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"A required dependency is temporarily unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"413":{"description":"The request body exceeds the 64 KiB limit.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-mint":{"metadata":{"sidebarTitle":"Set project limit"}}},"delete":{"tags":["Administration"],"summary":"Delete a project spend limit","operationId":"deleteProjectSpendLimit","security":[{"AdminApiKey":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":200,"description":"Public project ID.","title":"Project Id"},"description":"Public project ID."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdministrationSpendLimitDeleted"}}}},"400":{"description":"The request or cursor is invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"The Admin API key is missing, invalid, expired, or revoked.","headers":{"WWW-Authenticate":{"description":"Authentication scheme required by the endpoint.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The Admin API key lacks the required permission.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"The resource was not found in the credential's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"The request conflicts with current resource or idempotency state.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"The request parameters or body are invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"The credential or organization rate limit was exceeded.","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"Limit for the blocking rate-limit policy.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests or concurrency slots remaining.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Unix time when the blocking policy resets.","schema":{"type":"integer"}},"X-RateLimit-Scope":{"description":"Credential or organization policy scope.","schema":{"type":"string"}},"X-RateLimit-Metric":{"description":"Requests or concurrent requests.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"The request failed unexpectedly.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"A required dependency is temporarily unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-mint":{"metadata":{"sidebarTitle":"Delete project limit"}}}},"/v1/organization/usage/completions":{"get":{"tags":["Administration"],"summary":"Retrieve organization completion usage","operationId":"retrieveOrganizationUsageCompletions","security":[{"AdminApiKey":[]}],"parameters":[{"name":"start_time","in":"query","required":true,"schema":{"type":"integer","minimum":0,"description":"Start of the reporting window as Unix seconds.","title":"Start Time"},"description":"Start of the reporting window as Unix seconds."},{"name":"end_time","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","minimum":0},{"type":"null"}],"description":"End of the reporting window as Unix seconds.","title":"End Time"},"description":"End of the reporting window as Unix seconds."},{"name":"bucket_width","in":"query","required":false,"schema":{"enum":["1m","1h","1d"],"type":"string","description":"Width of each usage bucket.","default":"1d","title":"Bucket Width"},"description":"Width of each usage bucket."},{"name":"project_ids","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"},"maxItems":100},{"type":"null"}],"description":"Public project IDs to include.","title":"Project Ids"},"description":"Public project IDs to include."},{"name":"api_key_ids","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"},"maxItems":100},{"type":"null"}],"description":"Public API key IDs to include.","title":"Api Key Ids"},"description":"Public API key IDs to include."},{"name":"models","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"},"maxItems":100},{"type":"null"}],"description":"Model names to include.","title":"Models"},"description":"Model names to include."},{"name":"group_by","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"},"maxItems":3},{"type":"null"}],"description":"Dimensions to group within each bucket.","title":"Group By"},"description":"Dimensions to group within each bucket."},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":1440,"minimum":1,"description":"Maximum number of usage buckets to return.","default":7,"title":"Limit"},"description":"Maximum number of usage buckets to return."},{"name":"page","in":"query","required":false,"schema":{"anyOf":[{"type":"string","minLength":1,"maxLength":500},{"type":"null"}],"description":"Opaque page cursor.","title":"Page"},"description":"Opaque page cursor."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdministrationUsagePage"}}}},"400":{"description":"The request or cursor is invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"The Admin API key is missing, invalid, expired, or revoked.","headers":{"WWW-Authenticate":{"description":"Authentication scheme required by the endpoint.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The Admin API key lacks the required permission.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"The resource was not found in the credential's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"The request conflicts with current resource or idempotency state.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"The request parameters or body are invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"The credential or organization rate limit was exceeded.","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"Limit for the blocking rate-limit policy.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests or concurrency slots remaining.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Unix time when the blocking policy resets.","schema":{"type":"integer"}},"X-RateLimit-Scope":{"description":"Credential or organization policy scope.","schema":{"type":"string"}},"X-RateLimit-Metric":{"description":"Requests or concurrent requests.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"The request failed unexpectedly.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"A required dependency is temporarily unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-mint":{"metadata":{"sidebarTitle":"Get usage"}}}},"/v1/organization/costs":{"get":{"tags":["Administration"],"summary":"Retrieve organization costs","operationId":"retrieveOrganizationCosts","security":[{"AdminApiKey":[]}],"parameters":[{"name":"start_time","in":"query","required":true,"schema":{"type":"integer","minimum":0,"description":"Start of the reporting window as Unix seconds.","title":"Start Time"},"description":"Start of the reporting window as Unix seconds."},{"name":"end_time","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","minimum":0},{"type":"null"}],"description":"End of the reporting window as Unix seconds.","title":"End Time"},"description":"End of the reporting window as Unix seconds."},{"name":"project_ids","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"},"maxItems":100},{"type":"null"}],"description":"Public project IDs to include.","title":"Project Ids"},"description":"Public project IDs to include."},{"name":"api_key_ids","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"},"maxItems":100},{"type":"null"}],"description":"Public API key IDs to include.","title":"Api Key Ids"},"description":"Public API key IDs to include."},{"name":"group_by","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"},"maxItems":3},{"type":"null"}],"description":"Dimensions to group within each bucket.","title":"Group By"},"description":"Dimensions to group within each bucket."},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":180,"minimum":1,"description":"Maximum number of daily cost buckets to return.","default":7,"title":"Limit"},"description":"Maximum number of daily cost buckets to return."},{"name":"page","in":"query","required":false,"schema":{"anyOf":[{"type":"string","minLength":1,"maxLength":500},{"type":"null"}],"description":"Opaque page cursor.","title":"Page"},"description":"Opaque page cursor."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdministrationCostPage"}}}},"400":{"description":"The request or cursor is invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"The Admin API key is missing, invalid, expired, or revoked.","headers":{"WWW-Authenticate":{"description":"Authentication scheme required by the endpoint.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The Admin API key lacks the required permission.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"The resource was not found in the credential's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"The request conflicts with current resource or idempotency state.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"The request parameters or body are invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"The credential or organization rate limit was exceeded.","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"Limit for the blocking rate-limit policy.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests or concurrency slots remaining.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Unix time when the blocking policy resets.","schema":{"type":"integer"}},"X-RateLimit-Scope":{"description":"Credential or organization policy scope.","schema":{"type":"string"}},"X-RateLimit-Metric":{"description":"Requests or concurrent requests.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"The request failed unexpectedly.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"A required dependency is temporarily unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-mint":{"metadata":{"sidebarTitle":"Get costs"}}}},"/v1/organization/balance":{"get":{"tags":["Administration"],"summary":"Retrieve the organization's prepaid balance","operationId":"retrieveOrganizationBalance","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdministrationBalance"}}}},"400":{"description":"The request or cursor is invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"The Admin API key is missing, invalid, expired, or revoked.","headers":{"WWW-Authenticate":{"description":"Authentication scheme required by the endpoint.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The Admin API key lacks the required permission.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"The resource was not found in the credential's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"The request conflicts with current resource or idempotency state.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"The request parameters or body are invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"The credential or organization rate limit was exceeded.","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"Limit for the blocking rate-limit policy.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests or concurrency slots remaining.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Unix time when the blocking policy resets.","schema":{"type":"integer"}},"X-RateLimit-Scope":{"description":"Credential or organization policy scope.","schema":{"type":"string"}},"X-RateLimit-Metric":{"description":"Requests or concurrent requests.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"The request failed unexpectedly.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"A required dependency is temporarily unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"AdminApiKey":[]}],"x-mint":{"metadata":{"sidebarTitle":"Get balance"}}}},"/v1/credits":{"get":{"tags":["Credits"],"summary":"Get the credit balance for the API key's organization","operationId":"getCredits","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Bearer API key.","title":"Authorization"},"description":"Bearer API key."},{"name":"x-api-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"API key alternative for Anthropic-compatible clients. Authorization takes precedence when both headers are present.","title":"X-Api-Key"},"description":"API key alternative for Anthropic-compatible clients. Authorization takes precedence when both headers are present."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicCreditsResponse"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Too Many Requests"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal Server Error"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Service Unavailable"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"x-mint":{"metadata":{"sidebarTitle":"Get credit balance"}}}},"/v1/models":{"get":{"tags":["Models"],"summary":"List models available to the API key project","operationId":"listModels","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Bearer API key.","title":"Authorization"},"description":"Bearer API key."},{"name":"x-api-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"API key alternative for Anthropic-compatible clients. Authorization takes precedence when both headers are present.","title":"X-Api-Key"},"description":"API key alternative for Anthropic-compatible clients. Authorization takes precedence when both headers are present."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicModelListResponse"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Conflict"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal Server Error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"x-mint":{"metadata":{"sidebarTitle":"List models"}}}},"/v1/chat/completions":{"post":{"tags":["Chat Completions"],"summary":"Create an OpenAI-compatible chat completion","operationId":"createChatCompletion","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Bearer API key.","title":"Authorization"},"description":"Bearer API key."},{"name":"x-api-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"API key alternative for Anthropic-compatible clients. Authorization takes precedence when both headers are present.","title":"X-Api-Key"},"description":"API key alternative for Anthropic-compatible clients. Authorization takes precedence when both headers are present."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatCompletionRequest","description":"OpenAI-compatible chat completion request."}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatCompletionResponse"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Conflict"},"402":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Payment Required"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Too Many Requests"},"415":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unsupported Media Type"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Entity"},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Gateway"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal Server Error"},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Implemented"},"503":{"description":"Service unavailable, including a retryable policy evaluation failure.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-mint":{"metadata":{"sidebarTitle":"Create chat completion"}}}},"/v1/responses":{"post":{"tags":["Responses"],"summary":"Create a stateless OpenAI Responses-compatible response","operationId":"createResponse","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Bearer API key.","title":"Authorization"},"description":"Bearer API key."},{"name":"x-api-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"API key alternative for Anthropic-compatible clients. Authorization takes precedence when both headers are present.","title":"X-Api-Key"},"description":"API key alternative for Anthropic-compatible clients. Authorization takes precedence when both headers are present."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseCreateRequest","description":"OpenAI Responses-compatible request."}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseObject"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"402":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Payment Required"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Conflict"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Request Entity Too Large"},"415":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unsupported Media Type"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Too Many Requests"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal Server Error"},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Gateway"},"503":{"description":"Service unavailable, including a retryable policy evaluation failure.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"x-mint":{"metadata":{"sidebarTitle":"Create response"}}}},"/v1/messages":{"post":{"tags":["Messages"],"summary":"Create an Anthropic Messages-compatible response","operationId":"createMessage","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Bearer API key.","title":"Authorization"},"description":"Bearer API key."},{"name":"x-api-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"API key alternative for Anthropic-compatible clients. Authorization takes precedence when both headers are present.","title":"X-Api-Key"},"description":"API key alternative for Anthropic-compatible clients. Authorization takes precedence when both headers are present."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnthropicMessagesRequest","description":"Anthropic Messages-compatible request."}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnthropicMessagesResponse"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"402":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Payment Required"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Conflict"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Request Entity Too Large"},"415":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unsupported Media Type"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Too Many Requests"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal Server Error"},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Gateway"},"503":{"description":"Service unavailable, including a retryable policy evaluation failure.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"x-mint":{"metadata":{"sidebarTitle":"Create message"}}}},"/v1/messages/count_tokens":{"post":{"tags":["Messages"],"summary":"Count Anthropic Messages input tokens","operationId":"countMessageTokens","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Bearer API key.","title":"Authorization"},"description":"Bearer API key."},{"name":"x-api-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"API key alternative for Anthropic-compatible clients. Authorization takes precedence when both headers are present.","title":"X-Api-Key"},"description":"API key alternative for Anthropic-compatible clients. Authorization takes precedence when both headers are present."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnthropicCountTokensRequest","description":"Anthropic Messages count-tokens-compatible request."}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnthropicCountTokensResponse"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Conflict"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Request Entity Too Large"},"415":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unsupported Media Type"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Too Many Requests"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal Server Error"},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Gateway"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Service Unavailable"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"x-mint":{"metadata":{"sidebarTitle":"Count tokens"}}}}},"components":{"schemas":{"AdministrationAdminApiKey":{"properties":{"object":{"type":"string","const":"organization.admin_api_key","title":"Object","default":"organization.admin_api_key"},"redacted_value":{"type":"string","title":"Redacted Value"},"name":{"type":"string","title":"Name"},"created_at":{"type":"integer","title":"Created At"},"last_used_at":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Last Used At"},"id":{"type":"string","title":"Id"},"owner":{"$ref":"#/components/schemas/AdministrationAdminApiKeyOwner"},"expires_at":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Expires At"},"permissions":{"items":{"type":"string"},"type":"array","title":"Permissions"}},"type":"object","required":["redacted_value","name","created_at","id","owner","permissions"],"title":"AdministrationAdminApiKey"},"AdministrationAdminApiKeyDeleted":{"properties":{"id":{"type":"string","title":"Id"},"object":{"type":"string","const":"organization.admin_api_key.deleted","title":"Object","default":"organization.admin_api_key.deleted"},"deleted":{"type":"boolean","const":true,"title":"Deleted","default":true}},"type":"object","required":["id"],"title":"AdministrationAdminApiKeyDeleted"},"AdministrationAdminApiKeyList":{"properties":{"object":{"type":"string","const":"list","title":"Object","default":"list"},"data":{"items":{"$ref":"#/components/schemas/AdministrationAdminApiKey"},"type":"array","title":"Data"},"first_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"First Id"},"last_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Id"},"has_more":{"type":"boolean","title":"Has More"}},"type":"object","required":["data","has_more"],"title":"AdministrationAdminApiKeyList"},"AdministrationAdminApiKeyOwner":{"properties":{"type":{"type":"string","const":"organization","title":"Type","default":"organization"},"id":{"type":"string","title":"Id","description":"Owning public organization ID."}},"type":"object","required":["id"],"title":"AdministrationAdminApiKeyOwner"},"AdministrationBalance":{"properties":{"object":{"type":"string","const":"organization.balance","title":"Object","default":"organization.balance"},"available_usd":{"type":"string","title":"Available Usd","description":"Spendable prepaid balance in USD."},"reserved_usd":{"type":"string","title":"Reserved Usd","description":"Balance reserved for in-flight usage in USD."},"owed_usd":{"type":"string","title":"Owed Usd","description":"Finalized usage not yet covered by credit in USD."},"standing_status":{"type":"string","enum":["good","payment_required","past_due","blocked"],"title":"Standing Status"}},"type":"object","required":["available_usd","reserved_usd","owed_usd","standing_status"],"title":"AdministrationBalance"},"AdministrationCostAmount":{"properties":{"value":{"type":"string","title":"Value"},"currency":{"type":"string","const":"usd","title":"Currency","default":"usd"}},"type":"object","required":["value"],"title":"AdministrationCostAmount"},"AdministrationCostBucket":{"properties":{"object":{"type":"string","const":"bucket","title":"Object","default":"bucket"},"start_time":{"type":"integer","title":"Start Time"},"end_time":{"type":"integer","title":"End Time"},"results":{"items":{"$ref":"#/components/schemas/AdministrationCostResult"},"type":"array","title":"Results"}},"type":"object","required":["start_time","end_time","results"],"title":"AdministrationCostBucket"},"AdministrationCostPage":{"properties":{"object":{"type":"string","const":"page","title":"Object","default":"page"},"data":{"items":{"$ref":"#/components/schemas/AdministrationCostBucket"},"type":"array","title":"Data"},"has_more":{"type":"boolean","title":"Has More"},"next_page":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Page"}},"type":"object","required":["data","has_more"],"title":"AdministrationCostPage"},"AdministrationCostResult":{"properties":{"object":{"type":"string","const":"organization.costs.result","title":"Object","default":"organization.costs.result"},"amount":{"$ref":"#/components/schemas/AdministrationCostAmount"},"line_item":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Line Item"},"project_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Project Id"},"api_key_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Api Key Id"}},"type":"object","required":["amount"],"title":"AdministrationCostResult"},"AdministrationCreateAdminApiKeyRequest":{"properties":{"name":{"type":"string","maxLength":120,"minLength":1,"title":"Name"},"permissions":{"items":{"type":"string"},"type":"array","maxItems":20,"minItems":1,"title":"Permissions"}},"type":"object","required":["name","permissions"],"title":"AdministrationCreateAdminApiKeyRequest"},"AdministrationCreatePolicyRequest":{"properties":{"name":{"type":"string","maxLength":80,"minLength":1,"title":"Name"},"description":{"type":"string","maxLength":240,"title":"Description","default":""},"rule":{"type":"string","maxLength":20000,"minLength":1,"title":"Rule"},"direction":{"type":"string","enum":["request","response","both"],"title":"Direction"},"mode":{"type":"string","enum":["monitoring","enforcing"],"title":"Mode","default":"monitoring"},"scope":{"type":"string","enum":["organization","projects","unattached"],"title":"Scope"},"project_ids":{"items":{"type":"string"},"type":"array","maxItems":1000,"title":"Project Ids"},"match_threshold_basis_points":{"anyOf":[{"type":"integer","maximum":9999.0,"minimum":1.0},{"type":"null"}],"title":"Match Threshold Basis Points"}},"additionalProperties":false,"type":"object","required":["name","rule","direction","scope"],"title":"AdministrationCreatePolicyRequest"},"AdministrationCreateProjectApiKeyRequest":{"properties":{"name":{"type":"string","maxLength":120,"minLength":1,"title":"Name"},"expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expires At","description":"Optional future expiration time."},"permissions":{"items":{"type":"string"},"type":"array","maxItems":20,"minItems":1,"title":"Permissions"}},"type":"object","required":["name"],"title":"AdministrationCreateProjectApiKeyRequest"},"AdministrationCreateProjectRequest":{"properties":{"name":{"type":"string","maxLength":120,"minLength":1,"title":"Name"}},"type":"object","required":["name"],"title":"AdministrationCreateProjectRequest"},"AdministrationCreatedAdminApiKey":{"properties":{"object":{"type":"string","const":"organization.admin_api_key","title":"Object","default":"organization.admin_api_key"},"redacted_value":{"type":"string","title":"Redacted Value"},"name":{"type":"string","title":"Name"},"created_at":{"type":"integer","title":"Created At"},"last_used_at":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Last Used At"},"id":{"type":"string","title":"Id"},"owner":{"$ref":"#/components/schemas/AdministrationAdminApiKeyOwner"},"expires_at":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Expires At"},"permissions":{"items":{"type":"string"},"type":"array","title":"Permissions"},"value":{"type":"string","title":"Value","description":"Full Admin API key value. Returned on creation or an exact idempotent replay within 24 hours."}},"type":"object","required":["redacted_value","name","created_at","id","owner","permissions","value"],"title":"AdministrationCreatedAdminApiKey"},"AdministrationCreatedProjectApiKey":{"properties":{"object":{"type":"string","const":"organization.project.api_key","title":"Object","default":"organization.project.api_key"},"redacted_value":{"type":"string","title":"Redacted Value","description":"Safe masked key preview."},"name":{"type":"string","title":"Name"},"created_at":{"type":"integer","title":"Created At"},"last_used_at":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Last Used At"},"id":{"type":"string","title":"Id"},"owner":{"$ref":"#/components/schemas/AdministrationProjectApiKeyOwner"},"status":{"type":"string","enum":["active","revoked","expired","suspended"],"title":"Status"},"expires_at":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Expires At"},"permissions":{"items":{"type":"string"},"type":"array","title":"Permissions"},"value":{"type":"string","title":"Value","description":"Full API key value. Returned on creation or an exact idempotent replay within 24 hours."}},"type":"object","required":["redacted_value","name","created_at","id","owner","status","permissions","value"],"title":"AdministrationCreatedProjectApiKey"},"AdministrationEffectivePolicy":{"properties":{"id":{"type":"string","title":"Id"},"object":{"type":"string","const":"organization.effective_policy","title":"Object","default":"organization.effective_policy"},"name":{"type":"string","title":"Name"},"version":{"type":"integer","title":"Version"},"direction":{"type":"string","enum":["request","response","both"],"title":"Direction"},"mode":{"type":"string","enum":["monitoring","enforcing"],"title":"Mode"},"scope":{"type":"string","enum":["organization","projects"],"title":"Scope"},"source":{"type":"string","enum":["organization","project"],"title":"Source"}},"type":"object","required":["id","name","version","direction","mode","scope","source"],"title":"AdministrationEffectivePolicy"},"AdministrationEffectivePolicyList":{"properties":{"object":{"type":"string","const":"list","title":"Object","default":"list"},"data":{"items":{"$ref":"#/components/schemas/AdministrationEffectivePolicy"},"type":"array","title":"Data"}},"type":"object","required":["data"],"title":"AdministrationEffectivePolicyList"},"AdministrationOrganization":{"properties":{"id":{"type":"string","title":"Id","description":"Public organization ID."},"object":{"type":"string","const":"organization","title":"Object","default":"organization"},"name":{"type":"string","title":"Name","description":"Organization display name."},"created_at":{"type":"integer","title":"Created At","description":"Creation time as Unix seconds."}},"type":"object","required":["id","name","created_at"],"title":"AdministrationOrganization"},"AdministrationPolicy":{"properties":{"id":{"type":"string","title":"Id"},"object":{"type":"string","const":"organization.policy","title":"Object","default":"organization.policy"},"name":{"type":"string","title":"Name"},"description":{"type":"string","title":"Description"},"state":{"type":"string","enum":["draft","monitoring","enforcing","paused"],"title":"State"},"revision":{"type":"integer","title":"Revision"},"current_version":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Current Version"},"has_unpublished_changes":{"type":"boolean","title":"Has Unpublished Changes"},"created_at":{"type":"integer","title":"Created At"},"updated_at":{"type":"integer","title":"Updated At"},"draft":{"$ref":"#/components/schemas/AdministrationPolicyDraft"},"published":{"anyOf":[{"$ref":"#/components/schemas/AdministrationPolicyVersion"},{"type":"null"}]}},"type":"object","required":["id","name","description","state","revision","has_unpublished_changes","created_at","updated_at","draft"],"title":"AdministrationPolicy"},"AdministrationPolicyActionRequest":{"properties":{"revision":{"type":"integer","maximum":2147483647.0,"minimum":1.0,"title":"Revision"}},"additionalProperties":false,"type":"object","required":["revision"],"title":"AdministrationPolicyActionRequest"},"AdministrationPolicyDeleted":{"properties":{"id":{"type":"string","title":"Id"},"object":{"type":"string","const":"organization.policy.deleted","title":"Object","default":"organization.policy.deleted"},"deleted":{"type":"boolean","const":true,"title":"Deleted","default":true}},"type":"object","required":["id"],"title":"AdministrationPolicyDeleted"},"AdministrationPolicyDraft":{"properties":{"rule":{"type":"string","title":"Rule"},"direction":{"type":"string","enum":["request","response","both"],"title":"Direction"},"mode":{"type":"string","enum":["monitoring","enforcing"],"title":"Mode"},"scope":{"type":"string","enum":["organization","projects","unattached"],"title":"Scope"},"project_ids":{"items":{"type":"string"},"type":"array","title":"Project Ids"},"match_threshold_basis_points":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Match Threshold Basis Points"},"base_version":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Base Version"}},"type":"object","required":["rule","direction","mode","scope","project_ids"],"title":"AdministrationPolicyDraft"},"AdministrationPolicyList":{"properties":{"object":{"type":"string","const":"list","title":"Object","default":"list"},"data":{"items":{"$ref":"#/components/schemas/AdministrationPolicySummary"},"type":"array","title":"Data"},"first_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"First Id"},"last_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Id"},"has_more":{"type":"boolean","title":"Has More"}},"type":"object","required":["data","has_more"],"title":"AdministrationPolicyList"},"AdministrationPolicySummary":{"properties":{"id":{"type":"string","title":"Id"},"object":{"type":"string","const":"organization.policy","title":"Object","default":"organization.policy"},"name":{"type":"string","title":"Name"},"description":{"type":"string","title":"Description"},"state":{"type":"string","enum":["draft","monitoring","enforcing","paused"],"title":"State"},"revision":{"type":"integer","title":"Revision"},"current_version":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Current Version"},"has_unpublished_changes":{"type":"boolean","title":"Has Unpublished Changes"},"created_at":{"type":"integer","title":"Created At"},"updated_at":{"type":"integer","title":"Updated At"}},"type":"object","required":["id","name","description","state","revision","has_unpublished_changes","created_at","updated_at"],"title":"AdministrationPolicySummary"},"AdministrationPolicyVersion":{"properties":{"id":{"type":"string","title":"Id"},"object":{"type":"string","const":"organization.policy.version","title":"Object","default":"organization.policy.version"},"version":{"type":"integer","title":"Version"},"direction":{"type":"string","enum":["request","response","both"],"title":"Direction"},"mode":{"type":"string","enum":["monitoring","enforcing"],"title":"Mode"},"scope":{"type":"string","enum":["organization","projects","unattached"],"title":"Scope"},"project_ids":{"items":{"type":"string"},"type":"array","title":"Project Ids"},"match_threshold_basis_points":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Match Threshold Basis Points"},"published_at":{"type":"integer","title":"Published At"},"current":{"type":"boolean","title":"Current"},"rule":{"type":"string","title":"Rule"}},"type":"object","required":["id","version","direction","mode","scope","project_ids","published_at","current","rule"],"title":"AdministrationPolicyVersion"},"AdministrationPolicyVersionList":{"properties":{"object":{"type":"string","const":"list","title":"Object","default":"list"},"data":{"items":{"$ref":"#/components/schemas/AdministrationPolicyVersionSummary"},"type":"array","title":"Data"},"first_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"First Id"},"last_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Id"},"has_more":{"type":"boolean","title":"Has More"}},"type":"object","required":["data","has_more"],"title":"AdministrationPolicyVersionList"},"AdministrationPolicyVersionSummary":{"properties":{"id":{"type":"string","title":"Id"},"object":{"type":"string","const":"organization.policy.version","title":"Object","default":"organization.policy.version"},"version":{"type":"integer","title":"Version"},"direction":{"type":"string","enum":["request","response","both"],"title":"Direction"},"mode":{"type":"string","enum":["monitoring","enforcing"],"title":"Mode"},"scope":{"type":"string","enum":["organization","projects","unattached"],"title":"Scope"},"project_ids":{"items":{"type":"string"},"type":"array","title":"Project Ids"},"match_threshold_basis_points":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Match Threshold Basis Points"},"published_at":{"type":"integer","title":"Published At"},"current":{"type":"boolean","title":"Current"}},"type":"object","required":["id","version","direction","mode","scope","project_ids","published_at","current"],"title":"AdministrationPolicyVersionSummary"},"AdministrationProject":{"properties":{"id":{"type":"string","title":"Id","description":"Public project ID."},"object":{"type":"string","const":"organization.project","title":"Object","default":"organization.project"},"name":{"type":"string","title":"Name","description":"Project display name."},"created_at":{"type":"integer","title":"Created At","description":"Creation time as Unix seconds."},"archived_at":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Archived At","description":"Archive time as Unix seconds, when available."},"status":{"type":"string","enum":["active","archived","suspended"],"title":"Status","description":"Current project lifecycle status."}},"type":"object","required":["id","name","created_at","status"],"title":"AdministrationProject"},"AdministrationProjectApiKey":{"properties":{"object":{"type":"string","const":"organization.project.api_key","title":"Object","default":"organization.project.api_key"},"redacted_value":{"type":"string","title":"Redacted Value","description":"Safe masked key preview."},"name":{"type":"string","title":"Name"},"created_at":{"type":"integer","title":"Created At"},"last_used_at":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Last Used At"},"id":{"type":"string","title":"Id"},"owner":{"$ref":"#/components/schemas/AdministrationProjectApiKeyOwner"},"status":{"type":"string","enum":["active","revoked","expired","suspended"],"title":"Status"},"expires_at":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Expires At"},"permissions":{"items":{"type":"string"},"type":"array","title":"Permissions"}},"type":"object","required":["redacted_value","name","created_at","id","owner","status","permissions"],"title":"AdministrationProjectApiKey"},"AdministrationProjectApiKeyDeleted":{"properties":{"id":{"type":"string","title":"Id"},"object":{"type":"string","const":"organization.project.api_key.deleted","title":"Object","default":"organization.project.api_key.deleted"},"deleted":{"type":"boolean","const":true,"title":"Deleted","default":true}},"type":"object","required":["id"],"title":"AdministrationProjectApiKeyDeleted"},"AdministrationProjectApiKeyList":{"properties":{"object":{"type":"string","const":"list","title":"Object","default":"list"},"data":{"items":{"$ref":"#/components/schemas/AdministrationProjectApiKey"},"type":"array","title":"Data"},"first_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"First Id"},"last_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Id"},"has_more":{"type":"boolean","title":"Has More"}},"type":"object","required":["data","has_more"],"title":"AdministrationProjectApiKeyList"},"AdministrationProjectApiKeyOwner":{"properties":{"type":{"type":"string","const":"project","title":"Type","default":"project"},"id":{"type":"string","title":"Id","description":"Owning public project ID."},"name":{"type":"string","title":"Name","description":"Owning project name."}},"type":"object","required":["id","name"],"title":"AdministrationProjectApiKeyOwner"},"AdministrationProjectDeleted":{"properties":{"id":{"type":"string","title":"Id"},"object":{"type":"string","const":"organization.project.deleted","title":"Object","default":"organization.project.deleted"},"deleted":{"type":"boolean","const":true,"title":"Deleted","default":true}},"type":"object","required":["id"],"title":"AdministrationProjectDeleted"},"AdministrationProjectList":{"properties":{"object":{"type":"string","const":"list","title":"Object","default":"list"},"data":{"items":{"$ref":"#/components/schemas/AdministrationProject"},"type":"array","title":"Data"},"first_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"First Id"},"last_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Id"},"has_more":{"type":"boolean","title":"Has More"}},"type":"object","required":["data","has_more"],"title":"AdministrationProjectList"},"AdministrationSetSpendLimitRequest":{"properties":{"amount_usd":{"anyOf":[{"type":"number","exclusiveMinimum":0.0},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*(?:\\d{0,12}|(?=[\\d.]{1,19}0*$)\\d{0,12}\\.\\d{0,6}0*$)"}],"title":"Amount Usd"},"alert_threshold_basis_points":{"anyOf":[{"type":"integer","maximum":10000.0,"minimum":0.0},{"type":"null"}],"title":"Alert Threshold Basis Points"}},"type":"object","required":["amount_usd"],"title":"AdministrationSetSpendLimitRequest"},"AdministrationSpendLimit":{"properties":{"id":{"type":"string","title":"Id"},"object":{"type":"string","const":"organization.spend_limit","title":"Object","default":"organization.spend_limit"},"scope":{"type":"string","enum":["organization","project"],"title":"Scope"},"project_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Project Id"},"amount_usd":{"type":"string","title":"Amount Usd"},"period":{"type":"string","const":"monthly","title":"Period","default":"monthly"},"status":{"type":"string","const":"active","title":"Status","default":"active"},"alert_threshold_basis_points":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Alert Threshold Basis Points"},"created_at":{"type":"integer","title":"Created At"},"updated_at":{"type":"integer","title":"Updated At"}},"type":"object","required":["id","scope","amount_usd","created_at","updated_at"],"title":"AdministrationSpendLimit"},"AdministrationSpendLimitDeleted":{"properties":{"id":{"type":"string","title":"Id"},"object":{"type":"string","const":"organization.spend_limit.deleted","title":"Object","default":"organization.spend_limit.deleted"},"deleted":{"type":"boolean","const":true,"title":"Deleted","default":true}},"type":"object","required":["id"],"title":"AdministrationSpendLimitDeleted"},"AdministrationUpdatePolicyRequest":{"properties":{"revision":{"type":"integer","maximum":2147483647.0,"minimum":1.0,"title":"Revision"},"name":{"anyOf":[{"type":"string","maxLength":80,"minLength":1},{"type":"null"}],"title":"Name"},"description":{"anyOf":[{"type":"string","maxLength":240},{"type":"null"}],"title":"Description"},"rule":{"anyOf":[{"type":"string","maxLength":20000,"minLength":1},{"type":"null"}],"title":"Rule"},"direction":{"anyOf":[{"type":"string","enum":["request","response","both"]},{"type":"null"}],"title":"Direction"},"mode":{"anyOf":[{"type":"string","enum":["monitoring","enforcing"]},{"type":"null"}],"title":"Mode"},"scope":{"anyOf":[{"type":"string","enum":["organization","projects","unattached"]},{"type":"null"}],"title":"Scope"},"project_ids":{"anyOf":[{"items":{"type":"string"},"type":"array","maxItems":1000},{"type":"null"}],"title":"Project Ids"},"match_threshold_basis_points":{"anyOf":[{"type":"integer","maximum":9999.0,"minimum":1.0},{"type":"null"}],"title":"Match Threshold Basis Points"}},"additionalProperties":false,"type":"object","required":["revision"],"title":"AdministrationUpdatePolicyRequest"},"AdministrationUpdateProjectRequest":{"properties":{"name":{"type":"string","maxLength":120,"minLength":1,"title":"Name"}},"type":"object","required":["name"],"title":"AdministrationUpdateProjectRequest"},"AdministrationUsageBucket":{"properties":{"object":{"type":"string","const":"bucket","title":"Object","default":"bucket"},"start_time":{"type":"integer","title":"Start Time"},"end_time":{"type":"integer","title":"End Time"},"results":{"items":{"$ref":"#/components/schemas/AdministrationUsageCompletionsResult"},"type":"array","title":"Results"}},"type":"object","required":["start_time","end_time","results"],"title":"AdministrationUsageBucket"},"AdministrationUsageCompletionsResult":{"properties":{"object":{"type":"string","const":"organization.usage.completions.result","title":"Object","default":"organization.usage.completions.result"},"input_tokens":{"type":"integer","title":"Input Tokens"},"input_cached_tokens":{"type":"integer","title":"Input Cached Tokens"},"input_cache_write_tokens":{"type":"integer","title":"Input Cache Write Tokens"},"input_uncached_tokens":{"type":"integer","title":"Input Uncached Tokens"},"output_tokens":{"type":"integer","title":"Output Tokens"},"input_text_tokens":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Input Text Tokens"},"output_text_tokens":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Output Text Tokens"},"input_cached_text_tokens":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Input Cached Text Tokens"},"input_audio_tokens":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Input Audio Tokens"},"input_cached_audio_tokens":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Input Cached Audio Tokens"},"output_audio_tokens":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Output Audio Tokens"},"input_image_tokens":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Input Image Tokens"},"input_cached_image_tokens":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Input Cached Image Tokens"},"output_image_tokens":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Output Image Tokens"},"num_model_requests":{"type":"integer","title":"Num Model Requests"},"project_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Project Id"},"user_id":{"type":"null","title":"User Id"},"api_key_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Api Key Id"},"model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model"},"batch":{"type":"null","title":"Batch"},"service_tier":{"type":"null","title":"Service Tier"}},"type":"object","required":["input_tokens","input_cached_tokens","input_cache_write_tokens","input_uncached_tokens","output_tokens","num_model_requests"],"title":"AdministrationUsageCompletionsResult"},"AdministrationUsagePage":{"properties":{"object":{"type":"string","const":"page","title":"Object","default":"page"},"data":{"items":{"$ref":"#/components/schemas/AdministrationUsageBucket"},"type":"array","title":"Data"},"has_more":{"type":"boolean","title":"Has More"},"next_page":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Page"}},"type":"object","required":["data","has_more"],"title":"AdministrationUsagePage"},"AnthropicClearThinkingContextEdit":{"properties":{"type":{"type":"string","const":"clear_thinking_20251015","title":"Type"},"keep":{"type":"string","const":"all","title":"Keep"}},"additionalProperties":false,"type":"object","required":["type","keep"],"title":"AnthropicClearThinkingContextEdit","description":"Claude Code's non-destructive context-management compatibility edit."},"AnthropicContextManagement":{"properties":{"edits":{"items":{"$ref":"#/components/schemas/AnthropicClearThinkingContextEdit"},"type":"array","maxItems":1,"minItems":1,"title":"Edits"}},"additionalProperties":false,"type":"object","required":["edits"],"title":"AnthropicContextManagement","description":"Supported beta context-management subset.\n\n``keep=all`` does not remove any replayed thinking blocks, so it can be\nsafely consumed at the compatibility boundary and omitted from the vLLM\nprovider payload."},"AnthropicCountTokensRequest":{"properties":{"model":{"type":"string","minLength":1,"title":"Model"},"messages":{"items":{"$ref":"#/components/schemas/AnthropicMessage"},"type":"array","minItems":1,"title":"Messages"},"system":{"anyOf":[{"type":"string"},{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"System"},"tools":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Tools"},"tool_choice":{"anyOf":[{"$ref":"#/components/schemas/AnthropicToolChoice"},{"type":"null"}]},"thinking":{"anyOf":[{"$ref":"#/components/schemas/AnthropicThinking"},{"type":"null"}]},"output_config":{"anyOf":[{"$ref":"#/components/schemas/AnthropicOutputConfig"},{"type":"null"}]},"context_management":{"anyOf":[{"$ref":"#/components/schemas/AnthropicContextManagement"},{"type":"null"}]}},"additionalProperties":false,"type":"object","required":["model","messages"],"title":"AnthropicCountTokensRequest","description":"Count request mirrors model-visible Messages inputs without generation."},"AnthropicCountTokensResponse":{"properties":{"input_tokens":{"type":"integer","minimum":0.0,"title":"Input Tokens"}},"additionalProperties":true,"type":"object","required":["input_tokens"],"title":"AnthropicCountTokensResponse"},"AnthropicJsonOutputFormat":{"properties":{"type":{"type":"string","const":"json_schema","title":"Type"},"schema":{"additionalProperties":true,"type":"object","title":"Schema"}},"additionalProperties":false,"type":"object","required":["type","schema"],"title":"AnthropicJsonOutputFormat"},"AnthropicMessage":{"properties":{"role":{"type":"string","enum":["user","assistant","system"],"title":"Role"},"content":{"anyOf":[{"type":"string"},{"items":{"additionalProperties":true,"type":"object"},"type":"array"}],"title":"Content"}},"additionalProperties":false,"type":"object","required":["role","content"],"title":"AnthropicMessage"},"AnthropicMessagesRequest":{"properties":{"model":{"type":"string","minLength":1,"title":"Model"},"max_tokens":{"type":"integer","maximum":999990.0,"minimum":1.0,"title":"Max Tokens"},"messages":{"items":{"$ref":"#/components/schemas/AnthropicMessage"},"type":"array","minItems":1,"title":"Messages"},"system":{"anyOf":[{"type":"string"},{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"System"},"stream":{"type":"boolean","title":"Stream","default":false},"temperature":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Temperature"},"top_p":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Top P"},"top_k":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Top K"},"stop_sequences":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Stop Sequences"},"tools":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Tools"},"tool_choice":{"anyOf":[{"$ref":"#/components/schemas/AnthropicToolChoice"},{"type":"null"}]},"thinking":{"anyOf":[{"$ref":"#/components/schemas/AnthropicThinking"},{"type":"null"}]},"output_config":{"anyOf":[{"$ref":"#/components/schemas/AnthropicOutputConfig"},{"type":"null"}]},"context_management":{"anyOf":[{"$ref":"#/components/schemas/AnthropicContextManagement"},{"type":"null"}]},"metadata":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Metadata"},"service_tier":{"anyOf":[{"type":"string","enum":["auto","standard_only"]},{"type":"null"}],"title":"Service Tier"},"policy_ids":{"items":{"type":"string","maxLength":120,"minLength":1},"type":"array","title":"Policy Ids"}},"additionalProperties":false,"type":"object","required":["model","max_tokens","messages"],"title":"AnthropicMessagesRequest","description":"Versioned public V1 subset of Anthropic Messages create."},"AnthropicMessagesResponse":{"properties":{"id":{"type":"string","pattern":"^msg_","title":"Id"},"type":{"type":"string","const":"message","title":"Type","default":"message"},"role":{"type":"string","const":"assistant","title":"Role","default":"assistant"},"content":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Content"},"model":{"type":"string","title":"Model"},"stop_reason":{"anyOf":[{"type":"string","enum":["end_turn","max_tokens","stop_sequence","tool_use"]},{"type":"null"}],"title":"Stop Reason"},"stop_sequence":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stop Sequence"},"usage":{"$ref":"#/components/schemas/AnthropicUsage"}},"additionalProperties":true,"type":"object","required":["id","content","model","stop_reason","usage"],"title":"AnthropicMessagesResponse"},"AnthropicOutputConfig":{"properties":{"effort":{"anyOf":[{"type":"string","enum":["minimal","low","medium","high","xhigh","max","ultracode"]},{"type":"null"}],"title":"Effort"},"format":{"anyOf":[{"$ref":"#/components/schemas/AnthropicJsonOutputFormat"},{"type":"null"}]}},"additionalProperties":false,"type":"object","title":"AnthropicOutputConfig"},"AnthropicThinking":{"properties":{"type":{"type":"string","enum":["enabled","disabled","adaptive"],"title":"Type"},"budget_tokens":{"anyOf":[{"type":"integer","maximum":999990.0,"minimum":1.0},{"type":"null"}],"title":"Budget Tokens"},"display":{"anyOf":[{"type":"string","enum":["summarized","omitted","updates"]},{"type":"null"}],"title":"Display"}},"additionalProperties":false,"type":"object","required":["type"],"title":"AnthropicThinking"},"AnthropicToolChoice":{"properties":{"type":{"type":"string","enum":["auto","any","tool","none"],"title":"Type"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"disable_parallel_tool_use":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Disable Parallel Tool Use"}},"additionalProperties":false,"type":"object","required":["type"],"title":"AnthropicToolChoice"},"AnthropicUsage":{"properties":{"input_tokens":{"type":"integer","minimum":0.0,"title":"Input Tokens"},"output_tokens":{"type":"integer","minimum":0.0,"title":"Output Tokens"},"cache_creation_input_tokens":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Cache Creation Input Tokens"},"cache_read_input_tokens":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Cache Read Input Tokens"}},"additionalProperties":true,"type":"object","required":["input_tokens","output_tokens"],"title":"AnthropicUsage"},"ChatCompletionChoice":{"properties":{"index":{"type":"integer","title":"Index"},"message":{"$ref":"#/components/schemas/ChatCompletionResponseMessage"},"logprobs":{"anyOf":[{},{"type":"null"}],"title":"Logprobs"},"finish_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Finish Reason"}},"type":"object","required":["index","message"],"title":"ChatCompletionChoice"},"ChatCompletionContentPart":{"properties":{"type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Type","description":"Structured content part type accepted by Chat Completions."},"text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Text","description":"Text content when `type` is `text`."},"image_url":{"anyOf":[{},{"type":"null"}],"title":"Image Url","description":"OpenAI-compatible image content when `type` is `image_url`."}},"additionalProperties":true,"type":"object","title":"ChatCompletionContentPart","description":"Parsed structured content part; Media Gateway owns strict validation."},"ChatCompletionMessage":{"properties":{"role":{"type":"string","enum":["system","developer","user","assistant","tool","function"],"title":"Role"},"content":{"anyOf":[{"type":"string"},{"items":{"$ref":"#/components/schemas/ChatCompletionContentPart"},"type":"array"},{"type":"null"}],"title":"Content"},"reasoning":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reasoning","description":"Assistant reasoning replay accepted for OpenAI-compatible interleaved reasoning and tool-call conversations."},"reasoning_content":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reasoning Content","description":"Deprecated assistant reasoning replay alias retained for SDK compatibility."},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"tool_call_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tool Call Id"},"tool_calls":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Tool Calls"},"function_call":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Function Call"},"model_id":{"type":"string","maxLength":256,"minLength":1,"title":"Model Id","description":"Historical assistant-model metadata accepted for Grok client compatibility and never forwarded to the model runtime."}},"additionalProperties":false,"type":"object","required":["role"],"title":"ChatCompletionMessage"},"ChatCompletionMessageAnnotation":{"properties":{"type":{"type":"string","const":"url_citation","title":"Type","default":"url_citation"},"url_citation":{"$ref":"#/components/schemas/ChatCompletionUrlCitation"}},"type":"object","required":["url_citation"],"title":"ChatCompletionMessageAnnotation"},"ChatCompletionReasoningOptions":{"properties":{"enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Enabled"},"effort":{"anyOf":[{"type":"string","enum":["none","minimal","low","medium","high","xhigh","max","ultracode"]},{"type":"null"}],"title":"Effort"},"max_tokens":{"anyOf":[{"type":"integer","maximum":999990.0,"minimum":1.0},{"type":"null"}],"title":"Max Tokens"},"exclude":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Exclude"}},"additionalProperties":false,"type":"object","title":"ChatCompletionReasoningOptions"},"ChatCompletionRequest":{"properties":{"model":{"type":"string","minLength":1,"title":"Model","description":"Public model ID."},"messages":{"items":{"$ref":"#/components/schemas/ChatCompletionMessage"},"type":"array","minItems":1,"title":"Messages","description":"OpenAI-compatible chat messages."},"policy_ids":{"items":{"type":"string","maxLength":120,"minLength":1},"type":"array","title":"Policy Ids","description":"Published policies configured for explicit selection. Automatic platform, organization, and project policies are applied without listing them here."},"stream":{"type":"boolean","title":"Stream","description":"Whether to stream the response.","default":false},"max_tokens":{"anyOf":[{"type":"integer","maximum":999990.0,"minimum":1.0},{"type":"null"}],"title":"Max Tokens"},"max_completion_tokens":{"anyOf":[{"type":"integer","maximum":999990.0,"minimum":1.0},{"type":"null"}],"title":"Max Completion Tokens"},"temperature":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Temperature"},"top_p":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Top P"},"frequency_penalty":{"anyOf":[{"type":"number","maximum":2.0,"minimum":-2.0},{"type":"null"}],"title":"Frequency Penalty"},"presence_penalty":{"anyOf":[{"type":"number","maximum":2.0,"minimum":-2.0},{"type":"null"}],"title":"Presence Penalty"},"logit_bias":{"anyOf":[{"additionalProperties":{"type":"number","maximum":100.0,"minimum":-100.0},"type":"object"},{"type":"null"}],"title":"Logit Bias"},"n":{"anyOf":[{"type":"integer","maximum":128.0,"minimum":1.0},{"type":"null"}],"title":"N"},"seed":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Seed"},"stop":{"anyOf":[{"type":"string"},{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Stop"},"stream_options":{"anyOf":[{"$ref":"#/components/schemas/ChatCompletionStreamOptions"},{"type":"null"}]},"thinking":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Thinking","description":"Legacy compatibility toggle. The gateway translates this into backend-owned model-profile reasoning controls."},"reasoning":{"anyOf":[{"$ref":"#/components/schemas/ChatCompletionReasoningOptions"},{"type":"null"}],"description":"OpenRouter-style reasoning controls translated by the selected model profile."},"reasoning_effort":{"anyOf":[{"type":"string","enum":["none","minimal","low","medium","high","xhigh","max","ultracode"]},{"type":"null"}],"title":"Reasoning Effort","description":"OpenAI/vLLM-compatible reasoning effort control."},"include_reasoning":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Include Reasoning","description":"Whether reasoning fields may be returned when the runtime emits them."},"safety_identifier":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Safety Identifier","description":"Accepted for OpenAI compatibility, but not used for V1 abuse correlation and not forwarded to model runtimes."},"user":{"anyOf":[{"type":"string","maxLength":512},{"type":"null"}],"title":"User","description":"Accepted for OpenAI compatibility but not forwarded to model runtimes."},"structuredOutputs":{"type":"boolean","title":"Structuredoutputs","description":"Client structured-output capability declaration accepted for compatibility. It is ignored and never forwarded; use response_format to request an output format."},"tools":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Tools","description":"Tools available to the model. Provide at least one tool when tool_choice is auto, required, or a named tool."},"tool_choice":{"anyOf":[{"type":"string","enum":["none","auto","required"]},{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Tool Choice","description":"Controls tool selection. Omit this field when tools are omitted; none is the effective default without tools, and auto is the default with tools."},"parallel_tool_calls":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Parallel Tool Calls"},"functions":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Functions"},"function_call":{"anyOf":[{"type":"string","enum":["none","auto"]},{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Function Call"},"response_format":{"anyOf":[{"oneOf":[{"$ref":"#/components/schemas/ChatCompletionResponseFormatText"},{"$ref":"#/components/schemas/ChatCompletionResponseFormatJsonObject"},{"$ref":"#/components/schemas/ChatCompletionResponseFormatJsonSchema"}],"discriminator":{"propertyName":"type","mapping":{"json_object":"#/components/schemas/ChatCompletionResponseFormatJsonObject","json_schema":"#/components/schemas/ChatCompletionResponseFormatJsonSchema","text":"#/components/schemas/ChatCompletionResponseFormatText"}}},{"type":"null"}],"title":"Response Format"},"modalities":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Modalities"},"verbosity":{"anyOf":[{"type":"string","enum":["low","medium","high"]},{"type":"null"}],"title":"Verbosity"},"audio":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Audio"},"prediction":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Prediction"},"metadata":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Metadata"},"store":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Store"},"service_tier":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Service Tier"},"prompt_cache_key":{"anyOf":[{"type":"string","maxLength":512},{"type":"null"}],"title":"Prompt Cache Key"},"prompt_cache_retention":{"anyOf":[{"type":"string","enum":["in_memory","24h"]},{"type":"null"}],"title":"Prompt Cache Retention"},"logprobs":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Logprobs"},"top_logprobs":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Top Logprobs"},"prompt_logprobs":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Prompt Logprobs"},"web_search_options":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Web Search Options"},"cache_salt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cache Salt"}},"additionalProperties":false,"type":"object","required":["model","messages"],"title":"ChatCompletionRequest"},"ChatCompletionResponse":{"properties":{"id":{"type":"string","title":"Id"},"object":{"type":"string","const":"chat.completion","title":"Object","default":"chat.completion"},"created":{"type":"integer","title":"Created"},"model":{"type":"string","title":"Model"},"choices":{"items":{"$ref":"#/components/schemas/ChatCompletionChoice"},"type":"array","title":"Choices"},"usage":{"anyOf":[{"$ref":"#/components/schemas/ChatCompletionUsage"},{"type":"null"}]},"system_fingerprint":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"System Fingerprint"},"service_tier":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Service Tier"},"prompt_logprobs":{"anyOf":[{"items":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}]},"type":"array"},{"type":"null"}],"title":"Prompt Logprobs"}},"type":"object","required":["id","created","model","choices"],"title":"ChatCompletionResponse"},"ChatCompletionResponseFormatJsonObject":{"properties":{"type":{"type":"string","const":"json_object","title":"Type"}},"additionalProperties":false,"type":"object","required":["type"],"title":"ChatCompletionResponseFormatJsonObject"},"ChatCompletionResponseFormatJsonSchema":{"properties":{"type":{"type":"string","const":"json_schema","title":"Type"},"json_schema":{"$ref":"#/components/schemas/ChatCompletionResponseFormatJsonSchemaSpec"}},"additionalProperties":false,"type":"object","required":["type","json_schema"],"title":"ChatCompletionResponseFormatJsonSchema"},"ChatCompletionResponseFormatJsonSchemaSpec":{"properties":{"name":{"type":"string","maxLength":128,"minLength":1,"title":"Name"},"description":{"anyOf":[{"type":"string","maxLength":2048},{"type":"null"}],"title":"Description"},"schema":{"additionalProperties":true,"type":"object","title":"Schema"},"strict":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Strict"}},"additionalProperties":false,"type":"object","required":["name","schema"],"title":"ChatCompletionResponseFormatJsonSchemaSpec"},"ChatCompletionResponseFormatText":{"properties":{"type":{"type":"string","const":"text","title":"Type"}},"additionalProperties":false,"type":"object","required":["type"],"title":"ChatCompletionResponseFormatText"},"ChatCompletionResponseMessage":{"properties":{"role":{"type":"string","enum":["system","developer","user","assistant","tool"],"title":"Role"},"content":{"anyOf":[{"type":"string"},{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Content"},"refusal":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Refusal"},"reasoning":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reasoning"},"reasoning_content":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reasoning Content"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"tool_call_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tool Call Id"},"tool_calls":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Tool Calls"},"function_call":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Function Call"},"annotations":{"anyOf":[{"items":{"$ref":"#/components/schemas/ChatCompletionMessageAnnotation"},"type":"array"},{"type":"null"}],"title":"Annotations"}},"type":"object","required":["role"],"title":"ChatCompletionResponseMessage"},"ChatCompletionStreamOptions":{"properties":{"include_usage":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Include Usage"}},"additionalProperties":false,"type":"object","title":"ChatCompletionStreamOptions"},"ChatCompletionUrlCitation":{"properties":{"url":{"type":"string","title":"Url"},"title":{"type":"string","title":"Title"},"start_index":{"type":"integer","minimum":0.0,"title":"Start Index"},"end_index":{"type":"integer","minimum":0.0,"title":"End Index"}},"type":"object","required":["url","title","start_index","end_index"],"title":"ChatCompletionUrlCitation"},"ChatCompletionUsage":{"properties":{"prompt_tokens":{"type":"integer","title":"Prompt Tokens"},"completion_tokens":{"type":"integer","title":"Completion Tokens"},"total_tokens":{"type":"integer","title":"Total Tokens"},"prompt_tokens_details":{"anyOf":[{"additionalProperties":{"anyOf":[{"type":"integer"},{"additionalProperties":{"type":"integer"},"type":"object"},{"type":"null"}]},"type":"object"},{"type":"null"}],"title":"Prompt Tokens Details"},"completion_tokens_details":{"anyOf":[{"additionalProperties":{"anyOf":[{"type":"integer"},{"type":"null"}]},"type":"object"},{"type":"null"}],"title":"Completion Tokens Details"}},"type":"object","required":["prompt_tokens","completion_tokens","total_tokens"],"title":"ChatCompletionUsage"},"ErrorDetail":{"properties":{"code":{"type":"string","title":"Code","description":"Stable machine-readable error code."},"message":{"type":"string","title":"Message","description":"Bounded human-readable error message."},"type":{"$ref":"#/components/schemas/ErrorType","description":"Broad stable error category."},"param":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Param","description":"Request field related to the error."},"request_id":{"type":"string","title":"Request Id","description":"Server-owned canonical request ID."},"doc_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Doc Url","description":"Documentation URL for the error."}},"type":"object","required":["code","message","type","request_id"],"title":"ErrorDetail"},"ErrorResponse":{"properties":{"error":{"$ref":"#/components/schemas/ErrorDetail"}},"type":"object","required":["error"],"title":"ErrorResponse"},"ErrorType":{"type":"string","enum":["auth_error","permission_error","validation_error","rate_limit_error","billing_error","moderation_error","policy_error","media_error","not_found_error","conflict_error","provider_error","internal_error"],"title":"ErrorType"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"HealthResponse":{"properties":{"status":{"type":"string","title":"Status"},"service":{"type":"string","title":"Service"},"environment":{"type":"string","title":"Environment"},"version":{"type":"string","title":"Version"}},"type":"object","required":["status","service","environment","version"],"title":"HealthResponse"},"PublicCreditsData":{"properties":{"total_credits":{"type":"number","title":"Total Credits","description":"Total credits available to the organization, in USD."},"total_usage":{"type":"number","title":"Total Usage","description":"Total credits consumed by finalized usage, in USD."}},"type":"object","required":["total_credits","total_usage"],"title":"PublicCreditsData"},"PublicCreditsResponse":{"properties":{"data":{"$ref":"#/components/schemas/PublicCreditsData"}},"type":"object","required":["data"],"title":"PublicCreditsResponse"},"PublicModelAccess":{"properties":{"required_checks":{"items":{"type":"string"},"type":"array","title":"Required Checks"},"available":{"type":"boolean","title":"Available"},"locked":{"type":"boolean","title":"Locked"},"missing_requirements":{"items":{"type":"string"},"type":"array","title":"Missing Requirements"}},"additionalProperties":false,"type":"object","required":["required_checks","available","locked","missing_requirements"],"title":"PublicModelAccess"},"PublicModelListResponse":{"properties":{"object":{"type":"string","const":"list","title":"Object","default":"list"},"data":{"items":{"$ref":"#/components/schemas/PublicModelResponse"},"type":"array","title":"Data"}},"type":"object","required":["data"],"title":"PublicModelListResponse"},"PublicModelPricing":{"properties":{"prompt":{"type":"string","title":"Prompt","description":"USD price per prompt token."},"completion":{"type":"string","title":"Completion","description":"USD price per completion token."},"image":{"type":"string","title":"Image","description":"USD price per image."},"request":{"type":"string","title":"Request","description":"USD price per request."},"input_cache_read":{"type":"string","title":"Input Cache Read","description":"USD price per cached input token read."}},"additionalProperties":false,"type":"object","required":["prompt","completion","image","request","input_cache_read"],"title":"PublicModelPricing"},"PublicModelResponse":{"properties":{"id":{"type":"string","title":"Id","description":"Public model ID accepted by inference endpoints."},"object":{"type":"string","const":"model","title":"Object","default":"model"},"owned_by":{"type":"string","const":"abliteration.ai","title":"Owned By","default":"abliteration.ai"},"name":{"type":"string","title":"Name","description":"Human-readable model name."},"display_name":{"type":"string","title":"Display Name","description":"Human-readable model display name."},"access":{"$ref":"#/components/schemas/PublicModelAccess"},"created":{"type":"integer","title":"Created","description":"Unix timestamp for the model catalog entry."},"input_modalities":{"items":{"type":"string","enum":["text","image","file","audio","video"]},"type":"array","title":"Input Modalities"},"output_modalities":{"items":{"type":"string","enum":["text","image","file","audio","video"]},"type":"array","title":"Output Modalities"},"pricing":{"$ref":"#/components/schemas/PublicModelPricing"},"supported_sampling_parameters":{"items":{"type":"string"},"type":"array","title":"Supported Sampling Parameters"},"sampling_limits":{"additionalProperties":{"$ref":"#/components/schemas/PublicSamplingRange"},"type":"object","title":"Sampling Limits"},"sampling_limits_revision":{"type":"string","title":"Sampling Limits Revision","default":""},"supported_features":{"items":{"type":"string"},"type":"array","title":"Supported Features"},"is_ready":{"type":"boolean","title":"Is Ready"},"quantization":{"type":"string","title":"Quantization"},"context_length":{"type":"integer","title":"Context Length"},"max_output_length":{"type":"integer","title":"Max Output Length"},"root":{"type":"string","title":"Root"},"parent":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Parent"}},"additionalProperties":false,"type":"object","required":["id","name","display_name","access","created","input_modalities","output_modalities","pricing","supported_sampling_parameters","supported_features","is_ready","quantization","context_length","max_output_length","root"],"title":"PublicModelResponse"},"PublicSamplingRange":{"properties":{"minimum":{"type":"number","title":"Minimum"},"maximum":{"type":"number","title":"Maximum"},"minimum_inclusive":{"type":"boolean","title":"Minimum Inclusive","default":true},"maximum_inclusive":{"type":"boolean","title":"Maximum Inclusive","default":true}},"type":"object","required":["minimum","maximum"],"title":"PublicSamplingRange"},"ResponseCreateRequest":{"properties":{"model":{"type":"string","minLength":1,"title":"Model","description":"Public model ID."},"input":{"anyOf":[{"type":"string"},{"items":{"additionalProperties":true,"type":"object"},"type":"array"}],"title":"Input"},"instructions":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Instructions"},"stream":{"type":"boolean","title":"Stream","default":false},"store":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Store"},"background":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Background"},"previous_response_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Previous Response Id"},"max_output_tokens":{"anyOf":[{"type":"integer","maximum":999990.0,"minimum":1.0},{"type":"null"}],"title":"Max Output Tokens"},"max_tool_calls":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Max Tool Calls"},"temperature":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Temperature"},"top_p":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Top P"},"presence_penalty":{"anyOf":[{"type":"number","maximum":2.0,"minimum":-2.0},{"type":"null"}],"title":"Presence Penalty"},"frequency_penalty":{"anyOf":[{"type":"number","maximum":2.0,"minimum":-2.0},{"type":"null"}],"title":"Frequency Penalty"},"tools":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Tools"},"tool_choice":{"anyOf":[{"type":"string","enum":["none","auto","required"]},{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Tool Choice"},"parallel_tool_calls":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Parallel Tool Calls"},"reasoning":{"anyOf":[{"$ref":"#/components/schemas/ResponsesReasoning"},{"type":"null"}]},"include_reasoning":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Include Reasoning"},"text":{"anyOf":[{"$ref":"#/components/schemas/ResponsesTextConfig"},{"type":"null"}]},"include":{"anyOf":[{"items":{"type":"string","enum":["message.input_image.image_url","message.output_text.logprobs","reasoning.encrypted_content","code_interpreter_call.outputs","computer_call_output.output.image_url","file_search_call.results"]},"type":"array"},{"type":"null"}],"title":"Include"},"truncation":{"anyOf":[{"type":"string","enum":["auto","disabled"]},{"type":"null"}],"title":"Truncation"},"metadata":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"title":"Metadata"},"client_metadata":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Client Metadata"},"prompt_cache_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prompt Cache Key"},"service_tier":{"anyOf":[{"type":"string","enum":["auto","default","flex","scale","priority"]},{"type":"null"}],"title":"Service Tier"},"user":{"anyOf":[{"type":"string","maxLength":512},{"type":"null"}],"title":"User"},"safety_identifier":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Safety Identifier"},"policy_ids":{"items":{"type":"string","maxLength":120,"minLength":1},"type":"array","title":"Policy Ids"}},"additionalProperties":false,"type":"object","required":["model","input"],"title":"ResponseCreateRequest","description":"Versioned public V1 subset of OpenAI Responses create."},"ResponseObject":{"properties":{"id":{"type":"string","pattern":"^resp_","title":"Id"},"object":{"type":"string","const":"response","title":"Object","default":"response"},"status":{"type":"string","enum":["completed","failed","in_progress","incomplete","queued"],"title":"Status"},"model":{"type":"string","title":"Model"},"output":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Output"},"usage":{"anyOf":[{"$ref":"#/components/schemas/ResponseUsage"},{"type":"null"}]}},"additionalProperties":true,"type":"object","required":["id","status","model","output"],"title":"ResponseObject","description":"Native response object with required billing/public identity fields."},"ResponseUsage":{"properties":{"input_tokens":{"type":"integer","minimum":0.0,"title":"Input Tokens"},"input_tokens_details":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Input Tokens Details"},"output_tokens":{"type":"integer","minimum":0.0,"title":"Output Tokens"},"output_tokens_details":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Output Tokens Details"},"total_tokens":{"type":"integer","minimum":0.0,"title":"Total Tokens"}},"additionalProperties":true,"type":"object","required":["input_tokens","output_tokens","total_tokens"],"title":"ResponseUsage"},"ResponsesReasoning":{"properties":{"effort":{"anyOf":[{"type":"string","enum":["none","minimal","low","medium","high","xhigh","max","ultracode"]},{"type":"null"}],"title":"Effort"},"summary":{"anyOf":[{"type":"string","enum":["auto","concise","detailed"]},{"type":"null"}],"title":"Summary"},"enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Enabled"},"max_tokens":{"anyOf":[{"type":"integer","maximum":999990.0,"minimum":1.0},{"type":"null"}],"title":"Max Tokens"},"exclude":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Exclude"}},"additionalProperties":false,"type":"object","title":"ResponsesReasoning","description":"Native `reasoning.effort` plus the reviewed compatibility aliases.\n\nThe accepted profile decision requires Responses to take enablement, budget,\nand visibility aliases, not effort alone, so an OpenRouter- or Codex-shaped\nclient resolves the same intent here that it already resolves on Chat\nCompletions and Messages. `max_tokens` is the budget alias; the total output\ncap remains `max_output_tokens`."},"ResponsesTextConfig":{"properties":{"format":{"anyOf":[{"oneOf":[{"$ref":"#/components/schemas/ResponsesTextFormatText"},{"$ref":"#/components/schemas/ResponsesTextFormatJsonObject"},{"$ref":"#/components/schemas/ResponsesTextFormatJsonSchema"}],"discriminator":{"propertyName":"type","mapping":{"json_object":"#/components/schemas/ResponsesTextFormatJsonObject","json_schema":"#/components/schemas/ResponsesTextFormatJsonSchema","text":"#/components/schemas/ResponsesTextFormatText"}}},{"type":"null"}],"title":"Format"},"verbosity":{"anyOf":[{"type":"string","enum":["low","medium","high"]},{"type":"null"}],"title":"Verbosity"}},"additionalProperties":false,"type":"object","title":"ResponsesTextConfig"},"ResponsesTextFormatJsonObject":{"properties":{"type":{"type":"string","const":"json_object","title":"Type"}},"additionalProperties":false,"type":"object","required":["type"],"title":"ResponsesTextFormatJsonObject"},"ResponsesTextFormatJsonSchema":{"properties":{"type":{"type":"string","const":"json_schema","title":"Type"},"name":{"type":"string","maxLength":128,"minLength":1,"title":"Name"},"description":{"anyOf":[{"type":"string","maxLength":2048},{"type":"null"}],"title":"Description"},"schema":{"additionalProperties":true,"type":"object","title":"Schema"},"strict":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Strict"}},"additionalProperties":false,"type":"object","required":["type","name","schema"],"title":"ResponsesTextFormatJsonSchema"},"ResponsesTextFormatText":{"properties":{"type":{"type":"string","const":"text","title":"Type"}},"additionalProperties":false,"type":"object","required":["type"],"title":"ResponsesTextFormatText"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"}},"securitySchemes":{"AdminApiKey":{"type":"http","description":"Server-side organization-owned Abliteration Admin API key. Never expose this credential in browser code.","scheme":"bearer"}}}}