HomeGuidesAPI ReferenceChangelog
Log In
API Reference

Responses

Learn about API response formats, HTTP status codes, response payload structure, and error handling in our REST API.

Use this page to understand Signal API response formats, HTTP status codes, response payloads, and error handling.

When a response is returned, there are two key pieces of information to consider:

  • HTTP status code: Protocol-level status of the response.
  • Response payload: Response body in a standard format that provides application-level status, results, and errors.

Response formats

All responses are returned in JSON format.

HTTP status codes

Signal APIs use standard HTTP status codes to indicate success or failure.

HTTP CodeMessageDescription
200OKThe request was processed and returned successfully.
201CreatedThe new resource was created successfully.
400Bad RequestProblem with the request, such as a missing, invalid, or type-mismatched parameter.
401UnauthorizedThe request did not include valid authorization credentials.
403ForbiddenAccess denied to private data, or the rate limit was exceeded.
404Not FoundThe URL is incorrect, or the requested resource does not exist.
500Server ErrorA problem occurred while handling the request.
503Service UnavailableThe API is temporarily unavailable.

Response payload

Each API response is wrapped in a standard payload that contains results and useful metadata such as total record count and result object type.

{
  "status": "success",
  "count": 2,
  "type": "LoadServingEntity",
  "results": [
    {
      "lseId": 2756,
      "name": "Georgia Power Co",
      "code": "7140",
      "websiteHome": "http://www.georgiapower.com/"
    },
    {
      "lseId": 1,
      "name": "City of Augusta",
      "code": "1000",
      "websiteHome": null
    }
  ]
}
NameTypeDescription
statusStringPossible values: success or error.
countIntegerTotal count of records matching the request. Due to pagination, this may not equal the number of records in the response.
typeStringResource or object type.
resultsObject[]Contains the object or objects requested.

Results are returned as an array, even when requesting a single object.

Response payload changes

New fields may be added to responses over time. API clients should be prepared to ignore object properties they do not recognize.

Errors

Errors are communicated in the response payload.

{
  "status": "error",
  "count": 2,
  "type": "Error",
  "results": [
    {
      "code": "NotNull",
      "message": "An appKey must be supplied",
      "objectName": "requestSignature",
      "propertyName": "appKey"
    },
    {
      "code": "NotNull",
      "message": "An appId must be supplied",
      "objectName": "requestSignature",
      "propertyName": "appId"
    }
  ]
}

The Error type includes these fields:

NameTypeDescription
codeStringUnique string identifying the error type.
messageStringLocalized, user-readable message describing the error.
objectNameStringObject type related to the error.
propertyNameStringObject property related to the error.

Related pages