---
title: "Create"
method: POST
path: "/api/v1/journeys"
---

# Create

`POST /api/v1/journeys`

## Request

- Base URL: `https://api.ascendkit.dev` (the document declares no server; this is the origin it was published from)
- URL: `https://api.ascendkit.dev/api/v1/journeys`
- Auth: API key in header `X-AscendKit-Public-Key` and HTTP bearer

## Request body

- JourneyCreate
  - `name` string, required
  - `slug` string, nullable
  - `description` string
  - `entryEvent` string, required
  - `entryNode` string, required
  - `entryConditions` object, nullable
  - `reEntryPolicy` 'skip' | 'restart'
  - `nodes` object, nullable
  - `transitions` TransitionDef[]
    - `from` string, required
    - `to` string, required
    - `trigger` TransitionTrigger, required
      - `type` 'event' | 'timer', required
      - `event` string, nullable
      - `eventFilter` object, nullable
      - `delay` string, nullable
    - `priority` integer, nullable
    - `name` string, nullable

## Response `200`

Successful Response

- ApiResponse
  - `data` unknown
  - `error` string, nullable
  - `meta` object, nullable

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/ascendkit/apis/ascendkit-api.md) · [All operations](https://skmtc.dev/ascendkit/apis/ascendkit-api/llms.txt) · [OpenAPI document](https://skmtc.dev/ascendkit/apis/ascendkit-api/revisions/0a41c122c44f?raw)
