SHIP AI Agent Auth API
The agent-auth API from SHIP AI — 11 operation(s) for agent-auth.
The agent-auth API from SHIP AI — 11 operation(s) for agent-auth.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/letsship-ai:letsship-ai-agent-auth-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: SHIP Agent Auth API
version: v1
description: 'The SHIP product API: start and steer missions, and manage the projects, credentials and agents they run with.'
servers:
- url: https://api.letsship.ai/v1
tags:
- name: agent-auth
paths:
/oauth/authorization-server:
get:
x-audience: public
tags:
- agent-auth
summary: Authorization server metadata (RFC 8414)
description: The metadata document of the agent authorization server. It has the Auth.md agent_auth block and the providers whose ID-JAGs SHIP trusts. The console serves the same document at https://letsship.ai/.well-known/oauth-authorization-server, the well-known URL of the issuer.
responses:
'200':
description: The metadata.
content:
application/json:
schema:
$ref: '#/components/schemas/AuthorizationServerMetadata'
'500':
description: This environment is not configured.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
operationId: getOauthAuthorizationServer
x-operation-id-source: derived
/oauth/protected-resource:
get:
x-audience: public
tags:
- agent-auth
summary: Protected resource metadata (RFC 9728)
description: 'The metadata for one resource this authorization server issues tokens for: the API, the MCP server or the A2A endpoint. The API serves its own at https://api.letsship.ai/.well-known/oauth-protected-resource.'
parameters:
- schema:
type: string
minLength: 1
example: https://mcp.letsship.ai/mcp
required: true
name: resource
in: query
responses:
'200':
description: The metadata.
content:
application/json:
schema:
$ref: '#/components/schemas/ProtectedResourceMetadata'
'404':
description: Not a resource of this server.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
operationId: getOauthProtectedResource
x-operation-id-source: derived
/oauth2/jwks:
get:
x-audience: public
tags:
- agent-auth
summary: Signing keys (JWKS)
description: The public key that signs every identity_assertion this server issues. Private key material never appears here.
responses:
'200':
description: The key set.
content:
application/json:
schema:
$ref: '#/components/schemas/Jwks'
'500':
description: The signing key is not configured.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
operationId: getOauth2Jwks
x-operation-id-source: derived
/agent/identity:
post:
x-audience: public
tags:
- agent-auth
summary: Register an agent (Auth.md)
description: 'An agent registers itself: anonymous (no user yet), service_auth (the user''s email, confirmed by the user on the console) or identity_assertion (an ID-JAG from a trusted provider). Returns a service-signed identity_assertion or a claim ceremony, never a credential. Read https://letsship.ai/auth.md for the whole flow.'
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/AgentIdentityRequest'
responses:
'200':
description: Registered.
content:
application/json:
schema:
$ref: '#/components/schemas/AgentRegistrationResponse'
'400':
description: Invalid request, untrusted provider or a token that did not verify.
content:
application/json:
schema:
$ref: '#/components/schemas/AgentAuthError'
'401':
description: interaction_required (claim ceremony) or login_required (stale provider login).
content:
application/json:
schema:
$ref: '#/components/schemas/AgentAuthError'
'429':
description: Too many registrations from this address.
content:
application/json:
schema:
$ref: '#/components/schemas/AgentAuthError'
'503':
description: The provider's signing keys could not be read. Try again.
content:
application/json:
schema:
$ref: '#/components/schemas/AgentAuthError'
operationId: postAgentIdentity
x-operation-id-source: derived
/agent/identity/claim:
post:
x-audience: public
tags:
- agent-auth
summary: Start or renew a claim
description: Binds an anonymous registration to the email of the person the agent acts for and returns a code for that person, or mints a new code for a pending registration whose code expired.
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/InitiateClaimRequest'
responses:
'200':
description: Claim started.
content:
application/json:
schema:
$ref: '#/components/schemas/InitiateClaimResponse'
'400':
description: Invalid request.
content:
application/json:
schema:
$ref: '#/components/schemas/AgentAuthError'
'401':
description: invalid_claim_token.
content:
application/json:
schema:
$ref: '#/components/schemas/AgentAuthError'
'409':
description: claimed_or_in_flight.
content:
application/json:
schema:
$ref: '#/components/schemas/AgentAuthError'
'410':
description: claim_expired.
content:
application/json:
schema:
$ref: '#/components/schemas/AgentAuthError'
operationId: postAgentIdentityClaim
x-operation-id-source: derived
/oauth2/token:
post:
x-audience: public
tags:
- agent-auth
summary: Token endpoint
description: 'authorization_code with PKCE, and refresh_token with rotation, for clients that sign a person in through the console. RFC 7523 jwt-bearer: trade an identity_assertion for a one-hour access token. urn:workos:agent-auth:grant-type:claim: poll a claim (RFC 8628 vocabulary). `resource` (RFC 8707) binds the token to the API (default) or the MCP server.'
requestBody:
required: true
content:
application/x-www-form-urlencoded:
schema:
$ref: '#/components/schemas/OAuthTokenRequest'
responses:
'200':
description: An access token. Never cached.
content:
application/json:
schema:
$ref: '#/components/schemas/OAuthTokenResponse'
'400':
description: RFC 6749 section 5.2 error.
content:
application/json:
schema:
$ref: '#/components/schemas/OAuthError'
'500':
description: 'server_error: this environment is not configured.'
content:
application/json:
schema:
$ref: '#/components/schemas/OAuthError'
operationId: postOauth2Token
x-operation-id-source: derived
/oauth2/revoke:
post:
x-audience: public
tags:
- agent-auth
summary: Revoke an access token (RFC 7009)
description: Answers 200 for a known, unknown or already revoked token alike, so it reveals nothing.
requestBody:
required: true
content:
application/x-www-form-urlencoded:
schema:
$ref: '#/components/schemas/OAuthRevokeRequest'
responses:
'200':
description: Done.
'400':
description: The body is malformed.
content:
application/json:
schema:
$ref: '#/components/schemas/OAuthError'
operationId: postOauth2Revoke
x-operation-id-source: derived
/agent/event/notify:
post:
x-audience: public
tags:
- agent-auth
summary: Receive a Security Event Token (RFC 8935)
description: A trusted provider pushes a signed SET (RFC 8417, Content-Type application/secevent+jwt). The identity-assertion-revoked event kills the registration and every token under it.
requestBody:
required: true
content:
application/secevent+jwt:
schema:
type: string
responses:
'202':
description: Accepted.
'400':
description: RFC 8935 section 2.4 error.
content:
application/json:
schema:
$ref: '#/components/schemas/SecurityEventError'
operationId: postAgentEventNotify
x-operation-id-source: derived
/agent-delegations:
get:
x-audience: public
tags:
- agent-auth
summary: List the agents you authorized
description: 'Your own agent delegations in your organization: claimed agent registrations, newest first, with what each may do and when it expires. Other members'' delegations are never listed.'
security:
- bearerAuth: []
responses:
'200':
description: Your delegations.
content:
application/json:
schema:
$ref: '#/components/schemas/AgentDelegationList'
'404':
description: The caller belongs to no organization.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
operationId: getAgentDelegations
x-operation-id-source: derived
/agent-delegations/{delegationId}:
delete:
x-audience: public
tags:
- agent-auth
summary: Revoke an agent
description: Revokes one of your own delegations. Every access token issued under it stops working at once, and its identity assertion can no longer be exchanged. Another member's delegation reads as not found.
security:
- bearerAuth: []
parameters:
- schema:
type: string
minLength: 1
example: dlg_7Hc2...
required: true
name: delegationId
in: path
responses:
'200':
description: Revoked.
content:
application/json:
schema:
$ref: '#/components/schemas/RevokeAgentDelegationResult'
'404':
description: No such delegation of yours.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
operationId: deleteAgentDelegationsByDelegationId
x-operation-id-source: derived
/oauth2/register:
post:
x-audience: public
tags:
- agent-auth
summary: Register an OAuth client (RFC 7591)
description: 'Dynamic client registration for public clients: PKCE, no client secret, token_endpoint_auth_method none. Redirect URIs must be https, http on a loopback host (any port), or a private-use scheme. A client can instead use the HTTPS URL of a Client ID Metadata Document as its client_id, with no registration.'
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/ClientRegistrationRequest'
responses:
'201':
description: Registered.
content:
application/json:
schema:
$ref: '#/components/schemas/ClientRegistrationResponse'
'400':
description: invalid_redirect_uri or invalid_client_metadata.
content:
application/json:
schema:
$ref: '#/components/schemas/AgentAuthError'
'429':
description: Too many registrations from this address.
content:
application/json:
schema:
$ref: '#/components/schemas/AgentAuthError'
operationId: postOauth2Register
x-operation-id-source: derived
components:
schemas:
ClientRegistrationRequest:
type: object
properties:
redirect_uris:
type: array
items:
type: string
example:
- http://127.0.0.1:33418/callback
client_name:
type: string
maxLength: 200
example: Claude Code
client_uri:
type: string
logo_uri:
type: string
grant_types:
type: array
items:
type: string
example:
- authorization_code
- refresh_token
response_types:
type: array
items:
type: string
token_endpoint_auth_method:
type: string
example: none
application_type:
type: string
example: native
required:
- redirect_uris
AgentIdentityRequest:
oneOf:
- type: object
properties:
type:
type: string
enum:
- anonymous
agent_name:
type: string
maxLength: 200
description: What the agent calls itself. Shown on the claim page as the agent's own words; the person names the delegation.
example: Release notes agent
required:
- type
- type: object
properties:
type:
type: string
enum:
- service_auth
login_hint:
type: string
minLength: 1
maxLength: 320
example: ada@example.com
agent_name:
type: string
maxLength: 200
description: What the agent calls itself. Shown on the claim page as the agent's own words; the person names the delegation.
example: Release notes agent
required:
- type
- login_hint
- type: object
properties:
type:
type: string
enum:
- identity_assertion
assertion_type:
type: string
description: urn:ietf:params:oauth:token-type:id-jag. The auth.md v0.1 value verified_email (with the email as the assertion) is accepted as service_auth.
example: urn:ietf:params:oauth:token-type:id-jag
assertion:
type: string
minLength: 1
maxLength: 16384
agent_name:
type: string
maxLength: 200
description: What the agent calls itself. Shown on the claim page as the agent's own words; the person names the delegation.
example: Release notes agent
required:
- type
- assertion_type
- assertion
InitiateClaimResponse:
type: object
properties:
registration_id:
type: string
claim_attempt_id:
type: string
status:
type: string
enum:
- initiated
expires_at:
type: string
claim_attempt:
$ref: '#/components/schemas/ClaimCeremony'
required:
- registration_id
- claim_attempt_id
- status
- expires_at
- claim_attempt
AgentRegistrationResponse:
type: object
properties:
registration_id:
type: string
example: reg_4kQ2...
registration_type:
type: string
enum:
- anonymous
- service_auth
- identity_assertion
identity_assertion:
type: string
assertion_expires:
type: string
pre_claim_scopes:
type: array
items:
type: string
scopes:
type: array
items:
type: string
claim_url:
type: string
claim_token:
type: string
description: Returned once. Keep it in memory for the claim, never longer.
claim_token_expires:
type: string
post_claim_scopes:
type: array
items:
type: string
claim:
$ref: '#/components/schemas/ClaimCeremony'
required:
- registration_id
- registration_type
SecurityEventError:
type: object
properties:
err:
type: string
example: invalid_issuer
description:
type: string
required:
- err
- description
ClaimCeremony:
type: object
properties:
user_code:
type: string
example: '482913'
verification_uri:
type: string
example: https://letsship.ai/claim?claim_attempt_token=cat_...
expires_in:
type: integer
example: 600
interval:
type: integer
example: 5
required:
- user_code
- verification_uri
- expires_in
- interval
ClientRegistrationResponse:
type: object
properties:
client_id:
type: string
example: cli_7Hc2...
client_id_issued_at:
type: integer
client_name:
type: string
redirect_uris:
type: array
items:
type: string
grant_types:
type: array
items:
type: string
response_types:
type: array
items:
type: string
token_endpoint_auth_method:
type: string
enum:
- none
required:
- client_id
- client_id_issued_at
- redirect_uris
- grant_types
- response_types
- token_endpoint_auth_method
ProtectedResourceMetadata:
type: object
properties:
resource:
type: string
resource_name:
type: string
authorization_servers:
type: array
items:
type: string
scopes_supported:
type: array
items:
type: string
bearer_methods_supported:
type: array
items:
type: string
resource_documentation:
type: string
required:
- resource
- resource_name
- authorization_servers
- scopes_supported
- bearer_methods_supported
- resource_documentation
OAuthTokenResponse:
type: object
properties:
access_token:
type: string
token_type:
type: string
enum:
- Bearer
expires_in:
type: integer
scope:
type: string
refresh_token:
type: string
identity_assertion:
type: string
assertion_expires:
type: string
required:
- access_token
- token_type
- expires_in
- scope
AgentDelegationList:
type: object
properties:
data:
type: array
items:
$ref: '#/components/schemas/AgentDelegation'
required:
- data
OAuthRevokeRequest:
type: object
properties:
token:
type: string
token_type_hint:
type: string
required:
- token
InitiateClaimRequest:
type: object
properties:
claim_token:
type: string
minLength: 1
maxLength: 200
email:
type: string
minLength: 1
maxLength: 320
example: ada@example.com
required:
- claim_token
- email
Jwks:
type: object
properties:
keys:
type: array
items:
type: object
additionalProperties: {}
required:
- keys
AuthorizationServerMetadata:
type: object
properties:
issuer:
type: string
token_endpoint:
type: string
revocation_endpoint:
type: string
jwks_uri:
type: string
grant_types_supported:
type: array
items:
type: string
scopes_supported:
type: array
items:
type: string
token_endpoint_auth_methods_supported:
type: array
items:
type: string
agent_auth:
type: object
additionalProperties: {}
required:
- issuer
- token_endpoint
- revocation_endpoint
- jwks_uri
- grant_types_supported
- scopes_supported
- token_endpoint_auth_methods_supported
- agent_auth
AgentAuthError:
type: object
properties:
error:
type: string
example: issuer_not_enabled
error_description:
type: string
max_age:
type: integer
registration_id:
type: string
registration_type:
type: string
claim_url:
type: string
claim_token:
type: string
description: Returned once. Keep it in memory for the claim, never longer.
claim_token_expires:
type: string
post_claim_scopes:
type: array
items:
type: string
claim:
$ref: '#/components/schemas/ClaimCeremony'
required:
- error
- error_description
AgentDelegation:
type: object
properties:
id:
type: string
example: dlg_7Hc...
name:
type: string
source:
type: string
description: anonymous, service_auth, identity_assertion or authorization_code.
orgId:
type: string
projectId:
type:
- string
- 'null'
scopes:
type: array
items:
type: string
providerName:
type:
- string
- 'null'
createdAt:
type: integer
expiresAt:
type: integer
revokedAt:
type:
- integer
- 'null'
lastUsedAt:
type:
- integer
- 'null'
required:
- id
- name
- source
- orgId
- projectId
- scopes
- providerName
- createdAt
- expiresAt
- revokedAt
- lastUsedAt
RevokeAgentDelegationResult:
type: object
properties:
kind:
type: string
enum:
- revoked
- already-revoked
delegationId:
type: string
revokedAt:
type: integer
revokedTokens:
type: integer
description: Live access tokens that stopped working with it.
required:
- kind
- delegationId
- revokedAt
- revokedTokens
Error:
type: object
properties:
category:
type: string
enum:
- auth
- rate_limit
- timeout
- validation
- infrastructure
- agent
- unknown
example: validation
title:
type: string
example: Invalid request
description:
type: string
example: The 'projectId' parameter must be a UUID.
retryable:
type: boolean
example: false
code:
type: string
example: credits_exhausted
required:
- category
- title
- description
- retryable
OAuthTokenRequest:
type: object
properties:
grant_type:
type: string
example: urn:ietf:params:oauth:grant-type:jwt-bearer
assertion:
type: string
claim_token:
type: string
resource:
type: string
description: 'RFC 8707 resource: the API (default) or the MCP server.'
code:
type: string
redirect_uri:
type: string
client_id:
type: string
code_verifier:
type: string
refresh_token:
type: string
required:
- grant_type
OAuthError:
type: object
properties:
error:
type: string
example: invalid_grant
error_description:
type: string
required:
- error
securitySchemes:
bearerAuth:
type: http
scheme: bearer
bearerFormat: API token (pat_ or mcp_ prefix)