Laravel Forge API

Laravel Forge API

Laravel Forge just announced it’s first official API that allows you to create and interact with your servers and sites.

This was a highly requested feature and the API includes support for all the features Forge provides including Servers, Services, Daemons, Firewall Rules, Sites, SSL, and more.

To get started login to your Forge account and from your account, you can generate your API token:

After you have your token, you can then start making requests with the bearer token:

Authorization: Bearer API_TOKEN_HERE

If you are using Guzzle here is an example:

$client->request('GET', '/api/v1/servers', [
    'headers' => ['Authorization' => 'Bearer '.$forgeApiToken]
]);

Check out the Forge API documentation for all the details.


Filed in: News / API / Forge


Newsletter

Join the weekly newsletter and never miss out on new tips, tutorials, and more.

Laravel News Partners

Laravel Jobs

Mid / Sen. Software Engineer
Clearwater, FL
ShineOn
Remote PHP / Laravel Developer
Remote
SpringboardVR
Senior PHP/Laravel Developer: Your Dream Work Environment
Remote
iPhone Photography School
Senior Laravel Developer
Leidseplein, Amsterdam
Orderchamp.com
PHP Developer
Remote
X-Team
Senior Laravel Developer (Canada and India)
London, Ontario, Canada
Factory Bucket Inc.
Laravel, PHP, PostgreSQL, Neo4J Developer
Pune, India (intern in Denver, CO)
Life AI