> ## Documentation Index
> Fetch the complete documentation index at: https://docs.slate-labs.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Reset Journey

> CRM-agent-initiated journey reset after a breach — payment-gated.

Creates a PENDING CHALLENGE_RESET_FEE transaction prefilled with the
snapshot's `reset_fee_amount`. When the tx is APPROVED,
`activate_prop_account(reset=True)` closes the prior account and creates
a fresh phase account funded with `account_size`. If `reset_fee_amount`
is NULL or 0 the tx is auto-approved and activation runs inline.

409 if the journey has no current account or the current account isn't
in 'breached' state (enforced inside `activate_prop_account` for the
activation path; we pre-check here so we don't even create the PENDING
tx for an invalid reset).



## OpenAPI

````yaml /openapi.json post /prop/journeys/{journey_id}/reset
openapi: 3.1.0
info:
  title: Slate API
  version: 1.0.0
  description: Trading infrastructure API.
servers:
  - url: https://api.{your-broker}.slate-labs.com
    variables:
      your-broker:
        default: broker
security: []
tags:
  - name: Authentication
  - name: API Tokens
  - name: Customers
  - name: Accounts
  - name: Orders
  - name: Instruments & Groups
  - name: Transactions
  - name: Payments
  - name: Transfers
  - name: Risk
  - name: Workflow & CRM
  - name: Messaging
  - name: Integrations
  - name: Webhooks
  - name: Compliance
  - name: Promo codes
  - name: Reporting
  - name: Audit
  - name: Fraud & moderation
  - name: Broker settings
  - name: Users
  - name: Roles & Teams
  - name: Streams (SSE)
  - name: Simulator
  - name: Observability
  - name: Prop trading
paths:
  /prop/journeys/{journey_id}/reset:
    post:
      tags:
        - Prop trading
      summary: Reset Journey
      description: |-
        CRM-agent-initiated journey reset after a breach — payment-gated.

        Creates a PENDING CHALLENGE_RESET_FEE transaction prefilled with the
        snapshot's `reset_fee_amount`. When the tx is APPROVED,
        `activate_prop_account(reset=True)` closes the prior account and creates
        a fresh phase account funded with `account_size`. If `reset_fee_amount`
        is NULL or 0 the tx is auto-approved and activation runs inline.

        409 if the journey has no current account or the current account isn't
        in 'breached' state (enforced inside `activate_prop_account` for the
        activation path; we pre-check here so we don't even create the PENDING
        tx for an invalid reset).
      operationId: reset_journey_prop_journeys__journey_id__reset_post
      parameters:
        - name: journey_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: Journey Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ResetJourneyRequest'
      responses:
        '201':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResetJourneyResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - bearerAuth: []
components:
  schemas:
    ResetJourneyRequest:
      properties:
        reason:
          type: string
          maxLength: 500
          minLength: 1
          title: Reason
      type: object
      required:
        - reason
      title: ResetJourneyRequest
    ResetJourneyResponse:
      properties:
        journey_id:
          type: string
          format: uuid
          title: Journey Id
        account_id:
          anyOf:
            - type: string
              format: uuid
            - type: 'null'
          title: Account Id
        login:
          anyOf:
            - type: string
            - type: 'null'
          title: Login
        phase:
          type: string
          title: Phase
        pending_payment_tx_id:
          anyOf:
            - type: string
              format: uuid
            - type: 'null'
          title: Pending Payment Tx Id
        activated:
          type: boolean
          title: Activated
      type: object
      required:
        - journey_id
        - account_id
        - login
        - phase
        - pending_payment_tx_id
        - activated
      title: ResetJourneyResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````