- Ativação
- Auth
- Conta
- Subconta
- Cobrança
- Pix
- Transações
/gateway/auth
Prod Env
https://api.contadigital.preambulobank.com.br
Prod Env
https://api.contadigital.preambulobank.com.br
POST
https://api.contadigital.preambulobank.com.br
Gateway
Requisição
Parâmetros Bodyapplication/json
client_id
string
requerido
client_secret
string
requerido
grant_type
string
requerido
Exemplo
{
"client_id": "string",
"client_secret": "string",
"grant_type": "client_credentials"
}
Exemplos de Requisição
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.contadigital.preambulobank.com.br/gateway/auth' \
--header 'Content-Type: application/json' \
--data-raw '{
"client_id": "string",
"client_secret": "string",
"grant_type": "client_credentials"
}'
Respostas
🟢200OK
application/json
Body
retorno
object | null
opcional
accessToken
string
opcional
expiresAt
string <date-time>
opcional
alertas
array [object {2}]
opcional
mensagem
string | null
opcional
tipo
enum<integer> <int32>
opcional
Valores permitidos:
123456789
erros
array [object {4}]
opcional
mensagem
string | null
opcional
tipo
enum<integer> <int32>
opcional
Valores permitidos:
123456789
campoNome
string | null
opcional
elemento
string | null
opcional
Exemplo
{
"retorno": {
"accessToken": "serg4ciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6IwMDkwIiwianRpIjoiYjhiMTQ5NGItZTE4OC00YzE3LTk5NWMtYjc4YmExZDNiZjg4IiwiYWNjZXNzX3Rva2VuIjoiOUJZTWhLQTZoVXhTUDE5QXU4T0Yza1JjZW9BTHM1YWhqYkdEOWJnUVp1RmlWQ1ZheVZqdmJSYlFGVUFrR0M2OE4xWVpMV3dpSGFIeXVuMHoiLCJwZXJmaWxfaWQiOiJlYzAzNWRjMy1lZjdmLTQ1NTQtYmE3ZS03NYiLCJlc2NvcG8iOiJHQVRFV0FZIiwibmJmIjoxNzE3OTc4OTU0LCJleHAiOjE3MTc5ODI1NTQsImlhdCI6MTcxNzk3ODk1NH0.HuUi_zd4hydcw75zfxV1pb8EFRuVvcfhjUwEO234j3U",
"expiresAt": "2024-06-05T18:00:00.00000-03:00"
},
"alertas": [],
"erros": []
}
🟠401Unauthorized