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: ed83d19f-30ef-4b3f-bca9-edd2c7714b16
organizationIdstringOptional

Organization ID

Example: a61799b2-cd0c-47fd-a7f0-216b2be184c7
keyIdstringOptional

API key ID

Example: fdcedae3-b06a-4c9f-be0e-0933b476f98d
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": "ed83d19f-30ef-4b3f-bca9-edd2c7714b16",
  "organizationId": "a61799b2-cd0c-47fd-a7f0-216b2be184c7",
  "keyId": "fdcedae3-b06a-4c9f-be0e-0933b476f98d"
}
200Success
{
  "success": true,
  "response": null
}

Last updated