Skip to content
This site documents the main branch, which may hold changes not yet released. Latest release: v0.3.0 (changelog).

List workspaces

GET
/admin/workspaces
curl --request GET \
--url 'http://localhost:3000/admin/workspaces?limit=50' \
--header 'Authorization: Bearer <token>'
includeEphemeral
boolean | string
cursor
string
/^ws_[A-Za-z0-9-]{1,64}$/
limit
integer
default: 50 >= 1 <= 200

One page.

Media typeapplication/json
object
data
required
Array<object>
object
id
required
string
/^ws_[A-Za-z0-9-]{1,64}$/
slug
required
string
/^[a-z0-9][a-z0-9-]{1,62}$/
name
required
string
description
required
string | null
ephemeral
required
boolean
idleTtlSeconds
required
Any of:
integer
>= -9007199254740991 <= 9007199254740991
expiresAt
required
Any of:
string format: date-time
/^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z|([+-](?:[01]\d|2[0-3]):[0-5]\d)))$/
lastActivityAt
required
string format: date-time
/^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z|([+-](?:[01]\d|2[0-3]):[0-5]\d)))$/
retentionSeconds
required
integer
>= -9007199254740991 <= 9007199254740991
maxMessages
required
Any of:
integer
>= -9007199254740991 <= 9007199254740991
rateLimit
required
Any of:
object
limit
required
integer
> 0 <= 9007199254740991
windowSeconds
required
integer
default: 1 > 0 <= 9007199254740991
burst
integer
> 0 <= 9007199254740991
simulation
required
object
rates
required
object
key
additional properties
number
<= 100
rules
required
Array<object>
default: <= 50 items
object
match
required
string
>= 1 characters
status
string
Allowed values: delivered deferred soft_bounce hard_bounce complained failed invalid
delayMs
integer
<= 600000
smtpCode
integer
>= 400 <= 599
latency
required
object
minMs
required
integer
<= 600000
maxMs
required
integer
<= 600000
openRate
required
number
0 <= 100
clickRate
required
number
0 <= 100
metadata
required
Any of:
object
key
additional properties
string
urls
required
object
ui
required
string
capture
required
string
mcp
required
string
createdAt
required
string format: date-time
/^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z|([+-](?:[01]\d|2[0-3]):[0-5]\d)))$/
nextCursor
required
string | null

Example

{
"data": [
{
"rateLimit": {
"windowSeconds": 1
},
"simulation": {
"rates": {
"delivered": 100
},
"rules": [],
"latency": {
"minMs": 0,
"maxMs": 0
},
"openRate": 0,
"clickRate": 0
}
}
]
}
X-Request-Id
required

Id of the request (req_…), also the id of its request log row.

string

Id of the request (req_…), also the id of its request log row.

Error: unauthorized

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: unauthorized forbidden validation_error not_found conflict idempotency_mismatch rate_limited payload_too_large chaos_injected wait_timeout internal_error
message
required
string
details
requestId
required
string

Example

{
"error": {
"code": "unauthorized"
}
}
X-Request-Id
required

Id of the request (req_…), also the id of its request log row.

string

Id of the request (req_…), also the id of its request log row.

WWW-Authenticate
required

Sent with every 401.

string
Allowed value: Bearer

Sent with every 401.

Error: forbidden

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: unauthorized forbidden validation_error not_found conflict idempotency_mismatch rate_limited payload_too_large chaos_injected wait_timeout internal_error
message
required
string
details
requestId
required
string

Example

{
"error": {
"code": "unauthorized"
}
}
X-Request-Id
required

Id of the request (req_…), also the id of its request log row.

string

Id of the request (req_…), also the id of its request log row.

Error: validation_error

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: unauthorized forbidden validation_error not_found conflict idempotency_mismatch rate_limited payload_too_large chaos_injected wait_timeout internal_error
message
required
string
details
requestId
required
string

Example

{
"error": {
"code": "unauthorized"
}
}
X-Request-Id
required

Id of the request (req_…), also the id of its request log row.

string

Id of the request (req_…), also the id of its request log row.

Error: internal_error

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: unauthorized forbidden validation_error not_found conflict idempotency_mismatch rate_limited payload_too_large chaos_injected wait_timeout internal_error
message
required
string
details
requestId
required
string

Example

{
"error": {
"code": "unauthorized"
}
}
X-Request-Id
required

Id of the request (req_…), also the id of its request log row.

string

Id of the request (req_…), also the id of its request log row.