curl --request GET \
--url https://api.example.com/profile \
--header 'Authorization: <authorization>'{
"userId": "019525fd-56a8-7db4-8c3e-2a1b4d6f8e0c",
"externalRef": "user_ext_abc123",
"email": "john@example.com",
"firstName": "John",
"lastName": "Doe",
"locale": "en-US",
"avatar": null,
"lastSignInAt": "2026-03-25T14:00:00.000Z",
"emailVerified": true,
"createdAt": "2026-01-15T10:00:00.000Z",
"updatedAt": "2026-03-25T14:00:00.000Z",
"organizations": [
{
"id": "019525fd-4c38-7e30-a5c1-b6e3f4d8a9c2",
"name": "Acme Inc",
"role": {
"slug": "admin",
"name": "Admin",
"permissions": ["users:read", "users:write", "roles:read", "roles:write"]
}
}
]
}
Obter o perfil do usuario autenticado.
curl --request GET \
--url https://api.example.com/profile \
--header 'Authorization: <authorization>'{
"userId": "019525fd-56a8-7db4-8c3e-2a1b4d6f8e0c",
"externalRef": "user_ext_abc123",
"email": "john@example.com",
"firstName": "John",
"lastName": "Doe",
"locale": "en-US",
"avatar": null,
"lastSignInAt": "2026-03-25T14:00:00.000Z",
"emailVerified": true,
"createdAt": "2026-01-15T10:00:00.000Z",
"updatedAt": "2026-03-25T14:00:00.000Z",
"organizations": [
{
"id": "019525fd-4c38-7e30-a5c1-b6e3f4d8a9c2",
"name": "Acme Inc",
"role": {
"slug": "admin",
"name": "Admin",
"permissions": ["users:read", "users:write", "roles:read", "roles:write"]
}
}
]
}
curl https://api.awsales.io/studio/profile \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN"
en-US, pt-BR, es-ES.{
"userId": "019525fd-56a8-7db4-8c3e-2a1b4d6f8e0c",
"externalRef": "user_ext_abc123",
"email": "john@example.com",
"firstName": "John",
"lastName": "Doe",
"locale": "en-US",
"avatar": null,
"lastSignInAt": "2026-03-25T14:00:00.000Z",
"emailVerified": true,
"createdAt": "2026-01-15T10:00:00.000Z",
"updatedAt": "2026-03-25T14:00:00.000Z",
"organizations": [
{
"id": "019525fd-4c38-7e30-a5c1-b6e3f4d8a9c2",
"name": "Acme Inc",
"role": {
"slug": "admin",
"name": "Admin",
"permissions": ["users:read", "users:write", "roles:read", "roles:write"]
}
}
]
}
| Status | Codigo | Descricao |
|---|---|---|
400 | validation_error | Entrada invalida ou campos obrigatorios ausentes |
401 | unauthorized | Autenticacao ausente ou invalida |
403 | forbidden | Permissoes insuficientes |
500 | internal_server_error | Ocorreu um erro inesperado |