## Documentation Index Fetch the complete documentation index at: https://docs.relay.link/llms.txt Use this file to discover all available pages before exploring further.
## Agent Instructions To quote bridges and swaps, look up chains and tokens, or track Relay transactions from an agent, use the Relay MCP server: npx -y @relayprotocol/relay-mcp. It is read-only and does not sign or broadcast transactions. Setup: https://docs.relay.link/resources/developing-with-ai.md For Relay Protocol's trust model, security architecture, and audits, see https://docs.relay.link/references/protocol/security.md. For address screening, see https://docs.relay.link/security/transaction-screening.md.Create Access Token
Exchange an API key for a short-lived access token that a browser or mobile client can send to Relay
[!NOTE] Mint tokens on your backend and send them from the client. For when to use them, limits, and errors, see the Access Tokens guide.
OpenAPI
openapi: 3.0.3
info:
title: Cross-chain solver
version: 1.0.0
servers:
- url: https://api.relay.link
description: Mainnet API
- url: https://api.testnets.relay.link
description: Testnet API
security: []
paths:
/access-tokens:
post:
description: >-
Exchange a tier 2+ backend API key for a 15-minute public API session
JWT.
parameters:
- schema:
type: string
minLength: 1
in: header
name: x-api-key
required: true
requestBody:
content:
application/json:
schema:
type: object
additionalProperties: false
properties: {}
responses:
'200':
description: Default Response
content:
application/json:
schema:
type: object
additionalProperties: false
required:
- token
- tokenType
- expiresAt
- scope
properties:
token:
type: string
tokenType:
type: string
enum:
- Bearer
expiresAt:
type: string
format: date-time
scope:
type: string
enum:
- public-api
'400':
description: Default Response
content:
application/json:
schema:
type: object
properties:
message:
type: string
errorCode:
type: string
'401':
description: Default Response
content:
application/json:
schema:
type: object
properties:
message:
type: string
errorCode:
type: string
'403':
description: Default Response
content:
application/json:
schema:
type: object
properties:
message:
type: string
errorCode:
type: string
'429':
description: Default Response
content:
application/json:
schema:
type: object
properties:
message:
type: string
errorCode:
type: string
'500':
description: Default Response
content:
application/json:
schema:
type: object
properties:
message:
type: string
errorCode:
type: string
This documentation is built and hosted on Mintlify, a developer documentation platform.