Get started

Shared conventions

Shared conventions

The Map Studio API, the Data API and the Tile API share one set of rules. A failure answers the same envelope on all three:

Response
{
  "errors": [
    {
      "message": "Activity is not recognized",
      "path": ["request", "body", "activity_id"],
      "extensions": { "code": "VALIDATION_FAILED" }
    }
  ]
}

Branch on extensions.code, never on message. Every answer also carries an X-Request-Id: log it beside each failure.

Every convention

ConventionWhat it covers
ErrorsThe error envelope, every code, and which failures to retry.
Rate limits and usageThe per-minute limits and monthly allowances, and how to handle a 429.
IdempotencyAn Idempotency-Key on every Map Studio API write, so a retry never makes the write twice.
PaginationPaging through a Map Studio API listing with limit and cursor.
Conditional writesSending an ETag back as If-Match, so a write never overwrites a newer change.
Request IDs and headersThe headers every request sends and every answer carries.
Versioning and deprecationHow the contract is versioned and how a retirement is announced.

Next steps

Last updated