brackets-curlyAPI Reference

circle-exclamation

Get stream information.

get

Gets basic information about the specified stream.

Path parameters
streamIdstringRequired
Header parameters
x-api-keystringRequired

API key for authentication

Responses
get
/v1/streams/{streamId}
default

Get streams list.

get

Returns a paginated list of public streams with optional filtering.

Query parameters
limitnumber · min: 1 · max: 50Optional

Limit of streams to return.

Default: 10
nextTokenstringOptional

Token to get the next page of streams.

streamStatestring · enumOptional

State of the stream.

Possible values:
streamCategorystring · enumOptional

Category of the stream.

Possible values:
isFeaturedbooleanOptional

Whether the stream is featured.

sortBystring · enumOptional

Sort by.

Possible values:
pricingTypestring · enumOptional

Pricing type.

Possible values:
custombooleanOptional

Whether to return custom streams.

minFollowersnumberOptional

Minimum number of followers.

Default: 0
Header parameters
x-api-keystringRequired

API key for authentication

Responses
get
/v1/streams
default

Get stream posts.

get

Gets posts from the specified stream. You must be a follower of the stream.

Path parameters
streamIdstringRequired
Query parameters
limitnumberOptional

Limit of posts to retrieve.

Default: 50
nextTokenstringOptional

Cursor for pagination (base64-encoded LastEvaluatedKey).

fromDatestring · date-timeOptional

Return posts created after this ISO 8601 timestamp.

toDatestring · date-timeOptional

Return posts created before this ISO 8601 timestamp.

Header parameters
x-api-keystringRequired

API key for authentication

Responses
get
/v1/streams/{streamId}/posts
default

Add a post to a stream.

post

Adds a post to the specified stream. You must use the stream publisher key for this stream.

Path parameters
streamIdstringRequired
Header parameters
x-api-keystringRequired

API key for authentication

Body
contentstringRequired

Content of the post.

contentTypestring · enumOptional

Specify how to process the content.

Default: rawtextPossible values:
releaseAtstring · date-timeOptional

Scheduled release date. Provide a date in ISO 8601 format.

customTargetstringOptional

Custom target. Required iff posting to a custom stream.

idempotencyKeystringOptional

Idempotency key. If provided, the post will be ignored if a post for the same stream and idempotencyKey already exists.

Responses
post
/v1/streams/{streamId}/post
default

Set custom targets for a stream.

post

Sets custom targets for the specified stream. You must be a follower of the stream.

Path parameters
streamIdstringRequired
Header parameters
x-api-keystringRequired

API key for authentication

Body
customTargetsstring[]Required

Custom targets to set for the stream.

Responses
post
/v1/streams/{streamId}/custom-targets
default

Patch custom targets for a stream.

patch

Adds and/or removes custom targets for a stream. You must be a follower of the stream.

Path parameters
streamIdstringRequired
Header parameters
x-api-keystringRequired

API key for authentication

Body
addstring[]Optional

Custom targets to add for the stream.

removestring[]Optional

Custom targets to remove from the stream.

Responses
patch
/v1/streams/{streamId}/custom-targets
default

Last updated