Anatomy
A service token in Infisical consists of the token itself, astring, and a corresponding document in the storage backend containing its
properties and metadata.
Database model
The storage backend model for a token contains the following information:- ID: The token identifier.
- Expiration: The date at which point the token is invalid.
- Project: The project that the token is part of.
- Scopes: The project environments and paths that the token has access to.
Token
A service token is a bearer credential of the formst.<id>.<secret>. Send it in the Authorization header as Bearer st.<id>.<secret> to authenticate with the API and read or write secrets within the token’s scopes.