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

# Retrieve a contact

> One contact, by ID. Needs an API key that can read contacts (`contacts:read`).



## OpenAPI

````yaml /reference/api.json get /api/school/v1/contacts/{id}
openapi: 3.1.0
info:
  title: SchoolCues API
  version: '1'
  description: >-
    Read a school’s students, contacts, staff, classes and payments, and hear
    when they change. Generated from @schoolcues/contracts by `pnpm docs:api`;
    don't edit it by hand.
servers:
  - url: https://portal.schoolcues.com
    description: Production
security:
  - apiKey: []
tags:
  - name: Students
  - name: Contacts
  - name: Staff
  - name: Classes
  - name: Payments
  - name: Webhooks
paths:
  /api/school/v1/contacts/{id}:
    get:
      tags:
        - Contacts
      summary: Retrieve a contact
      description: >-
        One contact, by ID. Needs an API key that can read contacts
        (`contacts:read`).
      operationId: retrieve_contact
      parameters:
        - name: id
          in: path
          required: true
          description: The contact’s ID.
          schema:
            type: string
      responses:
        '200':
          description: The contact.
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    $ref: '#/components/schemas/SchoolApiContact'
                required:
                  - data
        '401':
          description: >-
            The key or token is missing, revoked or expired. Ask the school for
            a new one.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: The key can’t read this resource. Ask the school for a key that can.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: The resource or record doesn’t exist.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '503':
          description: >-
            SchoolCues couldn’t check the key just now. Retry after a short
            wait.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    SchoolApiContact:
      type: object
      properties:
        id:
          type: string
          description: The record's ID.
        givenName:
          type: string
          description: Given (first) name.
        middleName:
          type: string
          description: Middle name.
        familyName:
          type: string
          description: Family (last) name.
        preferredName:
          type: string
          description: The name they go by.
        email:
          anyOf:
            - type: string
            - type: 'null'
          description: Their first email address.
        phone:
          anyOf:
            - type: string
            - type: 'null'
          description: Their first phone number.
        students:
          type: array
          items:
            $ref: '#/components/schemas/SchoolApiContactStudent'
          description: The students they're related to.
        createdAt:
          type: string
          description: When the record was created, in ISO 8601 (UTC).
        updatedAt:
          type: string
          description: >-
            When the record last changed, in ISO 8601 (UTC). Lists are in this
            order, oldest first.
      required:
        - id
        - givenName
        - middleName
        - familyName
        - preferredName
        - email
        - phone
        - students
        - createdAt
        - updatedAt
      description: >-
        A person related to students, such as a parent or an emergency contact.
        Needs `contacts:read`.
    Error:
      type: object
      description: Why the request was refused.
      properties:
        statusCode:
          type: integer
          description: The HTTP status.
        statusMessage:
          type: string
          description: What went wrong, in words to show.
      required:
        - statusCode
        - statusMessage
    SchoolApiContactStudent:
      type: object
      properties:
        studentId:
          type: string
          description: The student's ID.
        relationship:
          type: string
          description: >-
            How the contact is related to the student, such as `mother` or
            `guardian`.
        parent:
          type: boolean
          description: Whether the contact is the student's parent.
      required:
        - studentId
        - relationship
        - parent
      description: A student a contact is related to.
  securitySchemes:
    apiKey:
      type: http
      scheme: bearer
      description: >-
        One of the school’s API keys, from [Settings › Integrations ›
        API](https://portal.schoolcues.com/settings/integrations/api).

````

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