Skip to main content
GET

Authorizations

Authorization
string
header
required

Send your API key as a bearer token: Authorization: Bearer <your API key>. Make a key in the dashboard under Settings → API keys; a workspace key starts with wdg_org_ and works in the workspace it was made in. See API keys and Authentication.

Headers

X-Managed-User-Id
string<uuid>

The id Widgetic gave the managed user (POST /managed-users). Makes this call for one of your managed users, so that a mistake in your own code cannot reach another customer's work. Send this header, or the other one, never both. Left out, the call works on your whole account, as it always has. With it, the call reaches only that user's compositions, workflows, A/B tests and translations: a list shows only theirs, one the call makes is filed under them, and one of another user, or one that does not exist, answers 404 (the same answer, so the call cannot be used to find out what another customer has). A managed user that is not yours answers 404 with MANAGED_USER_NOT_FOUND. An empty, repeated or malformed header is 400 with MANAGED_USER_SCOPE_INVALID; an empty header is never read as no header. A call that is about the whole account, such as the list of your managed users, is refused with 403 and MANAGED_USER_SCOPE_ROUTE_NOT_AVAILABLE: send it without the header. Only a partner's API key can send it, because only a partner has managed users: a call that is not made with an API key is refused with 403 and MANAGED_USER_SCOPE_NOT_ALLOWED, and an API key that is not a partner's finds no managed user (404 with MANAGED_USER_NOT_FOUND). The header is a limit the call asks for: whoever holds the key can leave it out, so for a credential that a customer's browser holds, use an editor session. An Idempotency-Key is kept apart for each managed user.

Example:

"3f2b8c1e-7a4d-4e0b-9c55-2d1a6b7e8f90"

X-Managed-User-External-Id
string

Your own id for the managed user (its externalId), when you do not keep Widgetic's. Makes this call for one of your managed users, so that a mistake in your own code cannot reach another customer's work. Send this header, or the other one, never both. Left out, the call works on your whole account, as it always has. With it, the call reaches only that user's compositions, workflows, A/B tests and translations: a list shows only theirs, one the call makes is filed under them, and one of another user, or one that does not exist, answers 404 (the same answer, so the call cannot be used to find out what another customer has). A managed user that is not yours answers 404 with MANAGED_USER_NOT_FOUND. An empty, repeated or malformed header is 400 with MANAGED_USER_SCOPE_INVALID; an empty header is never read as no header. A call that is about the whole account, such as the list of your managed users, is refused with 403 and MANAGED_USER_SCOPE_ROUTE_NOT_AVAILABLE: send it without the header. Only a partner's API key can send it, because only a partner has managed users: a call that is not made with an API key is refused with 403 and MANAGED_USER_SCOPE_NOT_ALLOWED, and an API key that is not a partner's finds no managed user (404 with MANAGED_USER_NOT_FOUND). The header is a limit the call asks for: whoever holds the key can leave it out, so for a credential that a customer's browser holds, use an editor session. An Idempotency-Key is kept apart for each managed user.

Required string length: 1 - 255
Example:

"customer-1042"

Query Parameters

page
integer
default:1

Page number for pagination

Required range: x >= 1
size
integer
default:20

Number of items per page

Required range: 1 <= x <= 100
sort
string

The order of the list, as <field>:<asc|desc>. The field is createdAt, updatedAt, name or status (the snake_case spelling, such as created_at, is read too). asc or desc alone orders by createdAt. Default: createdAt:desc. Any other field is a 400.

Example:

"createdAt:desc"

widgetId
string<uuid>

Filter compositions by widget ID

workspace
enum<string>

Filter by workspace

Available options:
true,
false
projectFolder
string<uuid>

Only the compositions in this project (the project's id).

status
enum<string>

Only the compositions in this status. Without it, every status is listed.

Available options:
draft,
published,
archived,
demo
managedUserId
string<uuid>

List only the compositions made for this managed user (Widgetic's id for the user). Partners only, with an active partner API key. Send this or managedUserExternalId, not both. Send it as managedUserId; the snake_case spelling managed_user_id is refused with a 400, not ignored.

managedUserExternalId
string

List only the compositions made for the managed user you registered with this externalId (your own identifier for the user). Partners only. Send this or managedUserId, not both.

Maximum string length: 255

Response

List of compositions retrieved successfully

success
boolean
required
data
object[]
required
meta
object

Extra information about the answer: where a page sits in a list, the cursor of the next page, or warnings about a call that succeeded with a caveat.