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

# Get contacts

> Get contacts associated with the workspace. Supported filters: tag_ids[] (aliases: tagIds), validation_statuses[] (aliases: validationStatus, validationStatuses; valid is accepted as safe), not_in_sequence_id (alias: notInSequenceId). Unknown query parameters return 400.
Set pagination=cursor for the first cursor page; pass nextCursor as cursor with the same workspace and filters for subsequent pages. Cursor responses contain data, limit, hasMore and nextCursor (omitted on the last page), without total or offset. Omitting pagination and cursor preserves offset pagination.



## OpenAPI

````yaml https://api.salesforge.ai/public/v2/swagger/doc.json get /workspaces/{workspaceID}/contacts
openapi: 3.1.0
info:
  description: Get mailboxes associated with the workspace.
  termsOfService: https://www.salesforge.ai/terms
  title: Salesforge API
  version: '2.0'
servers:
  - url: https://api.salesforge.ai/public/v2
security:
  - ApiKeyAuth: []
externalDocs:
  description: ''
  url: ''
paths:
  /workspaces/{workspaceID}/contacts:
    get:
      tags:
        - Contacts
      summary: Get contacts
      description: >-
        Get contacts associated with the workspace. Supported filters: tag_ids[]
        (aliases: tagIds), validation_statuses[] (aliases: validationStatus,
        validationStatuses; valid is accepted as safe), not_in_sequence_id
        (alias: notInSequenceId). Unknown query parameters return 400.

        Set pagination=cursor for the first cursor page; pass nextCursor as
        cursor with the same workspace and filters for subsequent pages. Cursor
        responses contain data, limit, hasMore and nextCursor (omitted on the
        last page), without total or offset. Omitting pagination and cursor
        preserves offset pagination.
      parameters:
        - description: Workspace ID
          in: path
          name: workspaceID
          required: true
          schema:
            type: string
        - description: Limit
          in: query
          name: limit
          schema:
            default: 10
            type: integer
        - description: Offset (cannot be nonzero with cursor pagination)
          in: query
          name: offset
          schema:
            default: 0
            type: integer
        - description: Pagination mode
          in: query
          name: pagination
          schema:
            default: offset
            enum:
              - offset
              - cursor
            type: string
        - description: >-
            Opaque nextCursor from the preceding response; implies cursor
            pagination
          in: query
          name: cursor
          schema:
            type: string
        - description: Filter by tag ids
          in: query
          name: tag_ids[]
          schema:
            items:
              type: string
            type: array
          style: form
        - description: Alias for tag_ids[]
          in: query
          name: tagIds
          schema:
            items:
              type: string
            type: array
          style: form
        - description: Filter by contacts not in sequence
          in: query
          name: not_in_sequence_id
          schema:
            type: string
        - description: Alias for not_in_sequence_id
          in: query
          name: notInSequenceId
          schema:
            type: string
        - description: Filter by validation statuses
          in: query
          name: validation_statuses[]
          schema:
            items:
              enum:
                - safe
                - valid
                - invalid
                - disabled
                - disposable
                - inbox_full
                - catch_all
                - role_account
                - spamtrap
                - unknown
                - unvalidated
              type: string
            type: array
          style: form
        - description: Alias for validation_statuses[]
          in: query
          name: validationStatus
          schema:
            items:
              enum:
                - safe
                - valid
                - invalid
                - disabled
                - disposable
                - inbox_full
                - catch_all
                - role_account
                - spamtrap
                - unknown
                - unvalidated
              type: string
            type: array
          style: form
      responses:
        '200':
          content:
            application/json:
              schema:
                oneOf:
                  - $ref: '#/components/schemas/api.ContactsOffsetResponse'
                  - $ref: '#/components/schemas/api.ContactsCursorResponse'
          description: >-
            Contact list in offset or cursor mode; nextCursor is omitted on the
            last cursor page
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/errors.Error'
          description: Bad Request
        '500':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/errors.Error'
          description: Internal Server Error
      security:
        - ApiKeyAuth: []
components:
  schemas:
    api.ContactsOffsetResponse:
      properties:
        data:
          items:
            $ref: '#/components/schemas/api.ContactResponse'
          type: array
          uniqueItems: false
        limit:
          type: integer
        offset:
          type: integer
        total:
          type: integer
      required:
        - data
        - limit
        - offset
        - total
      type: object
    api.ContactsCursorResponse:
      properties:
        data:
          items:
            $ref: '#/components/schemas/api.ContactResponse'
          type: array
          uniqueItems: false
        hasMore:
          type: boolean
        limit:
          type: integer
        nextCursor:
          description: NextCursor is present only when another page exists.
          type: string
      required:
        - data
        - hasMore
        - limit
      type: object
    errors.Error:
      allOf:
        - $ref: '#/components/schemas/data'
      properties:
        data: {}
        message:
          type: string
      type: object
    api.ContactResponse:
      properties:
        company:
          type: string
        customVars:
          additionalProperties:
            type: string
          type: object
        email:
          type: string
        firstName:
          type: string
        id:
          type: string
        lastName:
          type: string
        linkedinUrl:
          type: string
        position:
          type: string
        sequences:
          items:
            $ref: '#/components/schemas/api.ContactSequenceResponse'
          type: array
          uniqueItems: false
        tags:
          items:
            type: string
          type: array
          uniqueItems: false
      type: object
    data:
      properties:
        data:
          items:
            $ref: '#/components/schemas/api.DNCResponse'
          type: array
      type: object
    api.ContactSequenceResponse:
      properties:
        id:
          type: string
        name:
          type: string
        status:
          $ref: '#/components/schemas/models.SequenceLeadStatus'
      type: object
    api.DNCResponse:
      properties:
        createdAt:
          type: string
        type:
          $ref: '#/components/schemas/models.DncType'
        value:
          type: string
      type: object
    models.SequenceLeadStatus:
      enum:
        - none
        - ooo
        - bounced
        - bounce-protect
        - replied
        - failed
        - active
        - paused
        - finished
        - dnc
        - deleted
        - unsubscribed
        - contacted
        - multi-threading
      type: string
      x-enum-varnames:
        - SequenceLeadStatusNone
        - SequenceLeadStatusOOO
        - SequenceLeadStatusBounced
        - SequenceLeadStatusBounceProtect
        - SequenceLeadStatusReplied
        - SequenceLeadStatusFailed
        - SequenceLeadStatusActive
        - SequenceLeadStatusPaused
        - SequenceLeadStatusFinished
        - SequenceLeadStatusDNC
        - SequenceLeadStatusDeleted
        - SequenceLeadStatusUnsubscribed
        - SequenceLeadStatusContacted
        - SequenceLeadStatusPausedCompanyMultiThreading
    models.DncType:
      enum:
        - email
        - domain
        - linkedin
      type: string
      x-enum-varnames:
        - DncTypeEmail
        - DncTypeDomain
        - DncTypeLinkedin
  securitySchemes:
    ApiKeyAuth:
      in: header
      name: Authorization
      type: apiKey

````

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