AGG is currently in alpha. APIs, components, and docs may change.
curl --request POST \
--url https://api.agg.market/auth/start \
--header 'Content-Type: application/json' \
--header 'x-app-id: <api-key>' \
--data '
{
"provider": "google",
"redirectUrl": "<string>",
"email": "jsmith@example.com",
"turnstileToken": "<string>",
"earlyAccessCode": "<string>"
}
'{
"type": "redirect",
"url": "<string>",
"success": true,
"nonce": "<string>",
"statement": "<string>",
"siteKey": "<string>"
}Initiates an auth flow. Required fields depend on the provider:
| Provider | Required fields | Response type |
|---|---|---|
google | redirectUrl | redirect (OAuth URL) |
twitter | redirectUrl | redirect (OAuth URL) |
email | email, optionally redirectUrl | magic_link |
siwe | (none) | nonce |
siws | (none) | nonce |
When bot protection is active, wallet/email auth may return challenge_required. Render a Cloudflare Turnstile widget using the returned siteKey and resubmit with the resulting turnstileToken.
curl --request POST \
--url https://api.agg.market/auth/start \
--header 'Content-Type: application/json' \
--header 'x-app-id: <api-key>' \
--data '
{
"provider": "google",
"redirectUrl": "<string>",
"email": "jsmith@example.com",
"turnstileToken": "<string>",
"earlyAccessCode": "<string>"
}
'{
"type": "redirect",
"url": "<string>",
"success": true,
"nonce": "<string>",
"statement": "<string>",
"siteKey": "<string>"
}Documentation Index
Fetch the complete documentation index at: https://docs.agg.market/llms.txt
Use this file to discover all available pages before exploring further.
Your application ID. Required for all app-tier and user-tier routes.