The majority of endpoints require the following information:
Item | Description |
---|---|
Authorization |
Most requests require authorization. Authorization information, which is contained within a token, is defined by the Authorization request header. |
Account Number |
api.edgecast.com Only Most requests require a customer account number. This account number, which may be found in the upper-right hand corner of the MCC, indicates the customer account on which the request will be performed. |
Any programming language that supports GET, POST, PUT, and DELETE requests over HTTPS is allowed.
No. Our documentation only provides examples of properly formatted HTTPS requests.
Search the web (e.g., HTTPS request using PHP) to find out how to submit a HTTPS request using the desired programming language. Look for an example that explains how to define request headers and a request body.
Authenticate and authorize your requests by passing the Authorization header with the following value:
api.edgecast.com
API Gateway (api.vdms.io)
User authentication requires passing a unique value (i.e., token).
api.edgecast.com
Requests to api.edgecast.com leverage a REST API token. Generate this token by performing the following steps:
Navigate to the View Profile page.
Click Generate New Primary from the Web Service REST API Token section. When prompted, click OK to confirm this action.
If the Web Service REST API Token section doesn't exist, please contact your MCC administrator to request access to our REST API service. Upon approval, you will be allowed to generate and view tokens.
From your preferred email client, open the verification email and then follow the verification link. The current primary token will be set as a backup token.
Both primary and backup tokens provide the same level of access to the REST API.
API Gateway (api.vdms.io)
Requests to our API gateway require a temporary token generated from your OAuth 2.0 credentials. Generate this token by submitting a POST request to IDS.
api.edgecast.com
Your MCC administrator determines which users are allowed to use the REST API. The REST API token will only be displayed to authorized users.
Your MCC administrator may have configured the REST API to only be accessed through a user account with limited privileges. This type of setup requires the MCC administrator to manually provide a REST API token to authorized users.
API Gateway (api.vdms.io)
Tokens are not provided. Rather, they must be generated and they are only valid for 5 minutes.
api.edgecast.com
All user privileges, including those pertaining to the REST API, may be defined when modifying a user account from within the MCC.
API Gateway (api.vdms.io)
Each request to generate a token defines a scope. This scope determines the set of privileges that will be granted to the token.
A 200 OK response indicates that a properly formatted request was submitted and processed by the REST API. Typically, this means that the requested action was successfully performed. An exception to this rule takes place for requests that pass an invalid object ID (e.g., edge CNAME
Typically, a 200 OK response will only include a response body under the following circumstances:
An empty response body will typically be returned under the following circumstances:
A non-2xx response (e.g., 400 Bad Request) means that the requested action was not performed. The reason why the requested action did not take place is indicated by the HTTP response method (e.g., 400 Bad Request). An additional explanation may also be provided in the response body.