List journeys
Returns the journeys the caller can access, newest first. Filter by namespaceId or status. Pass nextCursor back as cursor for the next page.
GET
Returns the journeys the caller can access, newest first. Filter by namespaceId or status. Pass nextCursor back as cursor for the next page.
apiKeyheader
x-api-key<token>namespaceId?stringMatch
^ns_[0-9a-hjkmnp-tv-z]{16,24}$status?stringValue in
"draft""active""paused""archived"limit?|nullcursor?stringJourneyPage
application/json- response
items*array<>nextCursor*string|nullimport { createClient } from "samva";
const samva = createClient({ apiKey: process.env.SAMVA_API_KEY! });
const result = await samva.journeys.list({});Example Response
{
"items": [
{
"id": "string",
"namespaceId": "string",
"name": "string",
"status": "draft",
"publishedVersion": -9007199254740991,
"publishedAt": "string",
"createdAt": "string",
"updatedAt": "string"
}
],
"nextCursor": "string"
}