Profile#

User profile and auth methods

Get current user profile#

GET/me

Code Examples#

curl -X GET "https://platform.antfly.io/api/v1/me" \
-H "Authorization: Bearer YOUR_TOKEN"

Responses#

{
  "email": "user@example.com",
  "display_name": "string",
  "avatar_url": "https://platform.antfly.io",
  "two_factor_enabled": true,
  "email_verified": true
}

Update profile#

PATCH/me

Request Body#

{
  "display_name": "string",
  "avatar_url": "https://platform.antfly.io"
}

Code Examples#

curl -X PATCH "https://platform.antfly.io/api/v1/me" \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"display_name": "string",
"avatar_url": "https://platform.antfly.io"
}'

Responses#

{
  "email": "user@example.com",
  "display_name": "string",
  "avatar_url": "https://platform.antfly.io",
  "two_factor_enabled": true,
  "email_verified": true
}

Get authentication methods#

GET/me/auth-methods

Returns password status and linked OAuth providers

Code Examples#

curl -X GET "https://platform.antfly.io/api/v1/me/auth-methods" \
-H "Authorization: Bearer YOUR_TOKEN"

Responses#

{
  "has_password": true,
  "oauth_providers": [
    {
      "provider": "string",
      "provider_email": "string",
      "linked_at": "2026-01-01T00:00:00Z",
      "last_used_at": "2026-01-01T00:00:00Z"
    }
  ]
}