Authorization header of your API requests as follows:
Managing API Tokens
You can manage your API tokens from your Laravel Cloud organization settings. Navigate to the API tokens section to create, view, and revoke your tokens.
Create an API Token
To create a new API token, follow these steps:- Navigate to your Laravel Cloud organization settings
- Click on the “API tokens” section in the sidebar
- Click the “Create API Token” button
- Enter a descriptive name for your token to help you identify its purpose
- Select an expiration period for the token
- Click “Create” to generate your new API token
Make sure to copy your API token immediately after creation, as it will only be displayed once for security reasons. Store it securely and never share it publicly.
Revoke an API Token
To revoke an API token that you no longer need or that may have been compromised, follow these steps:- Navigate to your Laravel Cloud organization settings
- Click on the “API tokens” section in the sidebar
- Find the API token you want to revoke in the list
- Click the “Revoke” button next to the token
- Confirm your password when prompted
- Click “Revoke API token” to permanently delete the token
Once an API token is revoked, it cannot be restored. Any applications using this token will immediately lose access to the API. Make sure to update your applications with a new token before revoking the old one if you need continued access.
API Token Expiration
API tokens have configurable expiration periods to help maintain security. When creating a new token, you can choose from the following expiration options:- 1 month - Recommended for short-term projects or testing
- 6 months - Good balance between security and convenience
- 1 year - Suitable for long-term integrations

