Skip to main content
This documentation is for the new Laravel Forge API. For the legacy API, please refer to the legacy API documentation.
The Laravel Forge API allows you to programmatically interact with your Laravel Forge account and manage your organizations, servers, sites, and other resources.

Base URL

The base URL for the Laravel Forge API is:
https://forge.laravel.com/api

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 the Authorization header of your API requests as follows:
Authorization: Bearer YOUR_API_TOKEN

Headers

All API requests must include the following headers:
Accept: application/json
Content-Type: application/json

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 CodeDescription
200Success
201Created
204No content
400Bad request
401No valid API key was provided.
403Forbidden
404Not found
422Unprocessable entity
429Too many requests
500Internal server error
503Forge is offline for maintenance.
I