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

# Get specific NPS score

> Retrieve details of a specific NPS score. Use when integrating NPS results into a downstream BI or analytics pipeline.



## OpenAPI

````yaml get /nps/scores/{score_id}
openapi: 3.1.0
info:
  title: OpenCX API
  description: >

    OpenCX is an AI-powered, all-in-one platform for customer support and
    outbound communications.


    Use this API to manage your OpenCX organization's AI agents, actions,
    conversations, contacts, and more.


    To get started, generate a new API key from the dashboard.


    ## Authentication

    All API endpoints require authentication using a Bearer token. You can
    generate an API key from your OpenCX dashboard.


    ## Rate Limiting

    API requests are rate limited to ensure fair usage. The current limits are:

    - 100 requests per minute for standard endpoints

    - 1000 requests per minute for streaming endpoints


    ## Error Handling

    The API uses standard HTTP status codes and returns detailed error messages
    in the response body.
  version: 1.0-beta
  license:
    name: MIT
    url: https://opensource.org/licenses/MIT
servers:
  - url: http://localhost:8080
    description: Development
  - url: https://api.open.cx
    description: Production
security:
  - bearerAuth: []
paths:
  /nps/scores/{score_id}:
    get:
      summary: Get specific NPS score
      description: Retrieve details of a specific NPS score
      operationId: getNpsScore
      parameters:
        - schema:
            type: string
          in: path
          name: score_id
          required: true
      responses:
        '200':
          description: Default Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CsatScorePublicResponseDto'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorDto'
components:
  schemas:
    CsatScorePublicResponseDto:
      $schema: https://json-schema.org/draft/2020-12/schema
      $id: '#/components/schemas/CsatScorePublicResponseDto'
      anyOf:
        - $ref: '#/components/schemas/CsatScorePublic'
        - type: 'null'
    ErrorDto:
      type: object
      properties:
        statusCode:
          type: integer
        message:
          type: string
        error:
          type: string
    CsatScorePublic:
      $schema: https://json-schema.org/draft/2020-12/schema
      $id: '#/components/schemas/CsatScorePublic'
      type: object
      properties:
        id:
          type: string
        organization_id:
          type: string
        session_id:
          type: string
        score:
          type: number
        comment:
          type:
            - string
            - 'null'
        channel:
          type:
            - string
            - 'null'
        created_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
        contact:
          anyOf:
            - $ref: '#/components/schemas/Contact'
            - type: 'null'
        agent:
          anyOf:
            - $ref: '#/components/schemas/CsatScoreAgent'
            - type: 'null'
          description: >-
            The agent this score is attributed to: the session assignee at the
            moment the customer submitted it. Fixed at submit time, so
            reassigning the session afterwards never moves the rating. Null when
            the session was unassigned.
        team:
          anyOf:
            - $ref: '#/components/schemas/CsatScoreTeam'
            - type: 'null'
          description: >-
            The team this score is attributed to, captured at the moment the
            customer submitted it. Fixed at submit time, so moving the session
            between teams afterwards never moves the rating. Null when the
            session belonged to no team.
      required:
        - id
        - organization_id
        - session_id
        - score
        - comment
        - channel
        - created_at
        - updated_at
        - contact
        - agent
        - team
      additionalProperties: false
    Contact:
      $schema: https://json-schema.org/draft/2020-12/schema
      $id: '#/components/schemas/Contact'
      type: object
      properties:
        id:
          type: string
          format: uuid
          pattern: >-
            ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
        external_id:
          description: >-
            The contact's ID in your system, unique within your organization, or
            null when the contact was not identified by external ID. Set through
            external-ID widget authentication or the contact create/update
            endpoints.
          type:
            - string
            - 'null'
        primary_external_id:
          description: >-
            The main account's external_id within your organization, or null
            when unlinked. The main contact may not exist yet. Set through
            external-ID widget authentication or the contact create/update
            endpoints.
          type:
            - string
            - 'null'
        email:
          anyOf:
            - type: string
              format: email
              pattern: >-
                ^(?:[A-Za-z0-9_'+\-]+\.)*[A-Za-z0-9_'+\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$
            - type: 'null'
        phone_number:
          type:
            - string
            - 'null'
        name:
          type:
            - string
            - 'null'
        custom_data:
          anyOf:
            - type: object
              propertyNames:
                type: string
              additionalProperties:
                type: string
            - type: 'null'
        non_verified_custom_data:
          anyOf:
            - type: object
              propertyNames:
                type: string
              additionalProperties:
                type: string
            - type: 'null'
          description: >-
            Custom data from unverified sources (e.g. an unauthenticated widget
            visitor), kept apart from custom_data
        created_at:
          type: string
          description: ISO 8601 timestamp of when the contact was created
        updated_at:
          type: string
          description: ISO 8601 timestamp of when the contact was last updated
        restricted_channels:
          type: array
          items:
            $ref: '#/components/schemas/RestrictableChannel'
          description: >-
            Channels this contact asked not to be contacted on: any of `email`,
            `sms`, `whatsapp`, `phone_voice`. Nothing your team, workflows,
            sequences or the API start goes out to the contact on a listed
            channel; AI replies to the contact's messages and your team's
            replies in a session on that channel are still delivered. Empty when
            nothing is restricted.
      required:
        - id
        - external_id
        - primary_external_id
        - email
        - phone_number
        - name
        - custom_data
        - non_verified_custom_data
        - created_at
        - updated_at
        - restricted_channels
      additionalProperties: false
    CsatScoreAgent:
      $schema: https://json-schema.org/draft/2020-12/schema
      $id: '#/components/schemas/CsatScoreAgent'
      type: object
      properties:
        id:
          type: number
        name:
          type:
            - string
            - 'null'
        avatar_url:
          type:
            - string
            - 'null'
      required:
        - id
        - name
        - avatar_url
      additionalProperties: false
    CsatScoreTeam:
      $schema: https://json-schema.org/draft/2020-12/schema
      $id: '#/components/schemas/CsatScoreTeam'
      type: object
      properties:
        id:
          type: string
        name:
          type:
            - string
            - 'null'
      required:
        - id
        - name
      additionalProperties: false
    RestrictableChannel:
      $schema: https://json-schema.org/draft/2020-12/schema
      $id: '#/components/schemas/RestrictableChannel'
      type: string
      enum:
        - email
        - sms
        - whatsapp
        - phone_voice
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````

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