Index of all API Endpoints
This page contains a categorized list of the API endpoints provided by Fastly, all in one place. Click an endpoint or use the links below each heading to jump to the reference material for that item.
Billing
BillingGet information on current and past bills.
Action | Endpoint |
---|---|
Get an invoice | |
Get an invoice | |
Get month-to-date billing estimate |
Billing address
Billing addressA billing address is used to calculate your bill correctly.
Action | Endpoint |
---|---|
Get a billing address | |
Add a billing address to a customer | |
Delete a billing address | |
Update a billing address |
Usage Metrics API
Usage Metrics APIGet information on billing usage metrics.
Action | Endpoint |
---|---|
Retrieve service-level usage metrics for a product | |
Get monthly usage metrics |
Customer Contact
Customer ContactA Customer Contact is the base object that holds the different types of contact information Fastly uses to contact a customer.
Action | Endpoint |
---|---|
List contacts | |
Add a new customer contact | |
Delete a contact |
Customer
CustomerA Customer is the base object that owns your Users and Services. Some information may be limited depending on access level.
Action | Endpoint |
---|---|
List users | |
Get the logged in customer | |
Get a customer | |
Update a customer | |
Delete a customer | DELETE/customer/ customer_id |
Event logs
Event logsEvent logs are used to audit actions performed by customers.
Action | Endpoint |
---|---|
List events | GET/events |
Get an event |
Invitations
InvitationsInvitations allow superusers and engineers to invite users to set up accounts as collaborators under a main customer account. Superusers can invite collaborators and assign them any role or permission level on a per-service basis. Engineers with no per-service limitations on their role can only invite new collaborators but cannot modify their permissions.
Action | Endpoint |
---|---|
List invitations | GET/invitations |
Create an invitation | POST/invitations |
Delete an invitation |
Invoices API
Invoices APIGet information on current and past invoices.
Action | Endpoint |
---|---|
List of invoices | |
Get invoice by ID | |
Get month-to-date invoice |
Service authorizations
Service authorizationsA service authorization allows limited users to access only specified services.
Action | Endpoint |
---|---|
Show service authorization | |
Delete service authorization | |
Update service authorization | |
List service authorizations | |
Create service authorization | |
Delete service authorizations | DELETE/service-authorizations |
Update service authorizations |
Star
StarA star allows users to mark services of interest.
Action | Endpoint |
---|---|
Get a star | |
Delete a star | DELETE/stars/ star_id |
List stars | GET/stars |
Create a star | POST/stars |
User
UserA user of the Fastly API and web interface. A user is always associated with a customer. Some information may be limited depending on access level.
Action | Endpoint |
---|---|
Get the current user | |
Get a user | |
Update a user | |
Delete a user | DELETE/user/ user_id |
Create a user | POST/user |
Update the user's password | |
Request a password reset |
ACL
ACLAn access control list or "ACL" specifies individual IP addresses or subnet ranges and can be accessed and used from Fastly VCL.
Action | Endpoint |
---|---|
List ACLs | |
Create a new ACL | |
Describe an ACL | |
Update an ACL | |
Delete an ACL |
ACL Entry
ACL EntryAn ACL entry holds an individual IP address or subnet range and is a member of an ACL. ACL entries are versionless, which means they can be created, modified, or deleted without activating a new version of your service.
Action | Endpoint |
---|---|
List ACL entries | |
Update multiple ACL entries | |
Describe an ACL entry | |
Delete an ACL entry | |
Update an ACL entry | |
Create an ACL entry |
Automation Tokens
Automation TokensAutomation tokens differ from other token types because they are not tied to a specific person and therefore are not subject to the lifecycle of such accounts. Automation tokens are sometimes also called "service accounts". They are designed for API automation use-cases such as continuous integration, deployment pipelines, or automation scripts. For more information about authentication tokens, review the Authentication token documentation.
Action | Endpoint |
---|---|
List Customer Automation Tokens | |
Create Automation Token | |
Retrieve an Automation Token by ID | |
Revoke an Automation Token by ID | DELETE/automation-tokens/ id |
List Automation Token Services |
User tokens
User tokensAn API Token is used to identify who is making the API call. Users can create multiple tokens to suit their needs.
Action | Endpoint |
---|---|
List tokens for the authenticated user | GET/tokens |
Create a token | POST/tokens |
Revoke multiple tokens | DELETE/tokens |
List tokens for a customer | |
Get the current token | GET/tokens/self |
Revoke the current token | DELETE/tokens/self |
Get a token | |
Revoke a token | DELETE/tokens/ token_id |
Dictionary
DictionaryA Dictionary is a VCL data table that stores key-value pairs accessible to VCL during request processing. New, empty dictionaries can be attached to a draft version of a service, which must be activated for the dictionary to be included in VCL. Once installed, a dictionary's items may be updated via API calls without having to activate a new version of the associated service configuration. To remove a dictionary, delete it on a draft version of a service (one that is not locked and not active). Once removed, activate the draft service version without the dictionary.
Action | Endpoint |
---|---|
List edge dictionaries | |
Create an edge dictionary | |
Get an edge dictionary | |
Update an edge dictionary | |
Delete an edge dictionary |
Dictionary info
Dictionary infoDictionary Info is a set of metadata describing properties of a dictionary which change as items are added and removed.
Action | Endpoint |
---|---|
Get edge dictionary metadata |
Dictionary item
Dictionary itemA Dictionary Item is a single key-value pair that makes up an entry in a Dictionary. Dictionary Items can be added, removed and modified without activating a new version of the associated service.
Action | Endpoint |
---|---|
List items in an edge dictionary | |
Update multiple entries in an edge dictionary | |
Get an item from an edge dictionary | |
Insert or update an entry in an edge dictionary | |
Delete an item from an edge dictionary | |
Update an entry in an edge dictionary | |
Create an entry in an edge dictionary |
Domain
DomainThe Domains API allows you to manage your domains on Fastly and the services that they interact with.
Action | Endpoint |
---|---|
List domains | GET/domains |
Create a domain | POST/domains |
Get a domain | |
Delete a domain | DELETE/domains/ domain_id |
Update a domain | PATCH/domains/ domain_id |
DNS Configuration
DNS ConfigurationCustomers with access to multiple sets of IP pools are able to manage DNS records associated with the IP pools.
Action | Endpoint |
---|---|
List DNS configurations | |
Create a DNS configuration | |
Get a DNS configuration | |
Delete a DNS configuration | |
Update a DNS configuration |
TLS Configuration
TLS ConfigurationCustomers with access to multiple sets of IP pools can apply different configuration options to their TLS-enabled domains.
Action | Endpoint |
---|---|
List TLS configurations | |
Create a TLS configuration | |
Get a TLS configuration | |
Delete a TLS configuration | |
Update a TLS configuration |
Configuration sets Deprecated
Configuration setsConfiguration sets are used to view and select the available versions of the Fastly WAF rules.
Action | Endpoint |
---|---|
List configuration setsDeprecated | |
List WAFs currently using a configuration setDeprecated | |
Apply a configuration set to a WAFDeprecated |
Firewall Deprecated
FirewallFirewall object used when configuring WAF.
Action | Endpoint |
---|---|
List firewallsDeprecated | |
Create a firewallDeprecated | |
Get a firewallDeprecated | |
Update a firewallDeprecated | |
Disable a firewallDeprecated | |
Enable a firewallDeprecated | |
List active firewallsDeprecated | GET/wafs |
Get a firewall objectDeprecated |
OWASP Deprecated
OWASPOWASP settings object used when configuring WAF.
Action | Endpoint |
---|---|
Get the OWASP settings objectDeprecated | |
Create an OWASP settings objectDeprecated | |
Update the OWASP settings objectDeprecated |
Rules Deprecated
RulesRules used when configuring WAF.
Action | Endpoint |
---|---|
List rules in the latest configuration setDeprecated | GET/wafs/rules |
Get a ruleDeprecated | |
Get VCL for a ruleDeprecated | |
Get VCL for a rule associated with a firewallDeprecated |
Rule statuses Deprecated
Rule statusesA Rule status represents the status of a particular rule for a given firewall. For a rule to be attached to a particular firewall and performing any actions, a rule status must exist.
Action | Endpoint |
---|---|
List rule statusesDeprecated | |
Create or update status of a tagged group of rulesDeprecated | |
Get the status of a rule on a firewallDeprecated | |
Update the status of a ruleDeprecated |
Rule sets Deprecated
Rule setsRetrieve the currently deployed WAF ruleset VCL and the date it was deployed.
Action | Endpoint |
---|---|
Get a WAF rulesetDeprecated | |
Update a WAF rulesetDeprecated | |
Generate WAF ruleset VCLDeprecated |
Tags Deprecated
TagsTags for categorizing WAF rules. Tags can be filtered by name.
Action | Endpoint |
---|---|
List WAF tagsDeprecated | GET/wafs/tags |
Update statuses Deprecated
Update statusesUpdate status indicates the status of an asynchronous process for updating a firewall object.
Action | Endpoint |
---|---|
List update statusesDeprecated | |
Get the status of a WAF updateDeprecated |
Director backend
Director backendMaps and relates backends as belonging to directors. Backends can belong to any number of directors but directors can only hold one reference to a specific backend.
Action | Endpoint |
---|---|
Get a director-backend relationship | |
Create a director-backend relationship | |
Delete a director-backend relationship |
Director
DirectorA Director is responsible for balancing requests among a group of Backends. In addition to simply balancing, Directors can be configured to attempt retrying failed requests. Additionally, Directors have a quorum setting which can be used to determine when the Director as a whole is considered "up", in order to prevent "server whack-a-mole" following an outage as servers come back up. Only directors created via the API can be modified via the API. Directors known as "autodirectors" that are created automatically when load balancing groups of servers together cannot be modified or retrieved via the API.
Action | Endpoint |
---|---|
List directors | |
Create a director | |
Get a director | |
Update a director | |
Delete a director |
Pool
PoolA pool is responsible for balancing requests among a group of servers. In addition to balancing, pools can be configured to attempt retrying failed requests. Pools have a quorum setting that can be used to determine when the pool as a whole is considered up, in order to prevent problems following an outage as servers come back up.
Action | Endpoint |
---|---|
List server pools | |
Create a server pool | |
Get a server pool | |
Update a server pool | |
Delete a server pool |
Server
ServerA server is an address (IP address or hostname) to which the Fastly Load Balancer service can forward requests. This service can define multiple servers and assign it to a pool. Fastly can then select any one of these servers based on a selection policy defined for the pool.
Action | Endpoint |
---|---|
List servers in a pool | |
Get a pool server | |
Update a server | |
Delete a server from a pool | |
Add a server to a pool |
Microsoft Azure Blob Storage
Microsoft Azure Blob StorageFastly will upload log messages to the Azure Blob Storage container in the format specified in the Azure Blob object.
Action | Endpoint |
---|---|
List Azure Blob Storage log endpoints | |
Create an Azure Blob Storage log endpoint | |
Get an Azure Blob Storage log endpoint | |
Update an Azure Blob Storage log endpoint | |
Delete the Azure Blob Storage log endpoint |
BigQuery
BigQueryFastly will upload log messages to the Google BigQuery dataset and table in the format specified in the BigQuery logging object.
Action | Endpoint |
---|---|
List BigQuery log endpoints | |
Create a BigQuery log endpoint | |
Get a BigQuery log endpoint | |
Update a BigQuery log endpoint | |
Delete a BigQuery log endpoint |
Cloud Files
Cloud FilesFastly will upload log messages to your Rackspace Cloud Files account.
Action | Endpoint |
---|---|
List Cloud Files log endpoints | |
Create a Cloud Files log endpoint | |
Get a Cloud Files log endpoint | |
Update the Cloud Files log endpoint | |
Delete the Cloud Files log endpoint |
Datadog
DatadogFastly will upload log messages to Datadog in the format specified in the Datadog configuration object.
Action | Endpoint |
---|---|
List Datadog log endpoints | |
Create a Datadog log endpoint | |
Get a Datadog log endpoint | |
Update a Datadog log endpoint | |
Delete a Datadog log endpoint |
DigitalOcean Spaces
DigitalOcean SpacesFastly will upload log messages to the DigitalOcean Space in the format specified in the DigitalOcean Spaces object.
Action | Endpoint |
---|---|
List DigitalOcean Spaces log endpoints | |
Create a DigitalOcean Spaces log endpoint | |
Get a DigitalOcean Spaces log endpoint | |
Update a DigitalOcean Spaces log endpoint | |
Delete a DigitalOcean Spaces log endpoint |
Elasticsearch
ElasticsearchFastly will upload log messages periodically to the server in the format specified in the Elasticsearch object.
Action | Endpoint |
---|---|
List Elasticsearch log endpoints | |
Create an Elasticsearch log endpoint | |
Get an Elasticsearch log endpoint | |
Update an Elasticsearch log endpoint | |
Delete an Elasticsearch log endpoint |
FTP
FTPFastly will upload log messages periodically to the server in the format specified in the FTP object.
Action | Endpoint |
---|---|
List FTP log endpoints | |
Create an FTP log endpoint | |
Get an FTP log endpoint | |
Update an FTP log endpoint | |
Delete an FTP log endpoint |
GCS Logging
GCS LoggingFastly will upload log messages to the GCS bucket in the format specified in the GCS object.
Action | Endpoint |
---|---|
List GCS log endpoints | |
Create a GCS log endpoint | |
Get a GCS log endpoint | |
Update a GCS log endpoint | |
Delete a GCS log endpoint |
Google Cloud Pub/Sub Logging
Google Cloud Pub/Sub LoggingFastly will publish log messages to a Google Cloud Pub/Sub topic in the format specified in the Pub/Sub logging object.
Action | Endpoint |
---|---|
List GCP Cloud Pub/Sub log endpoints | |
Create a GCP Cloud Pub/Sub log endpoint | |
Get a GCP Cloud Pub/Sub log endpoint | |
Update a GCP Cloud Pub/Sub log endpoint | |
Delete a GCP Cloud Pub/Sub log endpoint |
Grafana Cloud Logs Logging
Grafana Cloud Logs LoggingFastly will upload log messages to Grafana Cloud Logs.
Action | Endpoint |
---|---|
List Grafana Cloud Logs log endpoints | |
Create a Grafana Cloud Logs log endpoint | |
Get a Grafana Cloud Logs log endpoint | |
Update a Grafana Cloud Logs log endpoint | |
Delete the Grafana Cloud Logs log endpoint |
Heroku
HerokuFastly will stream log messages to the Heroku account in the format specified in the Heroku object.
Action | Endpoint |
---|---|
List Heroku log endpoints | |
Create a Heroku log endpoint | |
Get a Heroku log endpoint | |
Update the Heroku log endpoint | |
Delete the Heroku log endpoint |
Honeycomb Logging
Honeycomb LoggingFastly will upload log messages to Honeycomb.io in the format specified in the Honeycomb object.
Action | Endpoint |
---|---|
List Honeycomb log endpoints | |
Create a Honeycomb log endpoint | |
Get a Honeycomb log endpoint | |
Update a Honeycomb log endpoint | |
Delete the Honeycomb log endpoint |
HTTPS
HTTPSFastly will upload log messages to an HTTPS endpoint in the format specified in the HTTPS object. The HTTPS endpoint requires proof of domain ownership before logs can be received. Learn how to validate your domain in our HTTPS endpoint documentation.
Action | Endpoint |
---|---|
List HTTPS log endpoints | |
Create an HTTPS log endpoint | |
Get an HTTPS log endpoint | |
Update an HTTPS log endpoint | |
Delete an HTTPS log endpoint |
Kafka
KafkaFastly will upload log messages periodically to the server in the format specified in the Kafka object.
Action | Endpoint |
---|---|
List Kafka log endpoints | |
Create a Kafka log endpoint | |
Get a Kafka log endpoint | |
Update the Kafka log endpoint | |
Delete the Kafka log endpoint |
Kinesis
KinesisFastly will publish log messages to an Amazon Kinesis stream in the format specified in the Amazon Kinesis Data Streams logging object.
Action | Endpoint |
---|---|
List Amazon Kinesis log endpoints | |
Create an Amazon Kinesis log endpoint | |
Get an Amazon Kinesis log endpoint | |
Update the Amazon Kinesis log endpoint | |
Delete the Amazon Kinesis log endpoint |
Loggly
LogglyFastly will stream log messages to the Loggly account in the format specified in the Loggly logging object.
Action | Endpoint |
---|---|
List Loggly log endpoints | |
Create a Loggly log endpoint | |
Get a Loggly log endpoint | |
Update a Loggly log endpoint | |
Delete a Loggly log endpoint |
Log Shuttle
Log ShuttleFastly will upload log messages to the Log Shuttle bucket in the format specified in the logshuttle object.
Action | Endpoint |
---|---|
List Log Shuttle log endpoints | |
Create a Log Shuttle log endpoint | |
Get a Log Shuttle log endpoint | |
Update a Log Shuttle log endpoint | |
Delete a Log Shuttle log endpoint |
New Relic Logs
New Relic LogsFastly will upload log messages to New Relic Logs in the format specified in the New Relic configuration object.
Action | Endpoint |
---|---|
List New Relic log endpoints | |
Create a New Relic log endpoint | |
Get a New Relic log endpoint | |
Update a New Relic log endpoint | |
Delete a New Relic log endpoint |
New Relic OTLP
New Relic OTLPAllows OTLP trace data to be sent to New Relic. Requires custom VCL to instrument the service to generate OTLP trace data. See https://docs.fastly.com/en/guides/log-streaming-newrelic-otlp#instrumenting-your-vcl-service for details.
Action | Endpoint |
---|---|
List New Relic OTLP endpoints | |
Create a New Relic OTLP endpoint | |
Get a New Relic OTLP endpoint | |
Update a New Relic log endpoint | |
Delete a New Relic OTLP endpoint |
OpenStack
OpenStackFastly will upload log messages to the OpenStack bucket in the format specified in the openstack object.
Action | Endpoint |
---|---|
List OpenStack log endpoints | |
Create an OpenStack log endpoint | |
Get an OpenStack log endpoint | |
Update an OpenStack log endpoint | |
Delete an OpenStack log endpoint |
Papertrail
PapertrailFastly will stream log messages to the Papertrail account in the format specified in the Papertrail object.
Action | Endpoint |
---|---|
List Papertrail log endpoints | |
Create a Papertrail log endpoint | |
Get a Papertrail log endpoint | |
Update a Papertrail log endpoint | |
Delete a Papertrail log endpoint |
S3
S3Fastly will upload log messages to the S3 bucket in the format specified in the S3 object.
Action | Endpoint |
---|---|
List AWS S3 log endpoints | |
Create an AWS S3 log endpoint | |
Get an AWS S3 log endpoint | |
Update an AWS S3 log endpoint | |
Delete an AWS S3 log endpoint |
Scalyr
ScalyrFastly will stream log messages to the Scalyr account in the format specified in the Scalyr object.
Action | Endpoint |
---|---|
List Scalyr log endpoints | |
Create a Scalyr log endpoint | |
Get a Scalyr log endpoint | |
Update the Scalyr log endpoint | |
Delete the Scalyr log endpoint |
SFTP
SFTPFastly will upload log messages periodically to the server in the format specified in the SFTP object.
Action | Endpoint |
---|---|
List SFTP log endpoints | |
Create an SFTP log endpoint | |
Get an SFTP log endpoint | |
Update an SFTP log endpoint | |
Delete an SFTP log endpoint |
Splunk
SplunkFastly will POST messages to your Splunk account in the format specified in the Splunk object.
Action | Endpoint |
---|---|
List Splunk log endpoints | |
Create a Splunk log endpoint | |
Get a Splunk log endpoint | |
Update a Splunk log endpoint | |
Delete a Splunk log endpoint |
Sumologic
SumologicFastly will POST messages to the Sumo Logic account in the format specified in the Sumologic object.
Action | Endpoint |
---|---|
List Sumologic log endpoints | |
Create a Sumologic log endpoint | |
Get a Sumologic log endpoint | |
Update a Sumologic log endpoint | |
Delete a Sumologic log endpoint |
Syslog
SyslogFastly will stream log messages to the location in the format specified in the Syslog object.
Action | Endpoint |
---|---|
List Syslog log endpoints | |
Create a syslog log endpoint | |
Get a syslog log endpoint | |
Update a syslog log endpoint | |
Delete a syslog log endpoint |
Domain Inspector Historical API
Domain Inspector Historical APIDomain Inspector provides a JSON-formatted historical API for visibility into responses delivered from your domains by Fastly. The API offers a standardized set of data to report in minutely, hourly, or daily granularity on every domain response, byte, and status code received by a specified service.
Action | Endpoint |
---|---|
Get historical domain data for a service |
Domain Inspector Real-time API
Domain Inspector Real-time APIThe real-time domain metrics API allows you to programmatically retrieve per-domain delivery metrics derived from your Fastly services in one-second periods up to the last complete second.
Action | Endpoint |
---|---|
Get real-time domain data from a specified time | |
Get real-time domain data for the last 120 seconds | |
Get a limited number of real-time domain data entries |
Historical Stats
Historical StatsThe Historical Stats API allows you to programmatically retrieve historical caching statistics derived from your Fastly services. You can use these metrics to help you optimize your site’s data caching and analyze your site’s traffic.
Action | Endpoint |
---|---|
Get historical stats | GET/stats |
Get historical stats for a single field | |
Get aggregated historical stats | |
Get historical stats for a single service | |
Get historical stats for a single service/field combination | |
Get usage statistics | GET/stats/usage |
Get usage statistics per service | |
Get month-to-date usage statistics | |
Get region codes |
Origin Inspector Historical API
Origin Inspector Historical APIOrigin Inspector provides a JSON-formatted historical API for visibility into responses delivered from your origin servers to Fastly. The API offers a standardized set of data to report in minutely, hourly or daily granularity on every origin response, byte, and status code received by a specified service.
Action | Endpoint |
---|---|
Get historical origin data for a service |
Origin Inspector Real-time API
Origin Inspector Real-time APIOrigin Inspector offers a real-time JSON-formatted data stream providing visibility into responses delivered from your origin servers to Fastly. The API offers a standardized set of data to report in real-time every origin response, byte, and status code received by a specified service in one-second periods up to the last complete second.
Action | Endpoint |
---|---|
Get real-time origin data from specific time | |
Get real-time origin data for the last 120 seconds | |
Get a limited number of real-time origin data entries |
Real-time analytics
Real-time analyticsThe real-time analytics API offers a standardized set of data about traffic received by a specified service in one-second time periods up to the last complete second.
Action | Endpoint |
---|---|
Get real-time data from specified time | |
Get real-time data for the last 120 seconds | |
Get a limited number of real-time data entries |
Stats
StatsStats give you information on the usage and performance of your Service. They can be requested by Service and over a particular time span. Stats are broken down per POP, giving you information on how your Services are being used across the world. There is now a more flexible, and fully featured Stats API available.
Action | Endpoint |
---|---|
Get stats for a service |
Definitions
DefinitionsDefinitions are used to configure alerts on how to observe a metric.
Action | Endpoint |
---|---|
List definitions | |
Create definition | |
Read definition | |
Update definition | |
Delete definition |
History
HistoryAlerts history presents the past event notifications sent when observed metrics thresholds were triggered.
Action | Endpoint |
---|---|
List history |
Custom dashboards
Custom dashboardsThe Observability API allows you to programmatically define custom
dashboards to view in the Observability web interface.
Action | Endpoint |
---|---|
List all custom dashboards | |
Create a new dashboard | |
Retrieve a dashboard by ID | |
Delete an existing dashboard | |
Update an existing dashboard |
Insights
InsightsThe Insights API allows users to analyze insights from sampled logs that are collected for the Log Explorer & Insights product.
Action | Endpoint |
---|---|
Retrieve log insights |
Log Explorer
Log ExplorerThe Log Explorer API allows users to query the sampled logs that are collected for the Log Explorer & Insights product.
Action | Endpoint |
---|---|
Retrieve log records |
Notification Service
Notification ServiceThe Notification Service API allows you to programmatically create and manage notification integrations. Fastly will use these integrations to send you notifications and alerts related to the Fastly product.
Mailing list, Microsoft Teams, New Relic, Slack, PagerDuty, and webhook are supported as integrations.
Action | Endpoint |
---|---|
Get all integration types | |
Search for integrations | |
Create an integration | |
Get integration | |
Delete an integration | |
Update an integration | |
Get webhook payload signing key | |
Rotate webhook payload signing key | |
Send mailing list confirmation email |
Enable and disable products
Enable and disable productsThese endpoints allow you to enable, disable, configure, and check the enablement status of products on your services.
Action | Endpoint |
---|---|
Get enabled product | |
Enable a product | |
Disable a product | |
Get configuration for a product | |
Update configuration for a product |
Publishing
PublishingPublishing sends messages to Fanout subscribers. Fanout is designed to be GRIP-compatible, such that
https://api.fastly.com/service/{service_id}
can be used as a GRIP URL in application configurations.Action | Endpoint |
---|---|
Send messages to Fanout subscribers |
Purging
PurgingInstant Purging removes content from Fastly immediately so it can be refreshed from your origin servers. While the default approach for issuing an individual URL Instant Purge uses the Fastly API,
https://api.fastly.com/
, it is not required.Action | Endpoint |
---|---|
Purge a URL | |
Purge everything from a service | |
Purge by surrogate key tag | |
Purge multiple surrogate key tags |
Security
SecuritySecurity API allows you to manage workspaces, requests, events, redactions, tags, and rules.
Action | Endpoint |
---|---|
List workspaces | |
Create a workspace | |
Get a workspace | |
Remove a workspace | |
Edit a workspace | |
Search requests | |
Retrieve request | |
List events | |
Retrieve event | |
Expire event | |
List redactions | |
Create redaction | |
Retrieve redaction | |
Remove redaction | |
Edit redaction | |
List rules | |
Create rule | |
Retrieve rule | |
Remove a rule | |
Edit rule | |
List virtual patches | |
Retreive virtual patch | |
Edit virtual patch | |
Retrieve timeseries metrics |
Backend
BackendA backend (also sometimes called an origin server) is a server identified by IP address or hostname, from which Fastly will fetch your content. There can be multiple backends attached to a service, but each backend is specific to one service. By default, the first backend added to a service configuration will be used for all requests (provided it meets any conditions attached to it). If multiple backends are defined for a service, the first one that has no attached conditions, or whose conditions are satisfied for the current request, will be used, unless that behavior is modified using the
auto_loadbalance
field described below.Action | Endpoint |
---|---|
List backends | |
Create a backend | |
Describe a backend | |
Update a backend | |
Delete a backend |
Domain
DomainA domain represents the domain name through which visitors will retrieve content. There can be multiple domains for a service.
Action | Endpoint |
---|---|
Validate DNS configuration for all domains on a service | |
Validate DNS configuration for a single domain on a service | |
List domains | |
Add a domain name to a service | |
Describe a domain | |
Update a domain | |
Remove a domain from a service |
Health check
Health checkHealth checks are used to customize the way Fastly checks on your Backends. If an origin server is marked unhealthy due to health checks, Fastly will stop attempting to send requests to it. If all origin servers are marked unhealthy, Fastly will attempt to serve stale. If no stale object is available, a 503 will be returned to the client.
Action | Endpoint |
---|---|
List health checks | |
Create a health check | |
Get a health check | |
Update a health check | |
Delete a health check |
Image Optimizer Default Settings
Image Optimizer Default SettingsConfigures default settings for Fastly Image Optimizer requests, configuring the way images are optimized when not overridden by URL parameters on specific requests.
Action | Endpoint |
---|---|
Get current Image Optimizer Default Settings | |
Update Image Optimizer Default Settings |
Package
PackageFastly Compute is a computation platform capable of running custom binary packages that you compile on your own systems and upload to Fastly. These packages are associated with a service version and are deployed to Fastly's edge network.
Action | Endpoint |
---|---|
Get details of the service's Compute package | |
Upload a Compute package |
Resource links
Resource linksA resource link represents a link between a shared resource (such as an kv store or config store) and a service version.
Action | Endpoint |
---|---|
List resource links | |
Create a resource link | |
Display a resource link | |
Update a resource link | |
Delete a resource link |
Config store
Config storeA container that lets you store data in key-value pairs. Learn more about config stores.
Action | Endpoint |
---|---|
List config stores | |
Create a config store | |
Describe a config store | |
Update a config store | |
Delete a config store | |
Get config store metadata | |
List linked services |
Config store item
Config store itemA key-value pair within a config store. Learn more about config stores.
Action | Endpoint |
---|---|
List items in a config store | |
Update multiple entries in a config store | |
Create an entry in a config store | |
Get an item from a config store | |
Insert or update an entry in a config store | |
Delete an item from a config store | |
Update an entry in a config store |
KV store
KV storeA KV store is a persistent, globally consistent key-value store accessible to Compute services during request processing. Learn more about KV stores.
Action | Endpoint |
---|---|
List KV stores | |
Create a KV store | |
Describe a KV store | |
Delete a KV store |
KV store item
KV store itemAn item in an kv store. Learn more about KV stores.
Action | Endpoint |
---|---|
List kv store keys | |
Get the value of an kv store item | |
Insert an item into an kv store | |
Delete kv store item | |
Create or set a batch of keys in a store |
Secret store
Secret storeA secret store is a persistent, globally distributed store for secrets accessible to Compute services during request processing. Learn more about secret stores.
Action | Endpoint |
---|---|
Get all secret stores | |
Create new secret store | |
Get secret store by ID | |
Delete secret store | |
Create new client key | |
Get public key |
Secret store secret
Secret store secretA secret within a secret store. Learn more about secret stores.
Action | Endpoint |
---|---|
List secrets within a store | |
Create or recreate a secret in a store | |
Create a new secret in a store | |
Recreate a secret in a store | |
Get secret metadata | |
Delete a secret from a store |
Service
ServiceA Service represents the configuration for a website, app, API, or anything else to be served through Fastly. A Service can have many Versions, through which Backends, Domains, and more can be configured.
Action | Endpoint |
---|---|
List services | GET/service |
Create a service | POST/service |
Get service details | |
Search for a service by name | |
Get a service | |
Update a service | |
Delete a service | DELETE/service/ service_id |
List the domains within a service |
Version
VersionA Version represents a specific instance of the configuration for a service. A Version can be cloned, locked, activated, or deactivated.
Action | Endpoint |
---|---|
List versions of a service | |
Create a service version | |
Get a version of a service | |
Update a service version | |
Validate a service version | |
Activate a service version | |
Activate a service version on the specified environment | |
Deactivate a service version | |
Deactivate a service version on an environment | |
Clone a service version | |
Lock a service version |
TLS Configuration
TLS ConfigurationCustomers with access to multiple sets of IP pools are able to apply different configuration options to their TLS enabled domains.
Action | Endpoint |
---|---|
List TLS configurations | |
Get a TLS configuration | |
Update a TLS configuration |
TLS Activations
TLS ActivationsTLS activations.
Action | Endpoint |
---|---|
List TLS activations | |
Enable TLS for a domain using a custom certificate | POST/tls/activations |
Get a TLS activation | |
Disable TLS on a domain | |
Update a certificate |
TLS Certificates
TLS CertificatesA TLS certificate is used to terminate TLS traffic for one or more of your TLS domains.
Action | Endpoint |
---|---|
List TLS certificates | |
Create a TLS certificate | |
Get a TLS certificate | |
Delete a TLS certificate | |
Update a TLS certificate | |
Get a TLS certificate blob (Limited Availability) |
Certificate Signing Requests
Certificate Signing RequestsA certificate signing request is needed to obtain a TLS certificate from a Certificate Authority (CA).
Action | Endpoint |
---|---|
Create CSR |
TLS Domains
TLS DomainsTLS domains are all the domains (including wildcard domains) included in any TLS certificate's Subject Alternative Names (SAN) list. Included in the response is information about which certificates reference this domain as well as the TLS activation indicating which certificate is enabled to serve TLS traffic for the domain.
Action | Endpoint |
---|---|
List TLS domains | GET/tls/domains |
Private Keys
Private KeysA private key is used to sign a Certificate. A key can be used to sign multiple certificates.
Action | Endpoint |
---|---|
List TLS private keys | |
Create a TLS private key | |
Get a TLS private key | |
Delete a TLS private key |
Setting and Unsetting Mutual TLS on TLS Activations
Setting and Unsetting Mutual TLS on TLS ActivationsMutual TLS can be added to existing TLS activations to allow for client-to-server authentication. In order to use mutual TLS, you must already have active server-side TLS using either custom certificates or an enabled Fastly-managed subscription.
Action | Endpoint |
---|---|
List TLS activations | |
Get a TLS activation | |
Update Mutual TLS |
Managing and Uploading Mutual Authentications
Managing and Uploading Mutual AuthenticationsThe Mutual TLS API allows for client-to-server authentication using client-side X.509 authentication. The main Mutual Authentication object represents the certificate bundle and other configurations which support Mutual TLS for your domains.
Action | Endpoint |
---|---|
List Mutual Authentications | |
Create a Mutual Authentication | |
Get a Mutual Authentication | |
Delete a Mutual TLS | |
Update a Mutual Authentication |
Bulk Certificates
Bulk CertificatesAvailable to Platform TLS customers, these endpoints streamline the upload, deployment and management of large numbers of TLS certificates. A certificate is used to terminate TLS traffic for one or more of your fully qualified domain names (domains). Uploading a new certificate automatically enables TLS for all domains listed as Subject Alternative Names (SAN entries) on the certificate.
Action | Endpoint |
---|---|
List certificates | |
Upload a certificate | |
Get a certificate | |
Delete a certificate | |
Update a certificate |
TLS Subscriptions
TLS SubscriptionsThe TLS subscriptions API allows you to programmatically generate TLS certificates that are procured and renewed by Fastly. Once a subscription is created for a given hostname or wildcard domain, DNS records are checked to ensure that the domain on the subscription is owned by the subscription creator. Provided DNS records are maintained, TLS certificates will automatically renew. If Fastly is unable to issue a certificate, we will retry to issue the certificate for 7 days past subscription creation or the latest certificate's not_after date, whichever is later. If after 7 days Fastly is unable to issue a certificate, the subscription state will change to
failed
and Fastly will stop retrying.Action | Endpoint |
---|---|
List TLS subscriptions | |
Create a TLS subscription | |
Get a TLS subscription | |
Delete a TLS subscription | |
Update a TLS subscription | |
Creates a GlobalSign email challenge | |
Delete a GlobalSign email challenge |
Check content status
Check content statusFastly makes it possible to see which version of a particular URL is cached on each edge server.
Action | Endpoint |
---|---|
Check status of content in each POP's cache |
Diff
DiffSee the line-by-line changes in configuration between two different versions of a service.
Action | Endpoint |
---|---|
Diff two service versions |
Docs Deprecated
DocsDocumentation of the endpoints that return the Fastly API Documentation.
Action | Endpoint |
---|---|
Get Fastly API docs as structured dataDeprecated | GET/docs |
Get API docs for a single subjectDeprecated | |
Get API docs matching a section filterDeprecated |
Public IP List
Public IP ListTo help you manage firewall rules for connections from Fastly to your origin, we provide access to the list of Fastly's assigned IP ranges. Changes to this list will be announced in advance as an "IP address announcement" along with other service announcements to our status page, which you can subscribe to. This list is exhaustive and includes all Fastly-owned IP ranges, so any client connections, log streaming reports, and origin connections should use these addresses.
Action | Endpoint |
---|---|
List Fastly's public IPs |
Sudo mode
Sudo modeSudo mode allows users to perform privileged actions after going through a re-authentication flow.
Action | Endpoint |
---|---|
Request Sudo access | POST/sudo |
Apex redirect
Apex redirectSupports redirecting traffic for apex domains, subdomains, or wildcard domains to a WWW subdomain.
Action | Endpoint |
---|---|
List apex redirects | |
Create an apex redirect | |
Get an apex redirect | |
Update an apex redirect | |
Delete an apex redirect |
Cache settings
Cache settingsConfigures cache lifetime for objects stored in the Fastly cache, overriding cache freshness information that would otherwise be determined from cache-related headers on the HTTP response. When used in conjunction with conditions, cache settings objects provide detailed control over how long content persists in the cache.
Action | Endpoint |
---|---|
List cache settings objects | |
Create a cache settings object | |
Get a cache settings object | |
Update a cache settings object | |
Delete a cache settings object |
Condition
ConditionConditions are used to control whether logic defined in configured VCL objects is applied for a particular client request. A condition contains a VCL conditional expression that evaluates to either true or false and is used to determine whether the condition is met. The type of the condition determines where it is executed and the VCL variables that can be evaluated as part of the conditional logic.
Action | Endpoint |
---|---|
List conditions | |
Create a condition | |
Describe a condition | |
Update a condition | |
Delete a condition |
VCL Diff
VCL DiffCompare the changes in generated VCL between two versions of a service. This is sometimes called a "diff" because the comparison may highlight "differences" between the versions. To compare the configuration changes between two versions of a service represented in YAML format instead, use the related diff endpoint.
Action | Endpoint |
---|---|
Get a comparison of the VCL changes between two service versions |
Gzip
GzipGzip configuration allows you to choose resources to automatically compress. For more information about compressing and decompressing data with Fastly, check out our concept guide to compression.
Action | Endpoint |
---|---|
List gzip configurations | |
Create a gzip configuration | |
Get a gzip configuration | |
Update a gzip configuration | |
Delete a gzip configuration |
Header
HeaderHeader objects are used to add, modify, or delete headers from requests and responses. The header content can be simple strings or be derived from variables inside Varnish. Regular expressions can be used to customize the headers even further.
Action | Endpoint |
---|---|
List Header objects | |
Create a Header object | |
Get a Header object | |
Update a Header object | |
Delete a Header object |
HTTP3/QUIC
HTTP3/QUICSupports the use of the HTTP/3 (QUIC) protocol.
Action | Endpoint |
---|---|
Get HTTP/3 status | |
Enable support for HTTP/3 | |
Disable support for HTTP/3 |
Rate Limiter
Rate LimiterRate limiters add configurable origin request rate limiting to a service. This information is part of a limited availability release. For more information, see our product and feature lifecycle descriptions. To use this feature you must purchase a Professional or Premier Platform subscription for either Signal Sciences Cloud WAF or Signal Sciences Next-Gen WAF and have a paid account with a contract for full-site delivery.
Action | Endpoint |
---|---|
List rate limiters | |
Create a rate limiter | |
Get a rate limiter | |
Update a rate limiter | |
Delete a rate limiter |
Request settings
Request settingsSettings used to customize Fastly's request handling. When used with Conditions the Request Settings object allows you to fine tune how specific types of requests are handled.
Action | Endpoint |
---|---|
List Request Settings objects | |
Create a Request Settings object | |
Get a Request Settings object | |
Update a Request Settings object | |
Delete a Request Settings object |
Response object
Response objectAllows you to create synthetic responses that exist entirely on the varnish machine. Useful for creating error or maintenance pages that exists outside the scope of your backend architecture. Best when used with Condition objects.
Action | Endpoint |
---|---|
List Response objects | |
Create a Response object | |
Get a Response object | |
Update a Response object | |
Delete a Response Object |
Settings
SettingsHandles default settings for a particular version of a service.
Action | Endpoint |
---|---|
Get service settings | |
Update service settings |
VCL Snippets
VCL SnippetsVCL Snippets are blocks of VCL logic inserted into your service's configuration that don't require custom VCL.
Action | Endpoint |
---|---|
Get a dynamic snippet | |
Update a dynamic snippet | |
List snippets | |
Create a snippet | |
Get a versioned snippet | |
Update a versioned snippet | |
Delete a snippet |
VCL
VCLA VCL is a Varnish configuration file used to customize the configuration for a Service.
Action | Endpoint |
---|---|
List custom VCL files | |
Create a custom VCL file | |
Get boilerplate VCL | |
Get a custom VCL file | |
Update a custom VCL file | |
Delete a custom VCL file | |
Get a custom VCL file with syntax highlighting | |
Download a custom VCL file | |
Get the generated VCL for a service | |
Get the generated VCL with syntax highlighting | |
Set a custom VCL file as main | |
Lint (validate) VCL using flags set for the service | |
Lint (validate) VCL using a default set of flags | POST/vcl_lint |
Firewalls Deprecated
FirewallsA firewall represents a configuration of a Web Application Firewall (WAF) on a service. A firewall has many firewall versions through which you can manage rules.
Action | Endpoint |
---|---|
List firewallsDeprecated | |
Create a firewallDeprecated | POST/waf/firewalls |
Get a firewallDeprecated | |
Delete a firewallDeprecated | |
Update a firewallDeprecated |
Firewall versions Deprecated
Firewall versionsFirewall version objects contain all of the rules and settings for your WAF and remain empty until properly configured. To understand the behavior of thresholds and scores, see Managing rules. Newly created firewall versions are initiated without any associated rules. See Active Rules for details. Changes to your WAF's rules and settings can be made by cloning an existing firewall version, making the changes, and then activating the new firewall version.
Action | Endpoint |
---|---|
List firewall versionsDeprecated | |
Create a firewall versionDeprecated | |
Get a firewall versionDeprecated | |
Update a firewall versionDeprecated | |
Clone a firewall versionDeprecated | |
Deploy or activate a firewall versionDeprecated |
Rules Deprecated
RulesRules are universally available for every firewall. Rules can have one or multiple rule revisions. You can add rules to your firewall by creating active rules.
Action | Endpoint |
---|---|
List available WAF rulesDeprecated | GET/waf/rules |
Get a ruleDeprecated |
Active Rules Deprecated
Active RulesAn active rule represents a rule revision added to a particular firewall version.
Action | Endpoint |
---|---|
List active rules on a WAFDeprecated | |
Add a rule to a WAF as an active ruleDeprecated | |
Delete multiple active rules from a WAFDeprecated | |
Get an active WAF rule objectDeprecated | |
Delete an active ruleDeprecated | |
Update an active ruleDeprecated | |
Update multiple active rulesDeprecated | |
Create active rules by tagDeprecated |
WAF Rule Exclusions Deprecated
WAF Rule ExclusionsWAF rule exclusions provide a flexible way to handle false positives, allowing specific variables, rules, and the entire WAF to be excluded on a per request basis. You can configure up to 300 WAF exclusions and each exclusion of type
rule
can have up to 30 rules associated with it.Action | Endpoint |
---|---|
List WAF rule exclusionsDeprecated | |
Create a WAF rule exclusionDeprecated | |
Get a WAF rule exclusionDeprecated | |
Delete a WAF rule exclusionDeprecated | |
Update a WAF rule exclusionDeprecated |
Rule revisions Deprecated
Rule revisionsRule revisions track new variations of rules as they change over time with enhancements, fixes, and improvements. This object allows you to find a specific variation of a rule for use in your application. An active rule on a firewall uses a specific rule revision.
Action | Endpoint |
---|---|
List revisions for a ruleDeprecated | |
Get a revision of a ruleDeprecated |