Skip to main content
DELETE
/
auth
/
api-keys
/
{keyId}
Revoke a platform API key
curl --request DELETE \
  --url https://api.openfiskal.com/v1/auth/api-keys/{keyId} \
  --header 'Authorization: Bearer <token>'
{
  "object": "<string>",
  "code": "operation_not_open",
  "message": "This operation is not in open status and cannot be modified.",
  "param": "<string>",
  "fiscal_errors": [
    {
      "code": "<string>",
      "message": "<string>",
      "jurisdiction": "<string>"
    }
  ],
  "request_id": "<string>"
}

Authorizations

Authorization
string
header
required

Platform API key sent as Authorization: Bearer ofk_platform_.... Platform integrators also pass OpenFiskal-Organization: org_xxx to act on behalf of a merchant.

Path Parameters

keyId
string
required

Response

API key revoked