OpenAPI 3.1.02026-08-192391306.4 MB

87ad9a3ecc4c

API key

Update API key expiration

Change the expiration of an API key. Acts on the key that authenticates this request unless target is OTHER. Choose set to pin an absolute date, extend or prepone to move the date by a number of days, or remove to make the key never expire. Once a key expires it can no longer authenticate.

<span><strong>Rate limit:</strong> 30 requests per 1 minute</span>

<span>💰 <strong>Cost:</strong> FREE! No credits are charged for this API. <span title="Pricing shown is default pricing. Actual pricing may vary."></span></span>

post/v1/api-keys/expiration

Request body

apiKeystring required

Your Fiber API key

target'SELF' | 'OTHER'

Which key to act on. SELF acts on the key that authenticates this request. OTHER acts on a different key in your organization, supplied in targetApiKey.

targetApiKeystring nullable

The key to act on when target is OTHER. Must belong to your organization. You can pass prefix, id, or the raw key. Omit when target is SELF.

operation'set' | 'extend' | 'prepone' | 'remove' required

set: use an absolute date. extend: push the expiration later by a number of days. prepone: pull it earlier by a number of days. remove: make the key never expire.

expiresAtstring date-time nullable

The new absolute expiration timestamp (ISO 8601). Required for the set operation and must be in the future; ignored otherwise.

daysinteger nullable

How many days to move the expiration by. Required for the extend and prepone operations; ignored otherwise.

Response

Default Response

advicestring[] nullable

Tips, recommendations, and suggestions for using this API effectively.