Synchronity Auth API
Agent registration, delegation, and token management
Agent registration, delegation, and token management
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/synchronity-app:synchronity-app-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: Synchronity Auth API
version: 0.1.0
description: 'The Synchronity Gateway API is the central HTTP interface that AI agents call to
discover connected stores, search products, manage carts, and execute checkout
across any Synchronity-registered e-commerce platform.
COVERAGE: these operations read only from stores a user has connected to their
Synchronity account, live from each merchant. Product data, prices, stock, and
orders are specific to those connected stores and are not derived from public web
listings. listSites returns the connected stores with their IDs and matches partial
or approximate store names; every other operation takes a site_id. Checkout and
payment complete only with the buyer''s explicit one-time-code approval.
All endpoints require a valid Agent Identity Token (AIT) — a signed RS256 JWT —
passed as a Bearer token. Scopes within the AIT control which operations are permitted.
See the Synchronity Protocol Specification (APS) for full authentication and schema details.'
contact:
name: Synchronity Team
url: https://synchronity.app
license:
name: Proprietary
servers:
- url: https://api.synchronity.app
description: Synchronity Gateway
security:
- BearerAIT: []
tags:
- name: Auth
description: Agent registration, delegation, and token management
paths:
/v1/auth/agents/register:
post:
operationId: registerAgent
tags:
- Auth
summary: Register an AI agent and receive an Agent Identity Token
description: 'Registers an AI agent with the Synchronity Gateway and returns a signed
RS256 Agent Identity Token (AIT). No prior authentication required.
Rate-limited by IP.'
security: []
x-agentmesh-scope: public
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/AgentRegistrationRequest'
responses:
'201':
description: Agent registered and token issued.
headers:
X-AgentMesh-Request-Id:
$ref: '#/components/headers/X-AgentMesh-Request-Id'
content:
application/json:
schema:
$ref: '#/components/schemas/AgentRegistrationResponse'
'400':
$ref: '#/components/responses/BadRequest'
'429':
$ref: '#/components/responses/RateLimited'
'500':
$ref: '#/components/responses/InternalError'
x-openai-isConsequential: false
/v1/auth/delegate:
post:
operationId: initiateOAuthDeviceFlow
tags:
- Auth
summary: Initiate OAuth Device Flow for human delegation
description: Starts a Device Authorization Grant (RFC 8628) flow. If email is provided, it initiates the in-chat Email-OTP flow and sends a 6-digit OTP to the user (submit via submitDelegationOtp). If email is omitted, it returns a browser authorization link.
x-agentmesh-scope: manage_cart
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/DelegateRequest'
responses:
'200':
description: Device flow initiated.
headers:
X-AgentMesh-Request-Id:
$ref: '#/components/headers/X-AgentMesh-Request-Id'
content:
application/json:
schema:
$ref: '#/components/schemas/DelegateResponse'
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
'429':
$ref: '#/components/responses/RateLimited'
'500':
$ref: '#/components/responses/InternalError'
x-openai-isConsequential: false
/v1/auth/delegate/status:
get:
operationId: getDelegationStatus
tags:
- Auth
summary: Check delegation status
description: Polls the status of the OAuth device flow delegation request using the device_code. If approved, returns the delegation token (ait). Wait at least 5 seconds between polls.
security: []
parameters:
- name: device_code
in: query
required: true
description: The device_code returned from the delegation initiation request.
schema:
type: string
responses:
'200':
description: Status checked successfully.
headers:
X-AgentMesh-Request-Id:
$ref: '#/components/headers/X-AgentMesh-Request-Id'
content:
application/json:
schema:
$ref: '#/components/schemas/DelegateStatusResponse'
'400':
$ref: '#/components/responses/BadRequest'
'404':
$ref: '#/components/responses/NotFound'
'429':
$ref: '#/components/responses/RateLimited'
'500':
$ref: '#/components/responses/InternalError'
x-openai-isConsequential: false
/v1/auth/delegate/otp/verify:
post:
operationId: submitDelegationOtp
tags:
- Auth
summary: Submit delegation OTP
description: Submit the email OTP code read from the customer to verify human presence and complete the delegation flow.
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/DelegateOtpVerifyRequest'
responses:
'200':
description: OTP verified successfully. Returns delegation token.
headers:
X-AgentMesh-Request-Id:
$ref: '#/components/headers/X-AgentMesh-Request-Id'
content:
application/json:
schema:
$ref: '#/components/schemas/DelegateOtpVerifyResponse'
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
'404':
$ref: '#/components/responses/NotFound'
'429':
$ref: '#/components/responses/RateLimited'
'500':
$ref: '#/components/responses/InternalError'
x-openai-isConsequential: false
/v1/auth/token/refresh:
post:
operationId: refreshAgentToken
tags:
- Auth
summary: Rotate an expiring Agent Identity Token
description: 'Exchanges a valid (non-expired) AIT for a new one. The old token
remains valid until its original `exp`. Used for long-running agent sessions.'
x-agentmesh-scope: any
requestBody:
required: false
content:
application/json:
schema:
$ref: '#/components/schemas/TokenRefreshRequest'
responses:
'200':
description: New token issued.
headers:
X-AgentMesh-Request-Id:
$ref: '#/components/headers/X-AgentMesh-Request-Id'
content:
application/json:
schema:
$ref: '#/components/schemas/TokenRefreshResponse'
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'429':
$ref: '#/components/responses/RateLimited'
'500':
$ref: '#/components/responses/InternalError'
x-openai-isConsequential: false
components:
schemas:
DelegateOtpVerifyRequest:
type: object
required:
- device_code
- code
properties:
device_code:
type: string
code:
type: string
pattern: ^\d{6}$
description: 6-digit OTP code.
DelegateResponse:
type: object
required:
- device_code
- user_code
- verification_uri
- expires_in
properties:
device_code:
type: string
user_code:
type: string
example: AGNT-7X4K
verification_uri:
type: string
format: uri
description: Base authorization URL. The user must visit this URL and enter the user_code.
verification_uri_complete:
type: string
format: uri
description: Direct authorization URL with user_code pre-filled. Prefer sharing this link with the user so they can approve in one click.
expires_in:
type: integer
interval:
type: integer
DelegateStatusResponse:
type: object
required:
- status
properties:
status:
type: string
enum:
- pending
- approved
- denied
- expired
description: The current status of the delegation request.
ait:
type: string
description: The delegation token (AIT). Returned only when status is 'approved'.
TokenRefreshRequest:
type: object
properties:
ttl:
type: integer
minimum: 60
maximum: 86400
TokenRefreshResponse:
type: object
required:
- token
- expires_at
properties:
token:
type: string
expires_at:
type: string
format: date-time
AgentRegistrationResponse:
type: object
required:
- agent_id
- token
- expires_at
properties:
agent_id:
type: string
example: agt_01HZABCDEFGH
token:
type: string
description: The Agent Identity Token (RS256 JWT).
expires_at:
type: string
format: date-time
AMPSError:
type: object
required:
- error
properties:
error:
type: object
required:
- code
- message
properties:
code:
type: string
example: NOT_FOUND
message:
type: string
example: The requested resource could not be found.
details:
type: object
additionalProperties: true
DelegateRequest:
type: object
required:
- scopes
- site_id
properties:
scopes:
type: array
items:
type: string
site_id:
type: string
email:
type: string
format: email
description: User email. When provided, starts the in-chat Email-OTP flow instead of browser link flow.
marketing_opt_in:
type: boolean
description: Set true only if the buyer explicitly opted in to marketing emails; subscribes their email to the consumer mailing list. Never set by default.
AgentRegistrationRequest:
type: object
required:
- agent_name
- scopes
properties:
agent_name:
type: string
description: Human-readable name for the agent.
example: ShoppingAssistant/1.0
scopes:
type: array
items:
type: string
enum:
- read_products
- manage_cart
- execute_checkout
- read_orders
minItems: 1
example:
- read_products
- manage_cart
- execute_checkout
audience:
type: string
description: Site ID to scope this token to, or omit for cross-site token (aud='*').
example: site_abc123
ttl:
type: integer
description: Token TTL in seconds. Default 3600, max 86400.
minimum: 60
maximum: 86400
default: 3600
DelegateOtpVerifyResponse:
type: object
required:
- status
- delegation_token
- expires_at
properties:
status:
type: string
enum:
- approved
delegation_token:
type: string
expires_at:
type: string
format: date-time
responses:
RateLimited:
description: Rate limit exceeded.
headers:
Retry-After:
$ref: '#/components/headers/Retry-After'
X-RateLimit-Limit:
$ref: '#/components/headers/X-RateLimit-Limit'
X-RateLimit-Remaining:
$ref: '#/components/headers/X-RateLimit-Remaining'
X-RateLimit-Reset:
$ref: '#/components/headers/X-RateLimit-Reset'
X-AgentMesh-Request-Id:
$ref: '#/components/headers/X-AgentMesh-Request-Id'
content:
application/json:
schema:
$ref: '#/components/schemas/AMPSError'
example:
error:
code: RATE_LIMIT_EXCEEDED
message: Rate limit exceeded. Retry after 47 seconds.
BadRequest:
description: Malformed request or validation error.
headers:
X-AgentMesh-Request-Id:
$ref: '#/components/headers/X-AgentMesh-Request-Id'
content:
application/json:
schema:
$ref: '#/components/schemas/AMPSError'
Unauthorized:
description: Missing or invalid Agent Identity Token.
headers:
X-AgentMesh-Request-Id:
$ref: '#/components/headers/X-AgentMesh-Request-Id'
content:
application/json:
schema:
$ref: '#/components/schemas/AMPSError'
example:
error:
code: UNAUTHORIZED
message: Missing or invalid Agent Identity Token.
InternalError:
description: Unexpected server error.
headers:
X-AgentMesh-Request-Id:
$ref: '#/components/headers/X-AgentMesh-Request-Id'
content:
application/json:
schema:
$ref: '#/components/schemas/AMPSError'
Forbidden:
description: AIT lacks the required scope for this operation.
headers:
X-AgentMesh-Request-Id:
$ref: '#/components/headers/X-AgentMesh-Request-Id'
content:
application/json:
schema:
$ref: '#/components/schemas/AMPSError'
example:
error:
code: INSUFFICIENT_SCOPE
message: This operation requires the execute_checkout scope.
NotFound:
description: The requested resource does not exist.
headers:
X-AgentMesh-Request-Id:
$ref: '#/components/headers/X-AgentMesh-Request-Id'
content:
application/json:
schema:
$ref: '#/components/schemas/AMPSError'
headers:
X-RateLimit-Remaining:
description: Requests remaining in current window.
schema:
type: integer
example: 42
X-RateLimit-Limit:
description: Maximum requests per minute for this agent.
schema:
type: integer
example: 60
X-AgentMesh-Request-Id:
description: Unique request identifier for audit trail correlation.
schema:
type: string
example: req_01HZABCDEFGHIJKLMNOP
X-RateLimit-Reset:
description: Unix epoch timestamp when the rate limit window resets.
schema:
type: integer
example: 1746100800
Retry-After:
description: Seconds to wait before retrying after a 429 response.
schema:
type: integer
example: 47
securitySchemes:
BearerAIT:
type: http
scheme: bearer
bearerFormat: JWT
description: 'RS256-signed Agent Identity Token (AIT). Obtain via POST /v1/auth/agents/register.
Transmit as: `Authorization: Bearer <AIT>`
'