Get API keys

The method allows you to get user's API keys

Request:

Parameter

Required

Type

Description

userId

Yes

String

User ID

limit

Yes

Number

Limit on the number of keys in the response

offset

Yes

Number

Offset (for pagination)

Response:

Parameter

Type

Description

keys

Array of objects

Массив объектов API ключей

total

Number

Общей количество API ключей пользователя

The keys parameter is an array of the following objects:

Parameter

Type

Description

id

String

Api key ID

public

String

Public key

secret

String

Secret key

alias

String

Alias

createdAt

String

Creation date

Get API keys

post
Header parameters
x-api-public-keystringOptional

Public API-key

x-api-signaturestringOptional

Signing the request body with a private API-key

Content-typestringOptional

Request content type

Example: application/json
Body

The body of the api key receipt request

userIdstringOptional

User ID

Example: 5b41fb2b-9f7a-48cd-ae17-f48ceda2bd83
limitintegerOptional

Number of elements per page

offsetintegerOptional

Number of items to skip

Responses
200Success
application/json
post
POST /partner/api/get-api-keys HTTP/1.1
Host: ocp.onchainpay.io
Content-Type: application/json
Accept: */*
Content-Length: 70

{
  "userId": "5b41fb2b-9f7a-48cd-ae17-f48ceda2bd83",
  "limit": 1,
  "offset": 1
}
200Success
{
  "success": true,
  "response": {
    "keys": [
      {
        "id": "ee839902-f795-4c22-9136-0b9a790784e9",
        "public": "QoK/3fZY8QK68z3DFvwcTgN4LSTDa8pi6rUNbGQfM4EgKCyt9whSFkbIQOFIAsGKlCZlCE1gyvi0Q6vf77KHKw==",
        "secret": "TLS9BLlNCOHTlAEhHGsl8P77gkaUleEnnJv3r4oL2n8owM8c33ALZCaVe3cBq4HEkGm+Tx1rNI6CPUXc8r7fBg==",
        "alias": "Integration key",
        "createdAt": "2025-06-09T11:38:26.491Z"
      }
    ],
    "total": 1
  }
}

Last updated