Cancel a company API key's expiry

Keep an API key that was scheduled to stop working.

Use this endpoint to cancel a scheduled expiry, so the key keeps working. It is the way back from Set an expiry or Rotate when you change your mind before the time is up.

A key that has already expired can't be revived. Create a new one instead.

Errors

StatusMeaning
400The key has already expired.
401The API key is missing, malformed or expired.
404No company with this ID belongs to your partner account, or the company has no key with this ID.
412Custom API integrations aren't enabled for this company.
📘

Part of Company API keys. Authenticate with your partner API key, as for every endpoint in this section: see Authentication.

Path Params
integer
required

The company's ID, as returned when the company was created.

string
required

The key's ID.

Responses
204

The expiry is cancelled.

Language
Credentials
Header
LoadingLoading…
Response
Choose an example:
application/json