Base URL
Send production requests to this base URL:Versioning
The version is part of the URL. All endpoints in this reference usev1.
Keep /api/v1 in each request URL. An endpoint path in this reference starts after /api. For example, GET /v1/services maps to GET https://brokers.newyorkcityservers.com/api/v1/services.
Authentication And Access
Every request needs an API key in theAuthorization header. Use the Bearer scheme:
Request Conventions
The API uses JSON for request bodies and responses.- Send
Content-Type: application/jsonwhen an endpoint has a JSON body. - Put filters and pagination values in the query string for list endpoints.
- Put service numbers and request IDs in the path when an endpoint identifies one record.
- Use the HTTP method that the endpoint page specifies. The v1 API uses
GETfor reads andPOSTfor actions.
Success Responses
A successful response containssuccess: true and a data value.
200. Some service and request actions return HTTP 202 when Broker Panel accepts the work for processing or review. A 202 response still uses success: true.
List endpoints can add a pagination object:
data fields.
Error Responses
An error response containssuccess: false. The error object always contains a machine-readable code and a message. Some endpoint errors also contain a details object.
A
429 response includes a Retry-After header. Its value is the number of seconds to wait before another request.
Do not retry a 400, 401, 403, 404, or 409 response without a change to the request or integration state. For a 500 response, keep the request details from your system logs and try again after a delay.
