Skip to main content
POST
/
auth
Initiate email authentication
curl --request POST \
  --url https://grid.squads.xyz/api/grid/v1/auth \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "email": "<string>",
  "provider": null
}'
{
  "created_at": "2023-11-07T05:31:56Z",
  "email": "<string>",
  "expires_at": "2023-11-07T05:31:56Z",
  "otp_id": "<string>",
  "otp_sent": true,
  "provider": "privy",
  "status": "<string>",
  "type": "<string>"
}

Authorizations

Authorization
string
header
required

Your Grid API key from the Grid Dashboard

Body

application/json
email
string
required
provider
enum<string> | null
Available options:
privy,
dynamic,
passkey,
turnkey,
external

Response

OTP sent successfully

created_at
string<date-time>
required
email
string
required
expires_at
string<date-time>
required
otp_sent
boolean
required
provider
enum<string>
required
Available options:
privy,
dynamic,
passkey,
turnkey,
external
status
string
required
type
string
required
otp_id
string | null