{
  "opencollection": "1.0.0",
  "info": {
    "name": "Clients AR Account reports Internal contacts API",
    "version": "v1"
  },
  "items": [
    {
      "info": {
        "name": "Internal contacts",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List internal contacts",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.agicap.com/public/ar-clients/v1/entities/:entityId/internal-contacts",
            "params": [
              {
                "name": "pageSize",
                "value": "",
                "type": "query"
              },
              {
                "name": "clientExternalIds",
                "value": "",
                "type": "query",
                "description": "Filter contacts by client external identifiers. Supports multiple values."
              },
              {
                "name": "clientIds",
                "value": "",
                "type": "query",
                "description": "Filter contacts by their client Agicap identifier (UUID). Supports multiple values."
              },
              {
                "name": "email",
                "value": "",
                "type": "query",
                "description": "Filter contacts whose email contains this value (case-insensitive)."
              },
              {
                "name": "token",
                "value": "",
                "type": "query",
                "description": "Opaque pagination token for retrieving the next page"
              },
              {
                "name": "entityId",
                "value": "",
                "type": "path"
              }
            ],
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Retrieve a paginated list of internal contacts for the given entity."
        },
        {
          "info": {
            "name": "Create internal contacts",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.agicap.com/public/ar-clients/v1/entities/:entityId/internal-contacts",
            "params": [
              {
                "name": "entityId",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Create internal contacts in bulk for a client identified by clientExternalId.Maximum 1000 contacts per request. Each email must be unique per client:duplicate emails will not be created and will appear in the notCreatedlist with reason EMAIL_ALREADY_EXISTS."
        },
        {
          "info": {
            "name": "Update internal contacts",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://api.agicap.com/public/ar-clients/v1/entities/:entityId/internal-contacts",
            "params": [
              {
                "name": "entityId",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Update internal contacts in bulk. Each contact is identified by either itsAgicap internal id (priority) or its externalId within the client scope.Maximum 1000 contacts per request."
        },
        {
          "info": {
            "name": "Delete internal contacts",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://api.agicap.com/public/ar-clients/v1/entities/:entityId/internal-contacts",
            "params": [
              {
                "name": "entityId",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Delete internal contacts in bulk. Each contact is identified by itsexternalId within the client scope (clientExternalId + externalId).Maximum 1000 contacts per request."
        }
      ]
    }
  ],
  "bundled": true
}