· View as Markdown

Authentication for organizations

You authenticate with Basic authentication, using an API key and an authentication token. Your organization's account has no password, so you sign in to it and create the token on the API clients page. You cannot use the authentication tokens endpoint: it needs a password.

1. Create an API key and a token

You need to be an administrator of the organization.

  1. Sign in to the organization.
  2. Go to the API clients management page.
  3. Create a new API client if you do not have one. Its page shows its API key (api_key).
  4. Edit the API client and click the "Create new Auth Token" button.

The page then shows your authentication token (auth_token). Keep it secret: it gives full access to your organization's account.

2. Make authenticated requests

Send the API key and the token with Basic authentication:

// header
Authorization: Basic base64encode("{api_key}:{auth_token}")

With curl, pass -u "$API_KEY:$AUTH_TOKEN".

Alternatively, send them as headers:

// headers
x-rwgps-api-key: {api_key}
x-rwgps-auth-token: {auth_token}

If your credentials are missing or wrong, you get a 401. See Responses and errors.