Agent authorization
Let an agent register itself, get a person to claim it, and trade its assertion for access tokens. Also list and revoke the agents that you authorized.
The metadata.
application/json- response
issuer*stringtoken_endpoint*stringrevocation_endpoint*stringjwks_uri*stringgrant_types_supported*array<string>scopes_supported*array<string>token_endpoint_auth_methods_supported*array<string>agent_auth*curl -X GET 'https://api.letsship.ai/v1/oauth/authorization-server'{ "issuer": "string", "token_endpoint": "string", "revocation_endpoint": "string", "jwks_uri": "string", "grant_types_supported": [ "string" ], "scopes_supported": [ "string" ], "token_endpoint_auth_methods_supported": [ "string" ], "agent_auth": { "property1": null, "property2": null }}resource*string1 <= lengthThe metadata.
application/json- response
resource*stringresource_name*stringauthorization_servers*array<string>scopes_supported*array<string>bearer_methods_supported*array<string>resource_documentation*stringcurl -X GET 'https://api.letsship.ai/v1/oauth/protected-resource?resource=string'{ "resource": "string", "resource_name": "string", "authorization_servers": [ "string" ], "scopes_supported": [ "string" ], "bearer_methods_supported": [ "string" ], "resource_documentation": "string"}curl -X GET 'https://api.letsship.ai/v1/oauth2/jwks'{ "keys": [ { "property1": null, "property2": null } ]}application/json- body
type*"anonymous""anonymous"agent_name?stringWhat the agent calls itself. Shown on the claim page as the agent's own words; the person names the delegation.
length <= 200Registered.
application/json- response
registration_id*stringregistration_type*string"anonymous""service_auth""identity_assertion"identity_assertion?stringassertion_expires?stringpre_claim_scopes?array<string>scopes?array<string>claim_url?stringclaim_token?stringReturned once. Keep it in memory for the claim, never longer.
claim_token_expires?stringpost_claim_scopes?array<string>claim?curl -X POST 'https://api.letsship.ai/v1/agent/identity' \ -H 'Content-Type: application/json' \ -d '{ "type": "anonymous"}'{ "registration_id": "string", "registration_type": "anonymous", "identity_assertion": "string", "assertion_expires": "string", "pre_claim_scopes": [ "string" ], "scopes": [ "string" ], "claim_url": "string", "claim_token": "string", "claim_token_expires": "string", "post_claim_scopes": [ "string" ], "claim": { "user_code": "string", "verification_uri": "string", "expires_in": 0, "interval": 0 }}application/json- body
claim_token*string1 <= length <= 200email*string1 <= length <= 320Claim started.
application/json- response
registration_id*stringclaim_attempt_id*stringstatus*"initiated""initiated"expires_at*stringclaim_attempt*curl -X POST 'https://api.letsship.ai/v1/agent/identity/claim' \ -H 'Content-Type: application/json' \ -d '{ "claim_token": "string", "email": "string"}'{ "registration_id": "string", "claim_attempt_id": "string", "status": "initiated", "expires_at": "string", "claim_attempt": { "user_code": "string", "verification_uri": "string", "expires_in": 0, "interval": 0 }}application/x-www-form-urlencoded- body
grant_type*stringassertion?stringclaim_token?stringresource?stringRFC 8707 resource: the API (default) or the MCP server.
code?stringredirect_uri?stringclient_id?stringcode_verifier?stringrefresh_token?stringAn access token. Never cached.
application/json- response
access_token*stringtoken_type*"Bearer""Bearer"expires_in*integerscope*stringrefresh_token?stringidentity_assertion?stringassertion_expires?stringcurl -X POST 'https://api.letsship.ai/v1/oauth2/token' \ -H 'Content-Type: application/x-www-form-urlencoded' \ -d 'grant_type=string'{ "access_token": "string", "token_type": "Bearer", "expires_in": 0, "scope": "string", "refresh_token": "string", "identity_assertion": "string", "assertion_expires": "string"}application/x-www-form-urlencoded- body
token*stringtoken_type_hint?stringDone.
curl -X POST 'https://api.letsship.ai/v1/oauth2/revoke' \ -H 'Content-Type: application/x-www-form-urlencoded' \ -d 'token=string'body*stringapplication/secevent+jwtAccepted.
curl -X POST 'https://api.letsship.ai/v1/agent/event/notify' \ -H 'Content-Type: application/secevent+jwt' \ -d 'string'application/json- body
claimAttemptToken*string1 <= length <= 200The claim view.
application/json- response
state*stringready: show the form. invalid: no registration matches the link. claimed: already done. expired: the claim or its code expired. locked: too many wrong codes. wrong_account: started for another email.
"ready""invalid""claimed""expired""locked""wrong_account"signedInEmail*stringboundEmail*string|nullregistration*|nulladvisories*array<>grantOptions*|null|nullcodeExpiresAt*integer|nullattemptsLeft*integer|nullcurl -X POST 'https://api.letsship.ai/v1/agent/claims/resolve' \ -H 'Content-Type: application/json' \ -d '{ "claimAttemptToken": "string"}'{ "state": "ready", "signedInEmail": "string", "boundEmail": "string", "registration": { "id": "string", "kind": "anonymous", "agentName": "string", "providerName": "string" }, "advisories": [ { "kind": "first_time_account", "providerName": "string" } ], "grantOptions": { "orgs": [ { "id": "string", "name": "string", "role": "string", "grantableScopes": [ "string" ], "projects": [ { "id": "string", "name": "string" } ] } ], "defaultOrgId": "string", "defaultExpiresInDays": 0, "maxExpiresInDays": 0 }, "codeExpiresAt": 0, "attemptsLeft": 0}application/json- body
orgId*string1 <= lengthscopes?array<string>items <= 31[]projectId?string1 <= lengthexpiresInDays?integer1 <= value <= 365name*string1 <= length <= 100claimAttemptToken*string1 <= length <= 200userCode*string^\d{6}$Claimed.
application/json- response
status*"claimed""claimed"delegation*curl -X POST 'https://api.letsship.ai/v1/agent/claims/complete' \ -H 'Content-Type: application/json' \ -d '{ "orgId": "string", "name": "string", "claimAttemptToken": "string", "userCode": "string"}'{ "status": "claimed", "delegation": { "id": "string", "name": "string", "source": "string", "orgId": "string", "projectId": "string", "scopes": [ "string" ], "providerName": "string", "createdAt": 0, "expiresAt": 0, "revokedAt": 0, "lastUsedAt": 0 }}bearerAuthAuthorizationBearer <API token (pat_ or mcp_ prefix)>Your delegations.
application/json- response
data*array<>curl -X GET 'https://api.letsship.ai/v1/agent-delegations'{ "data": [ { "id": "string", "name": "string", "source": "string", "orgId": "string", "projectId": "string", "scopes": [ "string" ], "providerName": "string", "createdAt": 0, "expiresAt": 0, "revokedAt": 0, "lastUsedAt": 0 } ]}bearerAuthAuthorizationBearer <API token (pat_ or mcp_ prefix)>delegationId*string1 <= lengthRevoked.
application/json- response
kind*string"revoked""already-revoked"delegationId*stringrevokedAt*integerrevokedTokens*integerLive access tokens that stopped working with it.
curl -X DELETE 'https://api.letsship.ai/v1/agent-delegations/string'{ "kind": "revoked", "delegationId": "string", "revokedAt": 0, "revokedTokens": 0}application/json- body
redirect_uris*array<string>client_name?stringlength <= 200client_uri?stringlogo_uri?stringgrant_types?array<string>response_types?array<string>token_endpoint_auth_method?stringapplication_type?stringRegistered.
application/json- response
client_id*stringclient_id_issued_at*integerclient_name?stringredirect_uris*array<string>grant_types*array<string>response_types*array<string>token_endpoint_auth_method*"none""none"curl -X POST 'https://api.letsship.ai/v1/oauth2/register' \ -H 'Content-Type: application/json' \ -d '{ "redirect_uris": [ "string" ]}'{ "client_id": "string", "client_id_issued_at": 0, "client_name": "string", "redirect_uris": [ "string" ], "grant_types": [ "string" ], "response_types": [ "string" ], "token_endpoint_auth_method": "none"}application/json- body
response_type?stringclient_id?stringredirect_uri?stringcode_challenge?stringcode_challenge_method?stringstate?stringlength <= 2000scope?stringlength <= 2000resource?stringWhat the consent page shows or does.
application/json- response
kind*"consent""consent"requestId*stringclient*redirectHost*stringWhere the browser goes after a decision. The page must show it.
redirectIsLoopback*booleanresource*string"api""mcp""mcp-chatgpt""a2a"requestedScopes*array<string>offlineAccess*booleansignedInEmail*stringgrantOptions*curl -X POST 'https://api.letsship.ai/v1/oauth/authorizations' \ -H 'Content-Type: application/json' \ -d '{}'{ "kind": "consent", "requestId": "string", "client": { "clientId": "string", "name": "string", "clientUri": "string", "registration": "dcr" }, "redirectHost": "string", "redirectIsLoopback": true, "resource": "api", "requestedScopes": [ "string" ], "offlineAccess": true, "signedInEmail": "string", "grantOptions": { "orgs": [ { "id": "string", "name": "string", "role": "string", "grantableScopes": [ "string" ], "projects": [ { "id": "string", "name": "string" } ] } ], "defaultOrgId": "string", "defaultExpiresInDays": 0, "maxExpiresInDays": 0 }}requestId*string1 <= lengthapplication/json- body
orgId*string1 <= lengthscopes?array<string>items <= 31[]projectId?string1 <= lengthexpiresInDays?integer1 <= value <= 365name?string1 <= length <= 100Where to send the browser.
application/json- response
redirectTo*stringThe client's redirect URI with code (or error), state and iss.
curl -X POST 'https://api.letsship.ai/v1/oauth/authorizations/string/approve' \ -H 'Content-Type: application/json' \ -d '{ "orgId": "string"}'{ "redirectTo": "string"}requestId*string1 <= lengthWhere to send the browser.
application/json- response
redirectTo*stringThe client's redirect URI with code (or error), state and iss.
curl -X POST 'https://api.letsship.ai/v1/oauth/authorizations/string/deny'{ "redirectTo": "string"}How is this page?
Users
Read and change the account of the authenticated user.
MCP server
Assign Linear, Jira or GitHub issues to an AI coding agent team. Its coding agents plan and build each change, run code review and tests, and open a pull request in your GitHub repository. With this MCP server, your assistant can file missions, follow them, send instructions and read the proof of each run.