Kobble
  1. Authorization
Kobble
  • Introduction
  • Authorization
    • Authorization
    • Get access token
      POST
  • Beneficiaries
    • List all beneficiaries
      GET
    • Get beneficiary by ID
      GET
    • Create beneficiary
      POST
    • Update beneficiary
      PUT
  • Cards
    • Cards API
    • Get all cards
      GET
    • Create a new card
      POST
    • Get card by ID
      GET
    • Update card status
      PATCH
    • Replace or renew card
      POST
    • Generate card secret
      POST
  • Card Programs
    • Card Programs API
    • Get all programs
      GET
    • Create a new program
      POST
    • Get program by ID
      GET
  • Clients
    • Clients API
    • Get all clients
      GET
    • Get client by ID
      GET
    • Create a new client
      POST
    • Update client status
      PATCH
  • Endusers
    • Endusers API
    • Get all endusers
      GET
    • Create a new enduser
      POST
    • Get enduser by ID
      GET
  • Transactions
    • Transactions API
    • Get all transactions
    • Create a transaction
    • Get transaction by ID
    • Create manual credit transaction
    • Create manual debit transaction
  • Wallets
    • Wallets API
    • Get all wallets
    • Create a new wallet
    • Get wallet by ID
    • Update wallet
  • Relays
    • Relays API
    • Create subscription
  • Webhooks
    • Webhooks API
    • Get all webhooks
    • Create a webhook
    • Delete a webhook
  1. Authorization

Get access token

POST
https://{{COGNITO_DNS}}/oauth2/token
Authorization
Generate Access token for all other Kobble APIs

Request

Header Params
Content-Type
string 
required
Example:
application/x-www-form-urlencoded
Body Params application/x-www-form-urlencoded
grant_type
string 
required
Example:
client_credentials
client_id
string 
required
Example:
{{client_id}}
scope
string 
required
Example:
administrator/write
client_secret
string 
required
Example:
{{client_secret}}

Request samples

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 -g --request POST 'https://{{COGNITO_DNS}}/oauth2/token' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'grant_type=client_credentials' \
--data-urlencode 'client_id={{client_id}}' \
--data-urlencode 'scope=administrator/write' \
--data-urlencode 'client_secret={{client_secret}}'

Responses

🟢200Success
application/json
Body
access_token
string 
required
expires_in
integer 
required
token_type
string 
required
Example
{
    "access_token": "eyJraWQiOiJqdzdJN05LSDJpRENORlJiNHA2UVRxRTNcL3paWWJaam9lbFZ5YnAwMlwvZ2M9IiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiIzamNoN2UxYmE5Y3BoNW9uZjN0ZHM4amRjMSIsInRva2VuX3VzZSI6ImFjY2VzcyIsInNjb3BlIjoiYWRtaW5pc3RyYXRvclwvd3JpdGUiLCJhdXRoX3RpbWUiOjE3MzM0NzAxMDksImlzcyI6Imh0dHBzOlwvXC9jb2duaXRvLWlkcC5hcC1zb3V0aGVhc3QtMi5hbWF6b25hd3MuY29tXC9hcC1zb3V0aGVhc3QtMl9nSHlTRGhpY2siLCJleHAiOjE3MzM0NzM3MDksImlhdCI6MTczMzQ3MDEwOSwidmVyc2lvbiI6MiwianRpIjoiMDNhOGRlN2ItODcyOS00MjE2LThjNDYtNjBmZTg4ZDY4NWFhIiwiY2xpZW50X2lkIjoiM2pjaDdlMWJhOWNwaDVvbmYzdGRzOGpkYzEifQ.EKDnuYFeatt4ParYPHcwVGv8kE0vPHziGYTZ1WdJRv8JKINrppiV2x_zMa1It7bJ04VmNaefrBKWr7VEQyi3mOGyWQg7T2aY9XPLtmbTwfYflfVJ7WB6n2YfJC3TPfiDwHcc8XibgamGjmwX4PI10Y7WtWqsk1DwPBATV1ChF_s9V_nOkaqR0WB0tyQaJbSAQgtsNU638G5d1brBosk2-BnjDMR1G0M7C8rm15aiOqh4-2_lq9LFp1PS7y-9p96rmLVDQcr06BD_mK3Iy9dV6mn2tPP9YMCDCTsMjhRQG5bGA9XL5dyIg6rUAgbi6uCSjdeSHxXxrnk7aBOPa3J8_w",
    "expires_in": 3600,
    "token_type": "Bearer"
}
Previous
Authorization
Next
List all beneficiaries
Built with