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

# List domain contacts

> The billing account's saved domain contacts by name; `q` searches the
name, company and email. Needs `domains.view`.



## OpenAPI

````yaml /api-reference/console/openapi.json get /domain-contacts
openapi: 3.1.2
info:
  title: PerfGrid API
  version: 1.0.0
  description: >-
    The PerfGrid customer API. A member creates a token for one billing account
    under *API tokens* in the panel; it can do what both the token's permissions
    and the member's own permissions allow, the same as the panel.


    Send it as `Authorization: Bearer pgapi_...`. Each token may make 120
    requests a minute, of which 30 change something; a `429` response says when
    to try again (`Retry-After`). Ids are the ULIDs the API returns; amounts are
    decimal strings next to their currency; lists are newest first and paged
    with `cursor` (`meta.next_cursor`). Messages are in English, or Danish with
    `Accept-Language: da`.


    The same tokens work with the MCP server at `/mcp` for AI assistants.
servers:
  - url: https://console.perfgrid.com/api/v1
security:
  - http: []
tags:
  - name: Account
  - name: Invoices
  - name: Services
  - name: Domains
  - name: Support
paths:
  /domain-contacts:
    get:
      tags:
        - Domains
      summary: List domain contacts
      description: |-
        The billing account's saved domain contacts by name; `q` searches the
        name, company and email. Needs `domains.view`.
      operationId: v1.domain-contacts.index
      parameters:
        - name: q
          in: query
          schema:
            type:
              - string
              - 'null'
            maxLength: 100
      responses:
        '200':
          description: Array of `DomainContactResource`
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/DomainContactResource'
                required:
                  - data
        '403':
          $ref: '#/components/responses/AuthorizationException'
        '422':
          $ref: '#/components/responses/ValidationException'
components:
  schemas:
    DomainContactResource:
      anyOf:
        - type: object
          properties:
            id:
              type: string
            first_name:
              type: string
            last_name:
              type: string
            company_name:
              type:
                - string
                - 'null'
            email:
              type: string
            phone:
              type:
                - string
                - 'null'
            address_line_1:
              type: string
            address_line_2:
              type:
                - string
                - 'null'
            postal_code:
              type: string
            city:
              type: string
            region:
              type:
                - string
                - 'null'
            country:
              type: string
            vat_number:
              type:
                - string
                - 'null'
            complete:
              type: boolean
            created_at:
              type:
                - string
                - 'null'
            updated_at:
              type:
                - string
                - 'null'
          required:
            - id
            - first_name
            - last_name
            - company_name
            - email
            - phone
            - address_line_1
            - address_line_2
            - postal_code
            - city
            - region
            - country
            - vat_number
            - complete
            - created_at
            - updated_at
        - type: object
          properties:
            id:
              type: string
          required:
            - id
      title: DomainContactResource
  responses:
    AuthorizationException:
      description: Authorization error
      content:
        application/json:
          schema:
            type: object
            properties:
              message:
                type: string
                description: Error overview.
            required:
              - message
    ValidationException:
      description: Validation error
      content:
        application/json:
          schema:
            type: object
            properties:
              message:
                type: string
                description: Errors overview.
              errors:
                type: object
                description: A detailed description of each field that failed validation.
                additionalProperties:
                  type: array
                  items:
                    type: string
            required:
              - message
              - errors
  securitySchemes:
    http:
      type: http
      description: >-
        An API token from *API tokens* in the console, sent as `Authorization:
        Bearer pgapi_...`. It works for one billing account, and its permissions
        decide which endpoints it may call.
      scheme: bearer

````

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