The Fastly API is a fully featured suite of tools that allows you to handle everything from configuration to instant purging via a straight forward REST interface. Use the references below to guide the development of your application.
Check out the API documentation for each of our systems:
|Configuration||Purging||Streaming||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.
There are two methods of authentication: API key and username/password.
Include the API key from your account page as a
Fastly-Key header e.g.
First post to the login endpoint with the parameters
This will return a cookie. Stash it somewhere and use it in subsequent requests.