Skip to main content
POST
/
v1
/
programmatic
/
verify-email
Verify Email
curl --request POST \
  --url https://auth.contra.id/v1/programmatic/verify-email
The moment you receive your first api_key.

Request

curl -X POST https://auth.contra.id/v1/programmatic/verify-email \
  -H "Content-Type: application/json" \
  -d '{
    "email": "you@yourco.com",
    "code":  "A3K9F2"
  }'

Response · 200

{
  "access_token":  "eyJ…",
  "refresh_token": "eyJ…",
  "expires_in":    86400,
  "organization": { "uuid": "…", "name": "Your Co" },
  "application":  {
    "uuid":     "app_…",
    "client_id":"cli_…",
    "api_key":  "ctr_42LvSyZn5ioLSyBknquXYK"
  }
}
application.api_key becomes your x-api-key for all /v1/* calls.

Next

export CONTRA_KEY="ctr_42LvSyZn…"
curl https://identity.contra.id/v1/workflows -H "x-api-key: $CONTRA_KEY"