Skip to main content

Authentication

Foo's REST API implements a loose form of "token authentication" or "bearer authentication". At the time of this writing all endpoints require authentication and there is a single, "all or nothing" level of authorization (as in - no endpoints requre specific types of access... you either have access to all of them or you don't).

Example#

In the below example we request data for all pages associated with an an account having an apiToken of abc123.

curl -X GET "https://www.foo.software/api/v2/pages" \
-H "authorization: abc123" \
| json_pp

How to Get an API Token#

To acquire an API token, simply follow the steps below.