HomeGuidesRecipesAPI ReferenceChangelog
GuidesAPI ReferenceCustomer Help CenterLog In
These docs are for v2017-01-01. Click to read the latest docs for v2021-03-10.

Authentication

For endpoints that require authentication, you'll need to create a user account. If you don't already have a user account take a look at the /api/users endpoint to create a new account.

Once you have a user account, you can use a couple different methods to authenticate yourself.

  • API key: Include your API key in a X-API-KEY header or pass an apiKey query string parameter. See the /api/users/{id}/apiKey endpoint for instructions on getting your API key.
curl -H "X-API-KEY: MY_API_KEY" https://sandbox.xola.com/api/experiences
# OR
curl https://sandbox.xola.com/api/experiences?apiKey=MY_API_KEY
  • Basic HTTP: In the sandbox environment (sandbox.xola.com), you can use the basic HTTP authentication header to pass your credentials.
curl https://sandbox.xola.com/api/experiences -u "[email protected]:my-password"