Stream EstateStream Estate
Reference

Error codes

HTTP codes and body format returned by the API

The API returns standard HTTP status codes with a problem+json body (RFC 7807).

Error format

{
  "type": "...",
  "title": "...",
  "status": 400,
  "detail": "Detailed explanation",
  "instance": "/properties?..."
}

Fields (per the Error schema in the OpenAPI):

FieldTypeDescription
typestringURI identifying the error type
titlestring | nullShort summary
statusnumberHTTP code
detailstring | nullDetailed description
instancestring | nullURI of the faulty request

422 Validation (ConstraintViolation)

Validation errors use the ConstraintViolation schema (always problem+json). The validation message is carried in the detail field (prefixed with the offending field path); there is no separate violations array:

{
  "type": "/validation_errors/c1051bb4-d103-4f74-8988-acbcafc7fdc3",
  "title": "Validation Failed",
  "status": 422,
  "detail": "name: This value should not be blank.",
  "instance": "/alerts"
}

Error 1010 (Cloudflare)

A 403 response whose body is the plain text error code: 1010, not problem+json, does not come from the API: the Cloudflare protection in front of the API refused the request because of its User-Agent header.

This happens with the default User-Agent of some HTTP libraries, for example Python's urllib (Python-urllib/3.x) or libwww-perl.

Send your own User-Agent on every request. Replace the default value entirely: adding your name after Python-urllib/3.x is not enough.

import urllib.request

req = urllib.request.Request(
    "https://api-v2.stream.estate/sources",
    headers={"X-API-KEY": "<your_key>", "User-Agent": "my-app/1.0"},
)
with urllib.request.urlopen(req) as res:
    print(res.read().decode())

Codes documented per endpoint

The OpenAPI endpoints declare the following codes depending on context:

CodeUsage
200Success (read)
201Resource created
204Success with no content (DELETE)
400Invalid request (malformed parameter, unknown field in the body)
403Access denied. Plain-text body error code: 1010: see Error 1010
404Resource not found
422Validation failed — message in detail. On POST /properties, also an unknown key inside criteria: see Unknown keys

429 Too Many Requests is not declared on individual endpoint responses in OpenAPI: it is enforced globally by the upstream rate limiter (see Rate limits). Treat it as a possible response on any route, in addition to the codes in the table above.

Exceptions — these endpoints have their own limit, on top of the global one, and declare 429 in their responses:

  • POST /properties/{id}/resolve-address — resolutions are limited per minute and per account. See Address resolution.
Version 0.34.464Last updated

On this page