Journeys

Operations related to Journeys

Create Journey

Creates a Journey in the given Engage space. Accepts an XState journey definition and creates the journey in draft state.

• This endpoint is in Alpha testing. Please submit any feedback by sending an email to friends@segment.com.

Securitytoken
Request
path Parameters
spaceId
required
string [ 1 .. 255 ]
Example: 9aQ1Lj62S4bomZKLF4DPqW
Request Body schema: application/vnd.segment.v1alpha+json
required
name
required
string (name)

Display name for the journey.

description
string (description)

Optional description.

required
object (definition)

XState journey definition.

Responses
200

OK

404

Resource not found

422

Validation failure

429

Too many requests

post/spaces/{spaceId}/journeys
Request samples
application/vnd.segment.v1alpha+json
{
  • "name": "Application Abandonment",
  • "description": "Calls users who abandon an application within 20 minutes",
  • "definition": {
    }
}
Response samples
application/vnd.segment.v1alpha+json
{
  • "data": {
    }
}