# Create a TrueFlow

Creates a new TrueFlow from a template

Endpoint: POST /v1/true-flows
Version: 1.6.0
Security: ApiKeyAuth

## Security:

  - `ApiKeyAuth` (unknown)
    http bearer API Key

## Request body:

  - `application/json` (unknown)
    Request payload for creating a TrueFlow

## Request fields (application/json):

  - `name` (string)
    Name of the TrueFlow

  - `expires_at` (string)
    Expiration date/time for the TrueFlow (ISO 8601)

  - `template_token` (string, required)
    Token of the flow template to use

  - `flow_data` (object)
    Key-value data for the flow form (keys and values depend on template)

  - `sign_data` (array)
    Array of signer data objects (e.g. signer_email, signer_name per item)

## Request examples:

  - `Create TrueFlow with template token` (unknown)

## Response 201:

  - `201` (unknown)
    Created TrueFlow

## Response 201 fields (application/json):

  - `token` (string, required)
    Unique identifier for the TrueFlow

  - `trueLink` (string, required)
    Deep link url to the TrueFlow

## Response 400:

  - `400` (unknown)
    Validation error

## Response 400 fields (application/problem+json):

  - `type` (string)
    A URI reference that identifies the problem type.
    Example: https://api.truescreen.io/errors/validation-error

  - `title` (string, required)
    Short, human-readable summary of the problem.
    Example: Validation failed

  - `status` (integer)
    HTTP status code.
    Example: 400

  - `detail` (string)
    Human-readable explanation specific to this occurrence.
    Example: One or more fields have invalid values

  - `code` (string, required)
    Unique code to identify the error.
    Example: TS-000

## Response 201 examples:

  - `Created TrueFlow (placeholder – complete with real values)` (unknown)

## Response 400 examples:

  - `Malformed payload or missing auth` (unknown)

  - `Missing required field template_token` (unknown)

  - `Flow template not found` (unknown)

  - `Flow data validation error` (unknown)

  - `Sign data validation error` (unknown)

  - `Attachment already linked to template` (unknown)

