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

# Create a referral

> Persist a referral and queue its invitation. This does not sign, charge, file or open a bank account. Replay the same Idempotency-Key and body after an uncertain response.



## OpenAPI

````yaml openapi.json POST /incorporations
openapi: 3.1.1
info:
  title: Expedite Partners API
  version: 1.0.0
  description: >-
    Approved partners invite founders to complete a Delaware C Corporation in
    Expedite, track incorporation progress, and receive signed updates. Document
    access requires the founder's separate permission.
servers:
  - url: https://api.expedite.now/api/partners/v1
security:
  - partnerOAuth: []
paths:
  /incorporations:
    post:
      summary: Invite a founder to complete an incorporation
      description: >-
        Persist a referral and queue its invitation. This does not sign, charge,
        file or open a bank account. Replay the same Idempotency-Key and body
        after an uncertain response.
      operationId: createIncorporationReferral
      parameters:
        - name: idempotency-key
          in: header
          required: true
          schema:
            type: string
            minLength: 1
            maxLength: 160
            example: atlas-labs-incorporation-001
          example: atlas-labs-incorporation-001
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                externalReference:
                  type: string
                  minLength: 1
                  maxLength: 160
                  description: Your reference
                email:
                  type: string
                  format: email
                  description: Founder email
                givenName:
                  type: string
                  minLength: 1
                  maxLength: 100
                  description: First name
                familyName:
                  type: string
                  minLength: 1
                  maxLength: 100
                  description: Last name
                companyName:
                  type: string
                  minLength: 1
                  maxLength: 200
                  description: Proposed company name
                lane:
                  const: US_DE_C_CORP
                  type: string
                  enum:
                    - US_DE_C_CORP
                partnerCode:
                  type: string
                  maxLength: 50
              required:
                - externalReference
                - email
                - givenName
                - familyName
            example:
              externalReference: atlas-labs-001
              email: alex@example.com
              givenName: Alex
              familyName: Morgan
              companyName: Atlas Labs
              lane: US_DE_C_CORP
      responses:
        '201':
          description: OK
          headers:
            location:
              schema:
                type: string
              required: true
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                  externalReference:
                    type: string
                  environment:
                    enum:
                      - SANDBOX
                      - PRODUCTION
                  email:
                    type: string
                    format: email
                  givenName:
                    type: string
                  familyName:
                    type: string
                  companyName:
                    anyOf:
                      - type: string
                      - type: 'null'
                  lane:
                    const: US_DE_C_CORP
                    type: string
                    enum:
                      - US_DE_C_CORP
                  invitation:
                    type: object
                    properties:
                      status:
                        enum:
                          - QUEUED
                          - SENDING
                          - SENT
                          - NEEDS_ATTENTION
                          - EXPIRED
                          - CLAIMED
                          - CANCELED
                      expiresAt:
                        anyOf:
                          - type: string
                            format: date-time
                          - type: 'null'
                    required:
                      - status
                      - expiresAt
                  progress:
                    anyOf:
                      - type: object
                        properties:
                          formation:
                            enum:
                              - IN_PROGRESS
                              - SUBMITTED
                              - FILING
                              - INCORPORATED
                              - ACTION_REQUIRED
                              - UNAVAILABLE
                          ein:
                            enum:
                              - NOT_REQUESTED
                              - PENDING
                              - ISSUED
                          submittedAt:
                            anyOf:
                              - type: string
                                format: date-time
                              - type: 'null'
                          filingOrderedAt:
                            anyOf:
                              - type: string
                                format: date-time
                              - type: 'null'
                          incorporatedAt:
                            anyOf:
                              - type: string
                                format: date-time
                              - type: 'null'
                          einIssuedAt:
                            anyOf:
                              - type: string
                                format: date-time
                              - type: 'null'
                          nextActor:
                            enum:
                              - FOUNDER
                              - EXPEDITE
                              - PARTNER
                              - NONE
                          nextAction:
                            type: string
                        required:
                          - formation
                          - ein
                          - submittedAt
                          - filingOrderedAt
                          - incorporatedAt
                          - einIssuedAt
                          - nextActor
                          - nextAction
                      - type: 'null'
                  documentSharing:
                    type: object
                    properties:
                      granted:
                        type: boolean
                      updatedAt:
                        anyOf:
                          - type: string
                            format: date-time
                          - type: 'null'
                    required:
                      - granted
                      - updatedAt
                  claimedAt:
                    anyOf:
                      - type: string
                        format: date-time
                      - type: 'null'
                  canceledAt:
                    anyOf:
                      - type: string
                        format: date-time
                      - type: 'null'
                  createdAt:
                    type: string
                    format: date-time
                  updatedAt:
                    type: string
                    format: date-time
                  version:
                    type: integer
                    minimum: -9007199254740991
                    maximum: 9007199254740991
                  documents:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                        kind:
                          enum:
                            - FORMATION_CERTIFICATE
                            - EIN_NOTICE
                        name:
                          type: string
                        availableAt:
                          type: string
                          format: date-time
                      required:
                        - id
                        - kind
                        - name
                        - availableAt
                  workflowSteps:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                        label:
                          type: string
                        status:
                          enum:
                            - COMPLETE
                            - PENDING
                            - UPCOMING
                            - ACTION_REQUIRED
                      required:
                        - id
                        - label
                        - status
                    default: []
                  invitationHistory:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                        status:
                          enum:
                            - QUEUED
                            - SENDING
                            - SENT
                            - NEEDS_ATTENTION
                            - EXPIRED
                            - CLAIMED
                            - CANCELED
                        createdAt:
                          type: string
                          format: date-time
                        expiresAt:
                          type: string
                          format: date-time
                      required:
                        - id
                        - status
                        - createdAt
                        - expiresAt
                required:
                  - id
                  - externalReference
                  - environment
                  - email
                  - givenName
                  - familyName
                  - companyName
                  - lane
                  - invitation
                  - progress
                  - documentSharing
                  - claimedAt
                  - canceledAt
                  - createdAt
                  - updatedAt
                  - version
                  - documents
                  - invitationHistory
              example:
                id: ref_atlas_labs_001
                externalReference: atlas-labs-001
                environment: SANDBOX
                email: alex@example.com
                givenName: Alex
                familyName: Morgan
                companyName: Atlas Labs
                lane: US_DE_C_CORP
                invitation:
                  status: QUEUED
                  expiresAt: '2026-11-16T10:00:00.000Z'
                progress: null
                documentSharing:
                  granted: false
                  updatedAt: null
                claimedAt: null
                canceledAt: null
                createdAt: '2026-11-09T10:00:00.000Z'
                updatedAt: '2026-11-09T10:00:00.000Z'
                version: 1
                documents: []
                workflowSteps: []
                invitationHistory:
                  - id: inv_atlas_labs_001
                    status: QUEUED
                    createdAt: '2026-11-09T10:00:00.000Z'
                    expiresAt: '2026-11-16T10:00:00.000Z'
        '400':
          description: '400'
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                      message:
                        type: string
                      requestId:
                        type: string
                      issues:
                        type: array
                        items:
                          type: object
                          properties:
                            path:
                              type: array
                              items:
                                anyOf:
                                  - type: string
                                  - type: number
                            message:
                              type: string
                          required:
                            - path
                            - message
                    required:
                      - code
                      - message
                      - requestId
                    additionalProperties: false
                required:
                  - error
                additionalProperties: false
              example:
                error:
                  code: BAD_REQUEST
                  message: Request validation failed
                  requestId: 9cf1644fb12e4af6ac9f47780e3a28d7
        '401':
          description: '401'
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                      message:
                        type: string
                      requestId:
                        type: string
                      issues:
                        type: array
                        items:
                          type: object
                          properties:
                            path:
                              type: array
                              items:
                                anyOf:
                                  - type: string
                                  - type: number
                            message:
                              type: string
                          required:
                            - path
                            - message
                    required:
                      - code
                      - message
                      - requestId
                    additionalProperties: false
                required:
                  - error
                additionalProperties: false
              example:
                error:
                  code: UNAUTHORIZED
                  message: Partner authentication failed
                  requestId: 9cf1644fb12e4af6ac9f47780e3a28d7
        '403':
          description: '403'
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                      message:
                        type: string
                      requestId:
                        type: string
                      issues:
                        type: array
                        items:
                          type: object
                          properties:
                            path:
                              type: array
                              items:
                                anyOf:
                                  - type: string
                                  - type: number
                            message:
                              type: string
                          required:
                            - path
                            - message
                    required:
                      - code
                      - message
                      - requestId
                    additionalProperties: false
                required:
                  - error
                additionalProperties: false
              example:
                error:
                  code: FORBIDDEN
                  message: Required permission is missing
                  requestId: 9cf1644fb12e4af6ac9f47780e3a28d7
        '404':
          description: '404'
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                      message:
                        type: string
                      requestId:
                        type: string
                      issues:
                        type: array
                        items:
                          type: object
                          properties:
                            path:
                              type: array
                              items:
                                anyOf:
                                  - type: string
                                  - type: number
                            message:
                              type: string
                          required:
                            - path
                            - message
                    required:
                      - code
                      - message
                      - requestId
                    additionalProperties: false
                required:
                  - error
                additionalProperties: false
              example:
                error:
                  code: NOT_FOUND
                  message: Resource not found
                  requestId: 9cf1644fb12e4af6ac9f47780e3a28d7
        '409':
          description: '409'
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                      message:
                        type: string
                      requestId:
                        type: string
                      issues:
                        type: array
                        items:
                          type: object
                          properties:
                            path:
                              type: array
                              items:
                                anyOf:
                                  - type: string
                                  - type: number
                            message:
                              type: string
                          required:
                            - path
                            - message
                    required:
                      - code
                      - message
                      - requestId
                    additionalProperties: false
                required:
                  - error
                additionalProperties: false
              example:
                error:
                  code: CONFLICT
                  message: The request conflicts with the current resource state
                  requestId: 9cf1644fb12e4af6ac9f47780e3a28d7
        '429':
          description: '429'
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                      message:
                        type: string
                      requestId:
                        type: string
                      issues:
                        type: array
                        items:
                          type: object
                          properties:
                            path:
                              type: array
                              items:
                                anyOf:
                                  - type: string
                                  - type: number
                            message:
                              type: string
                          required:
                            - path
                            - message
                    required:
                      - code
                      - message
                      - requestId
                    additionalProperties: false
                required:
                  - error
                additionalProperties: false
              example:
                error:
                  code: TOO_MANY_REQUESTS
                  message: Request limit reached; retry later
                  requestId: 9cf1644fb12e4af6ac9f47780e3a28d7
      security:
        - partnerOAuth:
            - incorporations:create
components:
  securitySchemes:
    partnerOAuth:
      type: oauth2
      flows:
        clientCredentials:
          tokenUrl: https://api.expedite.now/api/partners/v1/token
          scopes:
            incorporations:create: Create incorporation invitations
            incorporations:read: Read permitted referral progress
            incorporations:invite: Resend or cancel unclaimed invitations
            incorporation_documents:read: Read formation and EIN documents shared by the founder
            webhooks:manage: Configure endpoints and inspect or replay eligible deliveries

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.