> ## 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.

# Create a domain contact

> Saves a registrant to give a domain with `contact_id` on
`PUT /domains/{domain}/registrant`. The same details saved already are
refused, and a billing account can save at most 500 contacts. `phone`
is in E.164 (`+4520123456`) and must be a number in use. Needs
`domains.manage`.



## OpenAPI

````yaml /api-reference/console/openapi.json post /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:
    post:
      tags:
        - Domains
      summary: Create a domain contact
      description: |-
        Saves a registrant to give a domain with `contact_id` on
        `PUT /domains/{domain}/registrant`. The same details saved already are
        refused, and a billing account can save at most 500 contacts. `phone`
        is in E.164 (`+4520123456`) and must be a number in use. Needs
        `domains.manage`.
      operationId: v1.domain-contacts.store
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                first_name:
                  type: string
                  maxLength: 100
                last_name:
                  type: string
                  maxLength: 100
                company_name:
                  type:
                    - string
                    - 'null'
                  maxLength: 200
                email:
                  type: string
                  format: email
                  maxLength: 255
                phone:
                  type:
                    - string
                    - 'null'
                  pattern: ^\+[1-9][0-9]{6,14}$
                address_line_1:
                  type: string
                  maxLength: 200
                address_line_2:
                  type:
                    - string
                    - 'null'
                  maxLength: 200
                postal_code:
                  type: string
                  maxLength: 20
                city:
                  type: string
                  maxLength: 100
                region:
                  type:
                    - string
                    - 'null'
                  maxLength: 100
                country:
                  type: string
                  minLength: 2
                  maxLength: 2
                vat_number:
                  type:
                    - string
                    - 'null'
                  maxLength: 32
              required:
                - first_name
                - last_name
                - email
                - address_line_1
                - postal_code
                - city
                - country
      responses:
        '201':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: array
                    items: {}
                required:
                  - data
        '422':
          $ref: '#/components/responses/ValidationException'
components:
  responses:
    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.