This documentation is for the new Laravel Forge API. For the legacy API, please refer to the legacy API documentation.
Base URL
The base URL for the Laravel Forge API is:Authentication
The Laravel Forge API uses token-based authentication. You can generate an API token from your Laravel Forge account settings. Once you have your token, include it in theAuthorization
header of your API requests as follows:
Headers
All API requests must include the following headers:Errors
The Laravel Forge API uses standard HTTP status codes to indicate the success or failure of an API request. Common status codes include:Status Code | Description |
---|---|
200 | Success |
201 | Created |
204 | No content |
400 | Bad request |
401 | No valid API key was provided. |
403 | Forbidden |
404 | Not found |
422 | Unprocessable entity |
429 | Too many requests |
500 | Internal server error |
503 | Forge is offline for maintenance. |