Profile
User profile and auth methods
Get current user profile
GET
/meCode Examples
curl -X GET "https://platform.antfly.io/api/v1/me" \
-H "Authorization: Bearer YOUR_TOKEN"const response = await fetch("https://platform.antfly.io/api/v1/me", {
method: "GET",
headers: {
Authorization: "Bearer YOUR_TOKEN"
}
});
const data = await response.json();Responses
{
"email": "user@example.com",
"display_name": "string",
"avatar_url": "https://platform.antfly.io",
"two_factor_enabled": true,
"email_verified": true
}{
"error": "string",
"message": "string"
}Update profile
PATCH
/meRequest 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"
}'const response = await fetch("https://platform.antfly.io/api/v1/me", {
method: "PATCH",
headers: {
Authorization: "Bearer YOUR_TOKEN",
"Content-Type": "application/json"
},
body: JSON.stringify({
"display_name": "string",
"avatar_url": "https://platform.antfly.io"
})
});
const data = await response.json();Responses
{
"email": "user@example.com",
"display_name": "string",
"avatar_url": "https://platform.antfly.io",
"two_factor_enabled": true,
"email_verified": true
}{
"error": "string",
"message": "string"
}{
"error": "string",
"message": "string"
}Get authentication methods
GET
/me/auth-methodsReturns 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"const response = await fetch("https://platform.antfly.io/api/v1/me/auth-methods", {
method: "GET",
headers: {
Authorization: "Bearer YOUR_TOKEN"
}
});
const data = await response.json();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"
}
]
}{
"error": "string",
"message": "string"
}