Skip to content

Authentication

Unless otherwise specified, API requests must be authenticated with a bearer token, sent as an Authorization header on each request.

Bearer tokens are created through the Mobiledock Integration Hub. Sign in with your Mobiledock account to access it.

EnvironmentIntegration Hub URL
Production (APAC)integrations.mobiledock.com
Production (NA)integrations.na.mobiledock.com
Production (EU)integrations.eu.mobiledock.com
Stagingintegrations.staging.mobiledock.com

Once signed in:

  1. Select the organisation you wish to create a token for.
  2. Navigate to the Tokens page.
  3. Click Create New Token.
  4. Copy the token immediately and store it in a secure location.

Each token must be assigned permissions that control which API operations it can perform. For security, select the minimum permissions required for your integration.

See the Permissions Reference for a complete list of available permissions.

Add the token as a Bearer value in the Authorization header of every request.

HeaderValue
AuthorizationBearer YOUR_TOKEN
Terminal window
curl -X POST https://my.mobiledock.com/api/v1/graphql \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{"query": "{ bookings(count: 1) { results } }"}'

If a request is missing a token, or the token is invalid or expired, the API will respond with a 401 Unauthorized status code.

Status codeMeaning
401Missing or invalid token
403Token is valid but lacks the required permission