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

# Issues a link through which the form can be submitted.

> The link opens the form in the Gorelo form web app without a login; one submission made
through it is filed against the form - and against the ticket or task named in the body,
if one is. Send at most one of `TicketId` and `TaskId`; both is a 400. Each must
be an active record of the authenticated service provider, or the response is a 400 naming
the field. An unused link expires at `ExpiresOn`, seven days after it is issued. An
archived form takes no submissions and is a 404, as is a form that does not exist or
belongs to another service provider.



## OpenAPI

````yaml /api-reference/openapi.json post /v1/forms/{formId}/submission-links
openapi: 3.0.4
info:
  title: Public API
  description: Gorelo Public API documentation.
  version: 1.0.0
servers:
  - url: https://api.usw.gorelo.io
    description: US
  - url: https://api.aue.gorelo.io
    description: Australia
security:
  - ApiKeyAuth: []
tags:
  - name: Attachments
    description: "Uploading a file, for anything that can carry one. One endpoint rather than one per record\r\ntype, because the upload itself is identical - only the record it is checked against differs."
  - name: Alerts
    description: Alerts management operations
  - name: Assets
    description: Assets management operations
  - name: Billing
    description: Billing management operations
  - name: Tickets
    description: Tickets management operations
  - name: Clients
    description: Clients management operations
  - name: Contacts
    description: Contacts management operations
  - name: Deletions
    description: Deletions management operations
  - name: Documents
    description: Documents management operations
  - name: Forms
    description: Forms management operations
  - name: Organization
    description: Organization management operations
  - name: Projects
    description: Projects management operations
paths:
  /v1/forms/{formId}/submission-links:
    post:
      tags:
        - Forms
      summary: Issues a link through which the form can be submitted.
      description: "The link opens the form in the Gorelo form web app without a login; one submission made\r\nthrough it is filed against the form - and against the ticket or task named in the body,\r\nif one is. Send at most one of `TicketId` and `TaskId`; both is a 400. Each must\r\nbe an active record of the authenticated service provider, or the response is a 400 naming\r\nthe field. An unused link expires at `ExpiresOn`, seven days after it is issued. An\r\narchived form takes no submissions and is a 404, as is a form that does not exist or\r\nbelongs to another service provider."
      operationId: post_v1_forms_formId_submission-links
      parameters:
        - name: formId
          in: path
          description: Form the link is for.
          required: true
          schema:
            pattern: ^[A-Za-z0-9_-]{1,50}$
            type: string
      requestBody:
        description: >-
          The ticket or task the submission is for, optionally. An empty body is
          accepted as `{}`.
        content:
          application/json-patch+json:
            schema:
              $ref: '#/components/schemas/CreateSubmissionLinkCommand'
          application/json:
            schema:
              $ref: '#/components/schemas/CreateSubmissionLinkCommand'
          text/json:
            schema:
              $ref: '#/components/schemas/CreateSubmissionLinkCommand'
          application/*+json:
            schema:
              $ref: '#/components/schemas/CreateSubmissionLinkCommand'
      responses:
        '200':
          description: OK
          content:
            text/plain:
              schema:
                $ref: '#/components/schemas/CreateSubmissionLinkResultBaseResponse'
            application/json:
              schema:
                $ref: '#/components/schemas/CreateSubmissionLinkResultBaseResponse'
            text/json:
              schema:
                $ref: '#/components/schemas/CreateSubmissionLinkResultBaseResponse'
        '400':
          description: Bad Request
          content:
            text/plain:
              schema:
                $ref: '#/components/schemas/ObjectBaseResponse'
            application/json:
              schema:
                $ref: '#/components/schemas/ObjectBaseResponse'
            text/json:
              schema:
                $ref: '#/components/schemas/ObjectBaseResponse'
        '401':
          description: Unauthorized
          content:
            text/plain:
              schema:
                $ref: '#/components/schemas/ObjectBaseResponse'
            application/json:
              schema:
                $ref: '#/components/schemas/ObjectBaseResponse'
            text/json:
              schema:
                $ref: '#/components/schemas/ObjectBaseResponse'
        '404':
          description: Not Found
          content:
            text/plain:
              schema:
                $ref: '#/components/schemas/ObjectBaseResponse'
            application/json:
              schema:
                $ref: '#/components/schemas/ObjectBaseResponse'
            text/json:
              schema:
                $ref: '#/components/schemas/ObjectBaseResponse'
        '500':
          description: Internal Server Error
          content:
            text/plain:
              schema:
                $ref: '#/components/schemas/ObjectBaseResponse'
            application/json:
              schema:
                $ref: '#/components/schemas/ObjectBaseResponse'
            text/json:
              schema:
                $ref: '#/components/schemas/ObjectBaseResponse'
components:
  schemas:
    CreateSubmissionLinkCommand:
      type: object
      properties:
        TicketId:
          type: string
          description: "Ticket the submission is filed against. Optional; not with `TaskId`. Must be an\r\nactive ticket of the authenticated service provider."
          format: uuid
          nullable: true
        TaskId:
          type: string
          description: "Task the submission is filed against. Optional; not with `TicketId`. Must be an\r\nactive task, in an active project, of the authenticated service provider."
          format: uuid
          nullable: true
      additionalProperties: false
      description: "Request body for issuing a submission link. The form is named in the path and the owning\r\nservice provider is resolved from the request context, not from the body."
    CreateSubmissionLinkResultBaseResponse:
      type: object
      properties:
        StatusCode:
          $ref: '#/components/schemas/HttpStatusCode'
        IsSuccess:
          type: boolean
        Data:
          $ref: '#/components/schemas/CreateSubmissionLinkResult'
        DataContext:
          type: object
          additionalProperties: false
          nullable: true
          example: null
        Notifications:
          type: array
          items:
            $ref: '#/components/schemas/Error'
      additionalProperties: false
    ObjectBaseResponse:
      type: object
      properties:
        StatusCode:
          $ref: '#/components/schemas/HttpStatusCode'
        IsSuccess:
          type: boolean
        Data:
          nullable: true
        DataContext:
          $ref: '#/components/schemas/ErrorDataContext'
        Notifications:
          type: array
          items:
            $ref: '#/components/schemas/Error'
      additionalProperties: false
    HttpStatusCode:
      enum:
        - 100
        - 101
        - 102
        - 103
        - 200
        - 201
        - 202
        - 203
        - 204
        - 205
        - 206
        - 207
        - 208
        - 226
        - 300
        - 301
        - 302
        - 303
        - 304
        - 305
        - 306
        - 307
        - 308
        - 400
        - 401
        - 402
        - 403
        - 404
        - 405
        - 406
        - 407
        - 408
        - 409
        - 410
        - 411
        - 412
        - 413
        - 414
        - 415
        - 416
        - 417
        - 421
        - 422
        - 423
        - 424
        - 426
        - 428
        - 429
        - 431
        - 451
        - 500
        - 501
        - 502
        - 503
        - 504
        - 505
        - 506
        - 507
        - 508
        - 510
        - 511
      type: integer
      format: int32
    CreateSubmissionLinkResult:
      type: object
      properties:
        Link:
          type: string
          description: The url to hand to the person who is to fill the form in.
        ExpiresOn:
          type: string
          description: "When the link expires, UTC. An unused link is kept for seven days; a submission made\r\nthrough it before then is kept indefinitely."
          format: date-time
      additionalProperties: false
      description: A submission link and when it stops working.
    Error:
      type: object
      properties:
        Code:
          pattern: ^[0-9]{6}$
          type: string
          description: 6-digit MMTTNN error code. See the Public API error-code registry.
          example: '070101'
        Message:
          type: string
        PropertyName:
          type: string
          nullable: true
        ActionHint:
          type: string
          nullable: true
        DocUrl:
          type: string
          nullable: true
      additionalProperties: false
    ErrorDataContext:
      type: object
      properties:
        TraceId:
          type: string
          description: Request correlation id. Quote this when reporting a problem.
          nullable: true
      additionalProperties: false
      description: "The `DataContext` of an error response: carries the correlation id for the failed\r\nrequest."
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      description: >-
        Your Gorelo API key. See [Generate API key](/generate-api-key). If your
        data is hosted in Australia, click the base URL at the top of this page
        and select `https://api.aue.gorelo.io`.
      name: X-API-Key
      in: header

````

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