curl -X GET 'https://api.goatpay.com.br/v1/oauth-apps/list' \
-H 'X-API-Key: gp_live_SUA_CHAVE'
{
"success": true,
"message": "Aplicações OAuth listadas com sucesso",
"data": {
"items": [
{
"id": "clx_app_01",
"name": "ERP Parceiro",
"description": "Integração de cobranças",
"status": "ACTIVE",
"allowedScopes": ["account:read", "payments:read"],
"developerName": "Sua Empresa",
"website": "https://sua-app.com",
"lastUsedAt": "2026-09-03T18:30:00.000Z",
"createdAt": "2026-08-15T10:00:00.000Z",
"clients": [
{
"id": "clx_client_dev",
"environment": "DEV",
"clientId": "gp_oauth_dev_a1b2c3...",
"clientSecretPreview": "gp_oauth_dev_...****",
"status": "ACTIVE",
"redirectUris": [
{ "id": "clx_uri_1", "uri": "http://localhost:3000/oauth/callback" }
]
}
]
}
]
},
"requestId": "req_oauth_list"
}
Gestão
Listar aplicações OAuth
Lista aplicações OAuth registradas na conta.
GET
/
oauth-apps
/
list
curl -X GET 'https://api.goatpay.com.br/v1/oauth-apps/list' \
-H 'X-API-Key: gp_live_SUA_CHAVE'
{
"success": true,
"message": "Aplicações OAuth listadas com sucesso",
"data": {
"items": [
{
"id": "clx_app_01",
"name": "ERP Parceiro",
"description": "Integração de cobranças",
"status": "ACTIVE",
"allowedScopes": ["account:read", "payments:read"],
"developerName": "Sua Empresa",
"website": "https://sua-app.com",
"lastUsedAt": "2026-09-03T18:30:00.000Z",
"createdAt": "2026-08-15T10:00:00.000Z",
"clients": [
{
"id": "clx_client_dev",
"environment": "DEV",
"clientId": "gp_oauth_dev_a1b2c3...",
"clientSecretPreview": "gp_oauth_dev_...****",
"status": "ACTIVE",
"redirectUris": [
{ "id": "clx_uri_1", "uri": "http://localhost:3000/oauth/callback" }
]
}
]
}
]
},
"requestId": "req_oauth_list"
}
Permissão:
oauth-apps/list.
string
required
Chave de API com permissão
oauth-apps/list.curl -X GET 'https://api.goatpay.com.br/v1/oauth-apps/list' \
-H 'X-API-Key: gp_live_SUA_CHAVE'
{
"success": true,
"message": "Aplicações OAuth listadas com sucesso",
"data": {
"items": [
{
"id": "clx_app_01",
"name": "ERP Parceiro",
"description": "Integração de cobranças",
"status": "ACTIVE",
"allowedScopes": ["account:read", "payments:read"],
"developerName": "Sua Empresa",
"website": "https://sua-app.com",
"lastUsedAt": "2026-09-03T18:30:00.000Z",
"createdAt": "2026-08-15T10:00:00.000Z",
"clients": [
{
"id": "clx_client_dev",
"environment": "DEV",
"clientId": "gp_oauth_dev_a1b2c3...",
"clientSecretPreview": "gp_oauth_dev_...****",
"status": "ACTIVE",
"redirectUris": [
{ "id": "clx_uri_1", "uri": "http://localhost:3000/oauth/callback" }
]
}
]
}
]
},
"requestId": "req_oauth_list"
}

