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

# Get form response (client portal)

> Get a form response by ID. Automatically sets opened_at timestamp if not already set.



## OpenAPI

````yaml /api-reference/cx/swagger.json get /cp/{client}/form/{form}/response/{response}
openapi: 3.0.0
info:
  description: CX API.
  title: CX API
  contact:
    name: API Support
    url: https://stax.ai
    email: support@stax.ai
  version: '1.0'
servers:
  - url: https://api.cx.stax.ai
security: []
paths:
  /cp/{client}/form/{form}/response/{response}:
    get:
      tags:
        - client-portal
      summary: Get form response (client portal)
      description: >-
        Get a form response by ID. Automatically sets opened_at timestamp if not
        already set.
      parameters:
        - description: Client ID
          name: client
          in: path
          required: true
          schema:
            type: string
        - description: Form ID
          name: form
          in: path
          required: true
          schema:
            type: string
        - description: Response ID
          name: response
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Form response details
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/pkg_routes_cp_form_response.GetFormResponseResponse
        '400':
          description: Bad request - invalid client ID, form ID, or response ID
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
        '403':
          description: Forbidden - no access to client
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
        '404':
          description: Form response not found
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
      security:
        - ApiKeyAuth: []
components:
  schemas:
    pkg_routes_cp_form_response.GetFormResponseResponse:
      type: object
      properties:
        response:
          $ref: '#/components/schemas/types.FormResponse'
    types.FormResponse:
      type: object
      properties:
        _id:
          type: string
        client:
          description: If filled out by client
          type: string
        completed_at:
          type: integer
        contact:
          description: If filled out by contact
          type: string
        deleted_at:
          type: integer
        device_agent:
          type: string
        fields:
          type: string
        form:
          type: string
        ip:
          type: string
        opened_at:
          type: integer
        pdf:
          description: Keep track of responses
          type: string
        responder:
          description: If filled out by unauthenticated user
          allOf:
            - $ref: '#/components/schemas/types.FormResponder'
        responses:
          type: array
          items:
            $ref: '#/components/schemas/types.Response'
        sent_at:
          type: integer
        team:
          type: string
        user:
          type: string
    types.FormResponder:
      type: object
      properties:
        email:
          type: string
        name:
          type: string
    types.Response:
      type: object
      properties:
        key:
          type: string
        link:
          type: string
        on_type:
          type: string
        question:
          type: string
        timestamp:
          type: string
        title:
          type: string
        type:
          type: string
        value: {}
  securitySchemes:
    ApiKeyAuth:
      description: CX API key. Create one in CX under Settings → Advanced → API Keys.
      in: header
      name: x-api-key
      type: apiKey

````

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