Projects
Projects
Expire Write Token
Force-expire a write token immediately by setting its expiry to now.
Refused for a token belonging to a frontend application. This route mints nothing to replace the token, and an application's token can only be attached by creating the application, so expiring one leaves the application alive, configured, and unable to receive data until somebody rotates it. Rotate it instead, with grace_period_hours if the bundle carrying it has to be rebuilt first, or delete the application to retire the credential.
patch/v1/projects/{project_id}/write-tokens/{token_id}/expire/
Request
- Base URLhttps://logfire-api.pydantic.dev/api
- AuthOAuth 2Authorization codeapi/oauth/authorizeToken URL/api/oauth/tokenScopesproject:write_token
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
token_idstring uuid required
project_idstring uuid required
Response
Successful Response
Changes
No recorded changes to this operation across all 1 revision of this API.