The Fastly API is a RESTful API that supports all features available through the Fastly user interface. Use the libraries below to guide the development of your sites and applications.
|Account||Configuration||Purging||Historical Stats||Remote Logging|
Interactive clients for the Fastly API are available in a variety of languages. Check our Clients page for more information on each.
You authenticate to the Fastly API in one of two ways: via API key or via username and password.
Include the API key from your account page as a
Fastly-Key header. For example:
Username and password
First post to the login endpoint with the parameters
password. For example:
This will return a cookie. Stash it somewhere and use it in subsequent requests.