List workspaces
GET
/admin/workspaces
const url = 'http://localhost:3000/admin/workspaces?limit=50';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'http://localhost:3000/admin/workspaces?limit=50' \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”includeEphemeral
boolean | string
cursor
string
limit
integer
Responses
Section titled “Responses”One page.
Media typeapplication/json
object
data
required
Array<object>
object
id
required
string
slug
required
string
name
required
string
description
required
string | null
ephemeral
required
boolean
lastActivityAt
required
string format: date-time
retentionSeconds
required
integer
rateLimit
required
simulation
required
object
rates
required
object
key
additional properties
number
rules
required
Array<object>
object
match
required
string
status
string
delayMs
integer
smtpCode
integer
latency
required
object
minMs
required
integer
maxMs
required
integer
openRate
required
number
clickRate
required
number
urls
required
object
ui
required
string
capture
required
string
mcp
required
string
createdAt
required
string format: date-time
nextCursor
required
string | null
Example
{ "data": [ { "rateLimit": { "windowSeconds": 1 }, "simulation": { "rates": { "delivered": 100 }, "rules": [], "latency": { "minMs": 0, "maxMs": 0 }, "openRate": 0, "clickRate": 0 } } ]}Headers
Section titled “Headers”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
message
required
string
details
requestId
required
string
Example
{ "error": { "code": "unauthorized" }}Headers
Section titled “Headers”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
Sent with every 401.
Error: forbidden
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details
requestId
required
string
Example
{ "error": { "code": "unauthorized" }}Headers
Section titled “Headers”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
message
required
string
details
requestId
required
string
Example
{ "error": { "code": "unauthorized" }}Headers
Section titled “Headers”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
message
required
string
details
requestId
required
string
Example
{ "error": { "code": "unauthorized" }}Headers
Section titled “Headers”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.