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

# Get contacts async

## Field support per integration

<AccordionGroup>
  <Accordion title="AbaConnect" icon="https://mintcdn.com/maesn/51AaCYhZi3VILsjj/logo/abacus.svg?fit=max&auto=format&n=51AaCYhZi3VILsjj&q=85&s=e1a1710b2ea6a968fe05f50e6add869c" width="180" height="120" data-path="logo/abacus.svg">
    <Note>
      This endpoint is [asynchronous](/async-task). It returns a `taskId`
      immediately. Poll `/asyncTask/{taskId}` to check status and get the
      final result once it's ready.
    </Note>

    **Immediate response**

    <ResponseField name="taskId" type="string" />

    **Final result** (once the task completes successfully)

    <ResponseField name="responseData" type="object">
      <Expandable title="properties">
        <ResponseField name="id" type="string" />

        <ResponseField name="addresses" type="Address[]">
          <Expandable title="properties">
            <ResponseField name="addressLine1" type="string" />

            <ResponseField name="postalCode" type="string" />

            <ResponseField name="city" type="string" />

            <ResponseField name="countryCode" type="enum">
              The country code in ISO 3166-1 alpha-2 format. For a complete
              list of available values, see our [standardized data](/standardization) section.
            </ResponseField>

            <ResponseField name="type" type="enum">
              Available options: `BILLING`
            </ResponseField>
          </Expandable>
        </ResponseField>

        <ResponseField name="companyName" type="string" />

        <ResponseField name="contactPersons" type="ContactPerson[]">
          <Expandable title="properties">
            <ResponseField name="firstName" type="string" />

            <ResponseField name="lastName" type="string" />

            <ResponseField name="emailAddresses" type="EmailAddress[]">
              <Expandable title="properties">
                <ResponseField name="email" type="string" />

                <ResponseField name="type" type="enum">
                  Available options: `BUSINESS`
                </ResponseField>
              </Expandable>
            </ResponseField>

            <ResponseField name="phoneNumbers" type="PhoneNumber[]">
              <Expandable title="properties">
                <ResponseField name="number" type="string" />

                <ResponseField name="type" type="enum">
                  Available options: `BUSINESS`, `MOBILE`
                </ResponseField>
              </Expandable>
            </ResponseField>
          </Expandable>
        </ResponseField>

        <ResponseField name="contactType" type="enum">
          Available options: `CONTACT_PERSON`, `COMPANY`
        </ResponseField>

        <ResponseField name="createdDate" type="string">
          ISO-8601 date format, e.g. `2024-01-01T00:00:00Z`
        </ResponseField>

        <ResponseField name="emailAddresses" type="EmailAddress[]">
          <Expandable title="properties">
            <ResponseField name="email" type="string" />

            <ResponseField name="type" type="enum">
              Available options: `BUSINESS`
            </ResponseField>
          </Expandable>
        </ResponseField>

        <ResponseField name="isCustomer" type="boolean" />

        <ResponseField name="isSupplier" type="boolean" />

        <ResponseField name="number" type="string" />

        <ResponseField name="phoneNumbers" type="PhoneNumber[]">
          <Expandable title="properties">
            <ResponseField name="number" type="string" />

            <ResponseField name="type" type="enum">
              Available options: `BUSINESS`, `PRIVATE`
            </ResponseField>
          </Expandable>
        </ResponseField>

        <ResponseField name="updatedDate" type="string" />
      </Expandable>
    </ResponseField>
  </Accordion>
</AccordionGroup>


## OpenAPI

````yaml get /accounting/contacts/async
openapi: 3.0.0
info:
  title: Maesn unified API
  description: The Maesn unified API description
  version: '1.0'
  contact: {}
servers:
  - url: https://api.maesn.dev
security: []
tags:
  - name: maesn
    description: ''
paths:
  /accounting/contacts/async:
    get:
      tags:
        - accounting
      operationId: getContactsAsync
      parameters:
        - name: companyId
          required: false
          in: query
          schema:
            type: string
        - name: X-API-KEY
          description: API key
          in: header
          schema:
            type: string
          required: true
        - name: X-ACCOUNT-KEY
          description: Account key
          in: header
          schema:
            type: string
          required: true
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                allOf:
                  - $ref: '#/components/schemas/BaseResponseDto'
                  - properties:
                      data:
                        $ref: '#/components/schemas/TaskIdResponseDto'
                        type: object
components:
  schemas:
    BaseResponseDto:
      type: object
      properties:
        meta:
          $ref: '#/components/schemas/MetaResponse'
        data:
          oneOf:
            - type: object
            - type: array
    TaskIdResponseDto:
      type: object
      properties:
        taskId:
          type: string
          example: 02cc5849-b23c-48fe-8a9b-96f74bfc9571
    MetaResponse:
      type: object
      properties:
        warnings:
          type: array
          items:
            type: string
            example: Field not used by target system
        pagination:
          $ref: '#/components/schemas/PaginationResponse'
    PaginationResponse:
      type: object
      properties:
        total:
          type: number
          example: 125
        perPage:
          type: number
          example: 50
        currentPage:
          type: number
          example: 1
        totalPages:
          type: number
          example: 3

````