Stage 1 of the two-stage enrollment flow — returns a signable session-key message for the user to sign in their wallet.
Stage 1 of the two-stage enrollment flow. Validates that theDocumentation Index
Fetch the complete documentation index at: https://docs.glider.fi/llms.txt
Use this file to discover all available pages before exploring further.
strategyId
belongs to your tenant, peeks the user’s next available account index, and
returns the signable message the user must sign plus the round-trip values
(flowId, accountIndex, agentAccountId) that stage 2
(POST /v2/enroll) will need.
Wallet addresses are exchanged as CAIP-10
account identifiers. ownerAccountId and agentAccountId use the
chain-agnostic EVM form eip155:0:<address> — a single wallet works on every
EIP-155 chain. Only EVM wallets are supported today.
x-api-key header (required)enroll:writeflowId is the idempotency anchor for the matching
POST /v2/enroll call — it is valid for 24 hours. Re-submitting the same
flowId on stage 2 replays the cached response.
The accountIndex is peeked, not reserved: repeated stage-1 calls for
the same user return the same candidate index, and the index only advances
when stage 2 commits successfully. Retries, abandoned flows, and tests do
not burn account indices.
Unknown chains in chainIds are rejected with 400 before any enrollment
state is created — the allowed list is in the error details.
Common error responses:
400 when the request body is invalid, the strategyId doesn’t exist or
your API key cannot access it, or chainIds contains an unsupported chain401 when x-api-key header is missing or the key is invalid403 when the API key lacks the enroll:write scope500 on unexpected server errors