Skip to main content

API Basics

API Access

To start building with the Streamdiver API, you need a tenant with API credentials. Request a trial to get your clientId and clientSecret – or check out the Publishing-Suite live demo to see the platform in action first.

No credentials needed

You can explore all available endpoints in the interactive API reference right now – no signup required.

OpenAPI Specification File

See OpenAPI and Client Generation for details on the spec, client generation, and download.

API Protocols and Headers

The Streamdiver API is organized around REST. Our API has predictable resource-oriented URLs, returns JSON-encoded responses, and uses standard HTTP response codes, authentication, and verbs. The HTTP responses follow the JSend JSON specification. The Streamdiver API is served over HTTPS TLS v1.2+ to ensure data privacy; HTTP and HTTPS with TLS versions below 1.2 are not supported.

Common Response Attributes

The Streamdiver API responses adhere to a standardized structure to ensure clarity and consistency. The following are the common attributes you can expect in a response:

FieldTypeDescription
statusstringIndicates the status of the response. It can take one of three values:
success, fail, or error. This field provides a high-level overview of the outcome.
dataobjectHolds the actual content of the response. Its structure
and content depend on the specific endpoint and the type of request made.
In a success response, this typically contains the requested data.
messagestringProvides additional information about the response status.
It's especially useful in cases where an error or failure occurs, offering details about what went wrong.

Pagination

List endpoints return paginated results. Use the following query parameters to control pagination:

ParameterTypeDefaultDescription
pageinteger0Page number (0-based)
perpageinteger10Items per page (max 50)
sortstringSort by property name. Append :desc for descending order (e.g., name:desc)

Example:

GET /v2/media?perpage=20&page=0&sort=name:desc

Error Codes

The API uses standard HTTP status codes. Common error responses:

StatusMeaningDescription
200OKRequest succeeded
201CreatedResource successfully created
400Bad RequestInvalid request syntax or parameters
401UnauthorizedMissing or invalid authentication token
403ForbiddenValid token but insufficient permissions
404Not FoundResource does not exist
409ConflictDuplicate resource (e.g., duplicate file upload)
422Unprocessable EntityRequest body failed validation

Error responses follow the standard JSend format with a message field describing the issue.