curl -X GET 'https://api.goatpay.com.br/v1/me' \
-H 'Authorization: Bearer gp_oat_live_...'
curl -X GET 'https://api.goatpay.com.br/v1/me' \
-H 'X-API-Key: gp_live_...'
{
"success": true,
"message": "Conta identificada",
"data": {
"id": "clx...",
"name": "Minha Empresa",
"status": "ACTIVE",
"platformBrand": "GOATPAY"
},
"requestId": "req_abc"
}
Protocolo
Identidade da conta
Retorna a conta merchant autorizada pelo token OAuth ou API key.
GET
/
me
curl -X GET 'https://api.goatpay.com.br/v1/me' \
-H 'Authorization: Bearer gp_oat_live_...'
curl -X GET 'https://api.goatpay.com.br/v1/me' \
-H 'X-API-Key: gp_live_...'
{
"success": true,
"message": "Conta identificada",
"data": {
"id": "clx...",
"name": "Minha Empresa",
"status": "ACTIVE",
"platformBrand": "GOATPAY"
},
"requestId": "req_abc"
}
Identifica a conta merchant associada à credencial. Com OAuth, use access token (
Retorna o resource owner (conta merchant autorizada), não dados pessoais do usuário que clicou em autorizar.
gp_oat_live_...) e scope account:read. Com API key, use X-API-Key e permissão account/balance.
curl -X GET 'https://api.goatpay.com.br/v1/me' \
-H 'Authorization: Bearer gp_oat_live_...'
curl -X GET 'https://api.goatpay.com.br/v1/me' \
-H 'X-API-Key: gp_live_...'
{
"success": true,
"message": "Conta identificada",
"data": {
"id": "clx...",
"name": "Minha Empresa",
"status": "ACTIVE",
"platformBrand": "GOATPAY"
},
"requestId": "req_abc"
}
string
Bearer gp_oat_live_... — access token OAuth2. Requer scope account:read.string
gp_live_... — chave de API com permissão account/balance.Use uma das autenticações acima. Erro
403 insufficient_scope se o token OAuth não inclui account:read.
