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: f3ae5860-0da1-448e-b94a-2aad0ff8b195
organizationIdstringOptional

Organization ID

Example: d225cb26-2704-407a-9501-754f78aca82d
keyIdstringOptional

API key ID

Example: 7d70e02f-20c7-4a37-a6b0-a3209979cec2
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": "f3ae5860-0da1-448e-b94a-2aad0ff8b195",
  "organizationId": "d225cb26-2704-407a-9501-754f78aca82d",
  "keyId": "7d70e02f-20c7-4a37-a6b0-a3209979cec2"
}
200Success
{
  "success": true,
  "response": null
}

Last updated