Skip to main content
POST

Overview

Starts the challenge-response flow used to mint a partner API key. Submit the partner wallet address and partner ID; GRAIL returns a short-lived nonce message that must be signed with the partner wallet’s private key and exchanged via Create API Key.
The challenge expires 2 minutes after it is issued. Complete the signing and exchange before then.
This endpoint is rate-limited to 10 requests per minute per IP. Exceeding the limit returns 429 rate_limited.

Request Body

string
required
The partner wallet address requesting the key. Must be an active wallet registered under the given partner.
string
required
The partner ID (UUID) the wallet belongs to. Provided by ORO when your partner is onboarded.

Response

string
Unique identifier for this challenge, prefixed ch_. Embedded in the message.
string
The exact message to sign with the partner wallet. Format: Sign this message to generate an API key for GRAIL: ch_<uuid>.
string
ISO-8601 timestamp. The challenge is unusable after this time.

Errors