API Documentation
Responses
Every CoverageMap API response uses the same JSON envelope with a status, messages and data.
Every CoverageMap API returns JSON in the same envelope, whether the request succeeded or not. Read data for the result and messages for anything you should know about it.
Response envelope
Response
{
"status": 200,
"messages": {
"information": ["A note about the response"]
},
"data": { }
}statusintegerThe HTTP status code of the response, repeated in the body.
messagesobjectMessages about the request. Each list is only present when it has at least one message, so a successful response usually has an empty object.
Show child attributesHide child attributes
errorsstring[]OptionalWhy the request was rejected. Present on every failed request, and a request with errors returns no data.
informationstring[]OptionalNotes that do not stop the request, for example that part of the data was temporarily unavailable.
successstring[]OptionalConfirmations of an action.
dataobject | array | stringNullableThe result. Its shape depends on the endpoint and is documented on each endpoint page. It is null when the request failed.
Status codes
| Code | Meaning |
|---|---|
200 | The request succeeded. The result is in data. |
400 | The request was rejected: invalid input, a missing or invalid key, a key that is not allowed to make the request, or a usage limit. The reasons are in messages.errors. See Errors. |
500 | Something went wrong on our side. The request can be retried. |
503 | Returned by the status endpoint when a service is unhealthy. |
Use the status code to decide what to do, and the messages to understand why. Messages are written for people and their wording can change, so avoid matching on the exact text in code.
Field conventions
- Field names are camelCase.
- Fields marked Optional are left out when they do not apply, for example an
addresson a location that was sent as coordinates. - Fields marked Nullable are always present and are
nullwhen there is no value. - Numbers are plain JSON numbers. Units, such as dBm or Mbps, are given in each field's description.
- Codes you send, such as provider codes, are matched without regard to case.