curl --request GET \
--url https://app.amplopay.com/api/v1/gateway/producer/credentials \
--header 'x-public-key: SUA_CHAVE_PUBLICA_AQUI' \
--header 'x-secret-key: SUA_CHAVE_PRIVADA_AQUI'
{
"name": "Credencial de produção",
"permissions": ["PRODUCER_TRANSACTIONS", "PRODUCER_DATA"],
"grantAllPermissions": false,
"expiresAt": "2026-08-20T00:00:00.000Z"
}
Endpoints
Verify credentials
Validate the API credentials sent in the request headers
GET
/
gateway
/
producer
/
credentials
curl --request GET \
--url https://app.amplopay.com/api/v1/gateway/producer/credentials \
--header 'x-public-key: SUA_CHAVE_PUBLICA_AQUI' \
--header 'x-secret-key: SUA_CHAVE_PRIVADA_AQUI'
{
"name": "Credencial de produção",
"permissions": ["PRODUCER_TRANSACTIONS", "PRODUCER_DATA"],
"grantAllPermissions": false,
"expiresAt": "2026-08-20T00:00:00.000Z"
}
Validates the credentials sent in the request headers.
This endpoint requires the
x-public-key and x-secret-key headers.Request example
curl --request GET \
--url https://app.amplopay.com/api/v1/gateway/producer/credentials \
--header 'x-public-key: SUA_CHAVE_PUBLICA_AQUI' \
--header 'x-secret-key: SUA_CHAVE_PRIVADA_AQUI'
Response
string
required
Credential name.
string[]
required
List of permissions assigned to the credential. Possible values include
PRODUCER_DATA, PRODUCER_TRANSACTIONS, PRODUCER_WITHDRAWS, and PRODUCER_CHECKOUT.boolean
required
Indicates whether the credential has all permissions. When
true, permissions may be empty while still granting full access.string
Credential expiration date in ISO 8601 format. Returns
null if the credential has no expiration date.{
"name": "Credencial de produção",
"permissions": ["PRODUCER_TRANSACTIONS", "PRODUCER_DATA"],
"grantAllPermissions": false,
"expiresAt": "2026-08-20T00:00:00.000Z"
}
Error responses
number
required
HTTP status code.
string
required
API error code.
string
required
Error message.
{
"statusCode": 401,
"errorCode": "GATEWAY_INVALID_CREDENTIALS",
"message": "Credenciais inválidas"
}
Was this page helpful?

