Authentication
Last updated
Last updated
Each API request requires an API key either as a HTTP Header or included as a query string.
You can find your API key in the Frill Dashboard.
Your API key has many privileges, be sure to keep it secret! Do not share the key in publicly accessible areas such GitHub, client-side code, and so forth.
Include the API Key in the Authorization
header where the value is prefixed with Bearer
in the format:
Include the API key as part of the request path in the format ?api_key=API_KEY
.
Following the . Provide your API key as the basic auth username value. You do not need to provide a password.
The Authorization field is constructed as follows:
The username (api_key) and password (leave blank) are combined with a single colon. (:)
The resulting string is encoded into an octet sequence.
The resulting string is encoded using Base64.
The authorization method and a space is then prepended to the encoded string, separated with a space (e.g. "Basic ").