Skip to main content

Make your first request

This path verifies authentication with a read-only request, shows the standard response envelope, and gives you a safe foundation for your first write.

1. Create a scoped key

In Canary, open Settings → API Keys, create a key, and grant assets:read. Copy the value when it appears; Canary shows the full key once. Store it in an environment variable:
Test and live keys access the same organization records. Use a dedicated organization or clearly identified fixtures for development writes.

2. List one asset

Choose the example for your runtime. Each version calls the production endpoint, sends the Bearer header, and stops on a non-successful response.
A successful Canary-native list uses this shape:
An empty data array is also a successful connection.

3. Make the first write

Grant work_orders:write to a key, then create a work order. The resource IDs for asset_id, location_id, and assignees are optional.
The response has HTTP 201 and places the created work order in data.

4. Build for operations

Before running a recurring synchronization:
  • Follow the endpoint’s pagination variant.
  • Retry 429 responses using Retry-After and use backoff for transient 5xx failures.
  • Log X-Request-ID with every request.
  • Plan write retries using the idempotency guidance.

Resource model

Choose the right records and relationships.

Endpoint reference

Browse request fields, filters, scopes, and response schemas.