Kobble
  1. Cards
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. Cards

Generate card secret

POST
/customers/v1/cards/{id}/secrets
Cards
To generate timebased secret for a card id

Request

Path Params
id
string 
required
Card id
Header Params
idempotency-key
string 
required
Example:
{{idempotency-key}}
Content-Type
string 
required
Example:
application/json
Authorization
string 
required
Example:
Bearer {{access_token}}
Body Params application/json
remarks
string 
required
Example
{
    "remarks": "test attempt one"
}

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 --request POST '/customers/v1/cards//secrets' \
--header 'idempotency-key: {{idempotency-key}}' \
--header 'Authorization: Bearer {{access_token}}' \
--header 'Content-Type: application/json' \
--data-raw '{
    "remarks": "test attempt one"
}'

Responses

🟢200Success
application/json
Body
secret
string 
required
The time based secret
Example
{
    "secret": "a$A\\7Q8SfD"
}
Previous
Replace or renew card
Next
Card Programs API
Built with