Fastly primarily uses a RESTful API. Here are the key points about Fastly's API:
Fastly-Key
HTTP headerYes, the official Fastly API does have webhooks. Here are the key points about Fastly's webhook capabilities:
Fastly offers webhook functionality as part of its Notification Service API.
Webhooks are supported as one of the integration types for notifications and alerts related to the Fastly product.
You can subscribe to various types of events through Fastly's webhooks, including:
Next-Gen WAF activity:
Service status notifications:
While not explicitly listed, it's likely that other types of events related to Fastly's services can also be subscribed to via webhooks, given the broad scope of the Notification Service API.
To set up a webhook:
For Next-Gen WAF:
For service status notifications:
Through the API:
In summary, Fastly's API does support webhooks, allowing you to subscribe to various events related to their services, including Next-Gen WAF activity and service status updates. The exact range of event types may be broader, and you can set up webhooks through both the web interface and the API.
Based on the search results provided, here are the key points about the API rate limits for the Fastly API:
The default rate limit for API write operations is 1,000 requests per hour per user account or automation token [3].
This general rate limit applies to each user account, regardless of how many tokens are attached to that user [3].
Read operations (GET and HEAD requests): Unlimited [3]
Single-URL and surrogate key purges: Limited to an average of 100,000 purges per customer per hour [3]
Anonymous (unauthenticated) requests: Unlimited [3]
If you exceed the rate limit, you will receive a 429 Too Many Requests HTTP response [3].
Rate limit information is provided in response headers:
Fastly-RateLimit-Remaining
: Number of API requests remaining in the current rate limit windowFastly-RateLimit-Reset
: Time at which the current rate limit window resets (Unix timestamp) [3]Overlapping write requests to the API may result in lost updates. Fastly strongly recommends avoiding concurrent requests that modify configuration within the same service [3].
If you have purchased a Fastly service package that includes specific rate limits for API operations, those will apply instead of the default limits [3].
The API requires TLS 1.2. TLS versions 1.0 and 1.1 are no longer supported due to PCI Security Standards Council mandate [3].
Most API endpoints require authentication with an appropriately scoped API token [3].
To authenticate a request, include the API token in the Fastly-Key
HTTP header [3].
It's important to note that these rate limits are specific to the Fastly API and may not apply to other Fastly services or features. For example, Fastly also provides rate limiting capabilities for protecting origin servers and services, which have different mechanisms and limits.
Here is the markdown text with the trailing list of URLs and citation references removed, and any URLs inside the content formatted correctly for the markdown file format:
Here is the answer to your question:
The most recent version of the Fastly API is not explicitly stated in the provided search results. However, we can infer some key information about the Fastly API:
The Fastly API is a RESTful API that provides access to all features available through the Fastly web interface.
The API requires TLS 1.2. TLS versions 1.0 and 1.1 are no longer supported due to PCI Security Standards Council mandate.
Most API endpoints are served on the api.fastly.com
domain.
Authentication is required for most API endpoints using an API token, which should be included in the Fastly-Key
HTTP header.
Use the latest version of TLS (1.2) when making API requests.
Include proper authentication using the Fastly-Key
header in your API requests.
Consider using one of the official client libraries provided by Fastly for various programming languages.
If you use Postman, you can explore the Fastly API workspace or download their Postman collection.
While the search results don't provide a specific version number for the most recent Fastly API, they do indicate that Fastly regularly updates their API and documentation. To ensure you're using the most up-to-date version, it's best to refer to the official Fastly API documentation at https://www.fastly.com/documentation/reference/api/ for the latest information and changes.
To get a developer account for Fastly and create an API integration, you can follow these steps:
When creating your API token, you'll need to configure the following:
Once you've created your API token:
Copy the token string immediately and store it securely. This is the only time you'll see the full token.
Use this token in your API requests by including it in the Fastly-Key
HTTP header:
Fastly-Key: YOUR_FASTLY_TOKEN
If using curl, you can include the header like this:
curl -H "Fastly-Key: YOUR_FASTLY_TOKEN" "https://api.fastly.com/service"
Based on the Fastly API documentation, here are the key data models you can interact with using the Fastly API, along with what is possible for each:
This covers the main data models exposed by the Fastly API. For each, you can typically perform CRUD operations (create, read, update, delete) as well as more specialized actions related to that particular resource type.