GET
/
security
/
apiKeys
/
getAll
cURL
curl -X GET "https://api.onekhusa.com/sandbox/v1/security/apiKeys/getAll?merchantAccountNumber=35253486" \
  --header "Authorization: Bearer your-jwt-token" \
  --header "accept: application/json" \
  --header "X-Organisation-Id: FYH0NTVW0DXK" \
  --header "X-Merchant-Account-Number: 35253486" \
  --header "Accept-Language: en"
[
  {
    "organisationId": "FYH0NTVW0DXK",
    "merchantAccountNumber": 35253486,
    "clientKey": "abcdefghijklmnopqrstuvwxyz1234",
    "clientSecret": "abcdefghijklmnopqrstuvwxyz1234",
    "createdBy": "user@example.com",
    "statusCode": "A",
    "statusName": "Active",
    "dateCreated": "2025-11-13T06:20:46.671Z",
    "modifiedBy": "admin@example.com",
    "dateModified": "2025-11-13T06:20:46.671Z"
  },
  {
    "organisationId": "FYH0NTVW0DXK",
    "merchantAccountNumber": 35253486,
    "clientKey": "abcdefghijklmnopqrstuvwxyz1234",
    "clientSecret": "abcdefghijklmnopqrstuvwxyz1234",
    "createdBy": "user@example.com",
    "statusCode": "A",
    "statusName": "Active",
    "dateCreated": "2025-11-13T06:20:46.671Z",
    "modifiedBy": "admin@example.com",
    "dateModified": "2025-11-13T06:20:46.671Z"
  }
]

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <Token>, where <Token> is your access token.

Headers

X-Organisation-Id
string
required

The organization identifier

X-Merchant-Account-Number
string
required

The merchant account number

Accept-Language
string
default:en

Preferred language for the response

Body

application/json
merchantAccountNumber
integer
required

The unique identifier of the merchant account

Required range: 10000000 <= x <= 99999999
Example:

35253486

Response

200 - application/json

Success - List of client API keys retrieved

clientId
integer
required

The unique identifier of the client API key

Example:

23

organisationId
string
required

The unique identifier of the organisation

Example:

"FYH0NTVW0DXK"

merchantAccountNumber
integer
required

The unique identifier of the merchant account

Example:

35253486

clientKey
string
required

The client API key (typically 30 characters)

Example:

"abcdefghijklmnopqrstuvwxyz1234"

capturedBy
string
required

The username or identifier of the user who created the API key

Example:

"Jdoe"

statusCode
string
required

The status code of the API key (e.g., "A" for Active, "I" for Inactive)

Example:

"A"

statusName
string
required

The human-readable status name of the API key

Example:

"Active"

dateCaptured
string<date-time>
required

The date and time when the API key was created in UTC format

Example:

"2025-11-01T10:30:00.000Z"

clientSecret
string | null

The client API secret (typically 45 characters). Note: This field may be null or empty as secrets are not typically returned for security reasons

Example:

null

expiryDate
string<date-time> | null

The expiration date and time for the API key in UTC format (ISO 8601). Note: This field may be null if expiry is not set

Example:

null

modifiedBy
string | null

The username or identifier of the user who last modified the API key. May be null if never modified

Example:

null

dateModified
string<date-time> | null

The date and time when the API key was last modified in UTC format. May be null if never modified

Example:

null