Delete API key

The method allows you to delete the user's API key

Request:

Parameter

Required

Type

Description

userId

Yes

String

User ID

keyId

Yes

String

Api key ID

Delete API key

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 deletion request

userIdstringOptional

User ID

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

Organization ID

Example: 2f90da31-7c81-4ab2-a7fc-3089bb4be451
keyIdstringOptional

API key ID

Example: ee839902-f795-4c22-9136-0b9a790784e9
Responses
200Success
application/json
post
POST /partner/api/delete-api-keys HTTP/1.1
Host: ocp.onchainpay.io
Content-Type: application/json
Accept: */*
Content-Length: 152

{
  "userId": "5b41fb2b-9f7a-48cd-ae17-f48ceda2bd83",
  "organizationId": "2f90da31-7c81-4ab2-a7fc-3089bb4be451",
  "keyId": "ee839902-f795-4c22-9136-0b9a790784e9"
}
200Success
{
  "success": true,
  "response": null
}

Last updated