> For the complete documentation index, see [llms.txt](https://docs.usepylon.com/pylon-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.usepylon.com/pylon-docs/developer/api/api-reference/contacts.md).

# Contacts

## Get all contacts

> Returns a paginated list of contacts for the organization.\
> \
> \*\*Rate limit:\*\* 300 requests per minute

```json
{"openapi":"3.0.3","info":{"title":"Pylon API.","version":"1.0.0"},"tags":[],"servers":[{"description":"US region","url":"https://api.usepylon.com"},{"description":"EU region","url":"https://api.eu.usepylon.com"}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"description":"Authorization: Bearer <token>","scheme":"bearer","type":"http"}},"responses":{"GetContactsResponse":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetContactsResponseBody"}}},"description":""},"BadRequestApiResponse":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorApiResponseBody"}}},"description":"The request was invalid or could not be completed."},"UnauthorizedApiResponse":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorApiResponseBody"}}},"description":"The request could not be authenticated for this API."},"ForbiddenApiResponse":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorApiResponseBody"}}},"description":"The authenticated caller or organization is not allowed to access this endpoint or operation."},"ErrorApiResponse":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorApiResponseBody"}}},"description":""},"TooManyRequestsApiResponse":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorApiResponseBody"}}},"description":"The request exceeded the applicable rate limit.","headers":{"Retry-After":{"description":"Seconds until the next request to this endpoint is permitted.","schema":{"format":"int64","type":"integer"}},"X-Retry-After":{"description":"Seconds until the full per-minute allowance is restored. Capacity returns gradually before then.","schema":{"format":"int64","type":"integer"}}}},"InternalServerErrorApiResponse":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorApiResponseBody"}}},"description":"An unexpected internal error occurred."}},"schemas":{"GetContactsResponseBody":{"properties":{"data":{"description":"The data payload of the response.","items":{"$ref":"#/components/schemas/Contact"},"type":"array"},"pagination":{"$ref":"#/components/schemas/Pagination"},"request_id":{"description":"The request ID for tracking.","type":"string"}},"required":["data","request_id"],"type":"object"},"Contact":{"properties":{"account":{"allOf":[{"$ref":"#/components/schemas/MiniAccount"}],"nullable":true},"avatar_url":{"description":"Avatar URL of the contact.","type":"string"},"custom_fields":{"additionalProperties":{"$ref":"#/components/schemas/CustomFieldValue"},"description":"Custom field values associated with the contact.","nullable":true,"type":"object"},"email":{"description":"The primary email of the contact, if it exists.","type":"string"},"emails":{"description":"The list of all emails of the contact.","items":{"type":"string"},"nullable":true,"type":"array"},"external_ids":{"description":"External IDs associated with the contact.","items":{"$ref":"#/components/schemas/ExternalID"},"nullable":true,"type":"array"},"id":{"description":"The ID of the contact.","type":"string"},"integration_user_ids":{"description":"Integration user IDs linking this contact to external systems.","items":{"$ref":"#/components/schemas/IntegrationUserID"},"nullable":true,"type":"array"},"name":{"description":"The name of the contact.","type":"string"},"phone_numbers":{"description":"The list of all phone numbers of the contact.","items":{"type":"string"},"nullable":true,"type":"array"},"portal_role":{"description":"Portal role slug assigned to the contact. For backwards compatibility.\n\nKnown values: `no_access`, `member`, `admin`. This list is not exhaustive.","type":"string"},"portal_role_id":{"description":"The ID of the custom portal role assigned to the contact.","type":"string"},"primary_phone_number":{"description":"The primary phone number of the contact, if it exists.","type":"string"}},"required":["avatar_url","id","name","portal_role"],"type":"object"},"MiniAccount":{"properties":{"external_ids":{"description":"External IDs associated with the account.","items":{"$ref":"#/components/schemas/ExternalID"},"nullable":true,"type":"array"},"id":{"description":"The ID of the account.","type":"string"}},"required":["id"],"type":"object"},"ExternalID":{"properties":{"external_id":{"description":"The external ID. Must be unique per object type (ex. account).","type":"string"},"label":{"description":"The label of the external ID. Must be unique per object.","type":"string"}},"type":"object"},"CustomFieldValue":{"description":"A custom field value to set. Custom fields not listed in a write request are left unchanged.","properties":{"slug":{"description":"The slug of the custom field.","type":"string"},"value":{"description":"The value of the custom field. Only to be used for single-valued custom fields. If unset, the custom field will be unset. If the custom field is a select field, the value must be the select option slug, which you can find from the GET /custom-fields endpoint. If the custom field is a relationship field, the value must be the related object ID.","type":"string"},"values":{"description":"The values of the custom field. Only to be used for multi-valued custom fields (ex. multiselect). Replaces the full selection; it does not add to or remove from the existing values. If unset, the custom field will be unset. If the custom field is a multiselect field, the values must be the select option slugs which you can find from the GET /custom-fields endpoint.","items":{"type":"string"},"type":"array"}},"title":"CustomFieldValue","type":"object"},"IntegrationUserID":{"properties":{"id":{"description":"The user ID in the external system.","type":"string"},"source":{"description":"The integration source (e.g., \"slack\", \"intercom\", \"hubspot\").","type":"string"}},"required":["id","source"],"type":"object"},"Pagination":{"description":"Pagination information for list responses. Absent when there are no more results.","properties":{"cursor":{"description":"The cursor for the next page of results.","type":"string"},"has_next_page":{"description":"Indicates if there is a next page of results.","type":"boolean"}},"required":["cursor","has_next_page"],"title":"Pagination","type":"object"},"ErrorApiResponseBody":{"properties":{"code":{"description":"A stable machine-readable identifier for this failure, safe to branch on\ninstead of the message text. Omitted when the failure has no assigned code.\n\nKnown values: `recipients_suppressed`, `email_bounced`, `internal_issue_reply_not_allowed`, `duplicate_object`, `invalid_authorization_header`, `invalid_api_token`, `invalid_oauth_token`, `wrong_region_token`, `organization_deactivated`, `organization_suspended`, `permission_denied`, `oauth_not_permitted`, `rate_limited`, `not_found`, `method_not_allowed`, `payload_too_large`, `invalid_request_body`, `internal_error`, `invalid_webhook_credentials`, `organization_inactive`. This list is not exhaustive.","type":"string"},"errors":{"description":"The list of errors.","items":{"type":"string"},"type":"array"},"exists_id":{"description":"The ID of the object that already exists if this is a duplicate object error.","type":"string"},"request_id":{"description":"The request ID for tracking.","type":"string"}},"required":["request_id"],"type":"object"}}},"paths":{"/contacts":{"get":{"description":"Returns a paginated list of contacts for the organization.\n\n**Rate limit:** 300 requests per minute","operationId":"GetContacts","parameters":[{"description":"The cursor to use for pagination.","in":"query","name":"cursor","schema":{"type":"string"}},{"description":"The number of contacts to fetch. Defaults to 100. Must be greater than 0 and less than 1000.","in":"query","name":"limit","schema":{"format":"int64","type":"integer"}}],"responses":{"200":{"$ref":"#/components/responses/GetContactsResponse"},"400":{"$ref":"#/components/responses/BadRequestApiResponse"},"401":{"$ref":"#/components/responses/UnauthorizedApiResponse"},"403":{"$ref":"#/components/responses/ForbiddenApiResponse"},"404":{"$ref":"#/components/responses/ErrorApiResponse"},"429":{"$ref":"#/components/responses/TooManyRequestsApiResponse"},"500":{"$ref":"#/components/responses/InternalServerErrorApiResponse"}},"summary":"Get all contacts","tags":["contacts"]}}}}
```

## Create a new contact

> Creates a new contact with the specified email and optional metadata.\
> \
> \*\*Rate limit:\*\* 300 requests per minute

```json
{"openapi":"3.0.3","info":{"title":"Pylon API.","version":"1.0.0"},"tags":[],"servers":[{"description":"US region","url":"https://api.usepylon.com"},{"description":"EU region","url":"https://api.eu.usepylon.com"}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"description":"Authorization: Bearer <token>","scheme":"bearer","type":"http"}},"schemas":{"CreateContactRequestBody":{"properties":{"account_external_id":{"description":"The external ID of the account that this contact belongs to. Cannot be used together with account_id.","type":"string"},"account_id":{"description":"The account that this contact belongs to.","type":"string"},"avatar_url":{"description":"The avatar URL of the contact. Must be a square .png, .jpg or .jpeg.","type":"string"},"custom_fields":{"description":"An array of custom fields to be applied to this contact.","items":{"$ref":"#/components/schemas/CustomFieldValue"},"type":"array"},"email":{"description":"The email of the contact.","type":"string"},"external_ids":{"description":"An array of external IDs to be used on this contact.","items":{"$ref":"#/components/schemas/ExternalID"},"type":"array"},"name":{"description":"The name of the contact.","type":"string"},"phone_numbers":{"description":"The phone numbers of the contact. Must contain only digits 0-9, optionally preceded by + (E.164, e.g. +4365446231), and be 15 digits or less. Include the + and country code for non-US numbers; a 10-digit number without + is treated as US.","items":{"type":"string"},"type":"array"},"portal_role":{"description":"The portal role to assign to the contact. If not provided uses the default portal role from the portal settings.\n\nKnown values: `no_access`, `member`, `admin`. This list is not exhaustive.","type":"string"},"portal_role_id":{"description":"The ID of the custom portal role to assign to the contact. Takes precedence over portal_role if provided.","type":"string"},"primary_phone_number":{"description":"The primary phone number. Must be in the list of phone_numbers. If there are any phone_numbers and this is not specified, the first phone number will be primary.","type":"string"}},"required":["name"],"type":"object"},"CustomFieldValue":{"description":"A custom field value to set. Custom fields not listed in a write request are left unchanged.","properties":{"slug":{"description":"The slug of the custom field.","type":"string"},"value":{"description":"The value of the custom field. Only to be used for single-valued custom fields. If unset, the custom field will be unset. If the custom field is a select field, the value must be the select option slug, which you can find from the GET /custom-fields endpoint. If the custom field is a relationship field, the value must be the related object ID.","type":"string"},"values":{"description":"The values of the custom field. Only to be used for multi-valued custom fields (ex. multiselect). Replaces the full selection; it does not add to or remove from the existing values. If unset, the custom field will be unset. If the custom field is a multiselect field, the values must be the select option slugs which you can find from the GET /custom-fields endpoint.","items":{"type":"string"},"type":"array"}},"title":"CustomFieldValue","type":"object"},"ExternalID":{"properties":{"external_id":{"description":"The external ID. Must be unique per object type (ex. account).","type":"string"},"label":{"description":"The label of the external ID. Must be unique per object.","type":"string"}},"type":"object"},"CreateContactResponseBody":{"properties":{"data":{"$ref":"#/components/schemas/Contact"},"request_id":{"description":"The request ID for tracking.","type":"string"}},"required":["data","request_id"],"type":"object"},"Contact":{"properties":{"account":{"allOf":[{"$ref":"#/components/schemas/MiniAccount"}],"nullable":true},"avatar_url":{"description":"Avatar URL of the contact.","type":"string"},"custom_fields":{"additionalProperties":{"$ref":"#/components/schemas/CustomFieldValue"},"description":"Custom field values associated with the contact.","nullable":true,"type":"object"},"email":{"description":"The primary email of the contact, if it exists.","type":"string"},"emails":{"description":"The list of all emails of the contact.","items":{"type":"string"},"nullable":true,"type":"array"},"external_ids":{"description":"External IDs associated with the contact.","items":{"$ref":"#/components/schemas/ExternalID"},"nullable":true,"type":"array"},"id":{"description":"The ID of the contact.","type":"string"},"integration_user_ids":{"description":"Integration user IDs linking this contact to external systems.","items":{"$ref":"#/components/schemas/IntegrationUserID"},"nullable":true,"type":"array"},"name":{"description":"The name of the contact.","type":"string"},"phone_numbers":{"description":"The list of all phone numbers of the contact.","items":{"type":"string"},"nullable":true,"type":"array"},"portal_role":{"description":"Portal role slug assigned to the contact. For backwards compatibility.\n\nKnown values: `no_access`, `member`, `admin`. This list is not exhaustive.","type":"string"},"portal_role_id":{"description":"The ID of the custom portal role assigned to the contact.","type":"string"},"primary_phone_number":{"description":"The primary phone number of the contact, if it exists.","type":"string"}},"required":["avatar_url","id","name","portal_role"],"type":"object"},"MiniAccount":{"properties":{"external_ids":{"description":"External IDs associated with the account.","items":{"$ref":"#/components/schemas/ExternalID"},"nullable":true,"type":"array"},"id":{"description":"The ID of the account.","type":"string"}},"required":["id"],"type":"object"},"IntegrationUserID":{"properties":{"id":{"description":"The user ID in the external system.","type":"string"},"source":{"description":"The integration source (e.g., \"slack\", \"intercom\", \"hubspot\").","type":"string"}},"required":["id","source"],"type":"object"},"ErrorApiResponseBody":{"properties":{"code":{"description":"A stable machine-readable identifier for this failure, safe to branch on\ninstead of the message text. Omitted when the failure has no assigned code.\n\nKnown values: `recipients_suppressed`, `email_bounced`, `internal_issue_reply_not_allowed`, `duplicate_object`, `invalid_authorization_header`, `invalid_api_token`, `invalid_oauth_token`, `wrong_region_token`, `organization_deactivated`, `organization_suspended`, `permission_denied`, `oauth_not_permitted`, `rate_limited`, `not_found`, `method_not_allowed`, `payload_too_large`, `invalid_request_body`, `internal_error`, `invalid_webhook_credentials`, `organization_inactive`. This list is not exhaustive.","type":"string"},"errors":{"description":"The list of errors.","items":{"type":"string"},"type":"array"},"exists_id":{"description":"The ID of the object that already exists if this is a duplicate object error.","type":"string"},"request_id":{"description":"The request ID for tracking.","type":"string"}},"required":["request_id"],"type":"object"}},"responses":{"CreateContactResponse":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateContactResponseBody"}}},"description":""},"BadRequestApiResponse":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorApiResponseBody"}}},"description":"The request was invalid or could not be completed."},"UnauthorizedApiResponse":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorApiResponseBody"}}},"description":"The request could not be authenticated for this API."},"ForbiddenApiResponse":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorApiResponseBody"}}},"description":"The authenticated caller or organization is not allowed to access this endpoint or operation."},"ErrorApiResponse":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorApiResponseBody"}}},"description":""},"TooManyRequestsApiResponse":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorApiResponseBody"}}},"description":"The request exceeded the applicable rate limit.","headers":{"Retry-After":{"description":"Seconds until the next request to this endpoint is permitted.","schema":{"format":"int64","type":"integer"}},"X-Retry-After":{"description":"Seconds until the full per-minute allowance is restored. Capacity returns gradually before then.","schema":{"format":"int64","type":"integer"}}}},"InternalServerErrorApiResponse":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorApiResponseBody"}}},"description":"An unexpected internal error occurred."}}},"paths":{"/contacts":{"post":{"description":"Creates a new contact with the specified email and optional metadata.\n\n**Rate limit:** 300 requests per minute","operationId":"CreateContact","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateContactRequestBody"}}}},"responses":{"200":{"$ref":"#/components/responses/CreateContactResponse"},"400":{"$ref":"#/components/responses/BadRequestApiResponse"},"401":{"$ref":"#/components/responses/UnauthorizedApiResponse"},"403":{"$ref":"#/components/responses/ForbiddenApiResponse"},"404":{"$ref":"#/components/responses/ErrorApiResponse"},"429":{"$ref":"#/components/responses/TooManyRequestsApiResponse"},"500":{"$ref":"#/components/responses/InternalServerErrorApiResponse"}},"summary":"Create a new contact","tags":["contacts"]}}}}
```

## Get a contact by its ID or external ID

> Returns a single contact by ID or external ID.\
> \
> \*\*Rate limit:\*\* 300 requests per minute

```json
{"openapi":"3.0.3","info":{"title":"Pylon API.","version":"1.0.0"},"tags":[],"servers":[{"description":"US region","url":"https://api.usepylon.com"},{"description":"EU region","url":"https://api.eu.usepylon.com"}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"description":"Authorization: Bearer <token>","scheme":"bearer","type":"http"}},"responses":{"GetContactResponse":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetContactResponseBody"}}},"description":""},"BadRequestApiResponse":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorApiResponseBody"}}},"description":"The request was invalid or could not be completed."},"UnauthorizedApiResponse":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorApiResponseBody"}}},"description":"The request could not be authenticated for this API."},"ForbiddenApiResponse":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorApiResponseBody"}}},"description":"The authenticated caller or organization is not allowed to access this endpoint or operation."},"ErrorApiResponse":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorApiResponseBody"}}},"description":""},"TooManyRequestsApiResponse":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorApiResponseBody"}}},"description":"The request exceeded the applicable rate limit.","headers":{"Retry-After":{"description":"Seconds until the next request to this endpoint is permitted.","schema":{"format":"int64","type":"integer"}},"X-Retry-After":{"description":"Seconds until the full per-minute allowance is restored. Capacity returns gradually before then.","schema":{"format":"int64","type":"integer"}}}},"InternalServerErrorApiResponse":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorApiResponseBody"}}},"description":"An unexpected internal error occurred."}},"schemas":{"GetContactResponseBody":{"properties":{"data":{"$ref":"#/components/schemas/Contact"},"request_id":{"description":"The request ID for tracking.","type":"string"}},"required":["data","request_id"],"type":"object"},"Contact":{"properties":{"account":{"allOf":[{"$ref":"#/components/schemas/MiniAccount"}],"nullable":true},"avatar_url":{"description":"Avatar URL of the contact.","type":"string"},"custom_fields":{"additionalProperties":{"$ref":"#/components/schemas/CustomFieldValue"},"description":"Custom field values associated with the contact.","nullable":true,"type":"object"},"email":{"description":"The primary email of the contact, if it exists.","type":"string"},"emails":{"description":"The list of all emails of the contact.","items":{"type":"string"},"nullable":true,"type":"array"},"external_ids":{"description":"External IDs associated with the contact.","items":{"$ref":"#/components/schemas/ExternalID"},"nullable":true,"type":"array"},"id":{"description":"The ID of the contact.","type":"string"},"integration_user_ids":{"description":"Integration user IDs linking this contact to external systems.","items":{"$ref":"#/components/schemas/IntegrationUserID"},"nullable":true,"type":"array"},"name":{"description":"The name of the contact.","type":"string"},"phone_numbers":{"description":"The list of all phone numbers of the contact.","items":{"type":"string"},"nullable":true,"type":"array"},"portal_role":{"description":"Portal role slug assigned to the contact. For backwards compatibility.\n\nKnown values: `no_access`, `member`, `admin`. This list is not exhaustive.","type":"string"},"portal_role_id":{"description":"The ID of the custom portal role assigned to the contact.","type":"string"},"primary_phone_number":{"description":"The primary phone number of the contact, if it exists.","type":"string"}},"required":["avatar_url","id","name","portal_role"],"type":"object"},"MiniAccount":{"properties":{"external_ids":{"description":"External IDs associated with the account.","items":{"$ref":"#/components/schemas/ExternalID"},"nullable":true,"type":"array"},"id":{"description":"The ID of the account.","type":"string"}},"required":["id"],"type":"object"},"ExternalID":{"properties":{"external_id":{"description":"The external ID. Must be unique per object type (ex. account).","type":"string"},"label":{"description":"The label of the external ID. Must be unique per object.","type":"string"}},"type":"object"},"CustomFieldValue":{"description":"A custom field value to set. Custom fields not listed in a write request are left unchanged.","properties":{"slug":{"description":"The slug of the custom field.","type":"string"},"value":{"description":"The value of the custom field. Only to be used for single-valued custom fields. If unset, the custom field will be unset. If the custom field is a select field, the value must be the select option slug, which you can find from the GET /custom-fields endpoint. If the custom field is a relationship field, the value must be the related object ID.","type":"string"},"values":{"description":"The values of the custom field. Only to be used for multi-valued custom fields (ex. multiselect). Replaces the full selection; it does not add to or remove from the existing values. If unset, the custom field will be unset. If the custom field is a multiselect field, the values must be the select option slugs which you can find from the GET /custom-fields endpoint.","items":{"type":"string"},"type":"array"}},"title":"CustomFieldValue","type":"object"},"IntegrationUserID":{"properties":{"id":{"description":"The user ID in the external system.","type":"string"},"source":{"description":"The integration source (e.g., \"slack\", \"intercom\", \"hubspot\").","type":"string"}},"required":["id","source"],"type":"object"},"ErrorApiResponseBody":{"properties":{"code":{"description":"A stable machine-readable identifier for this failure, safe to branch on\ninstead of the message text. Omitted when the failure has no assigned code.\n\nKnown values: `recipients_suppressed`, `email_bounced`, `internal_issue_reply_not_allowed`, `duplicate_object`, `invalid_authorization_header`, `invalid_api_token`, `invalid_oauth_token`, `wrong_region_token`, `organization_deactivated`, `organization_suspended`, `permission_denied`, `oauth_not_permitted`, `rate_limited`, `not_found`, `method_not_allowed`, `payload_too_large`, `invalid_request_body`, `internal_error`, `invalid_webhook_credentials`, `organization_inactive`. This list is not exhaustive.","type":"string"},"errors":{"description":"The list of errors.","items":{"type":"string"},"type":"array"},"exists_id":{"description":"The ID of the object that already exists if this is a duplicate object error.","type":"string"},"request_id":{"description":"The request ID for tracking.","type":"string"}},"required":["request_id"],"type":"object"}}},"paths":{"/contacts/{id}":{"get":{"description":"Returns a single contact by ID or external ID.\n\n**Rate limit:** 300 requests per minute","operationId":"GetContact","parameters":[{"description":"The ID or external ID of the contact.","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"$ref":"#/components/responses/GetContactResponse"},"400":{"$ref":"#/components/responses/BadRequestApiResponse"},"401":{"$ref":"#/components/responses/UnauthorizedApiResponse"},"403":{"$ref":"#/components/responses/ForbiddenApiResponse"},"404":{"$ref":"#/components/responses/ErrorApiResponse"},"429":{"$ref":"#/components/responses/TooManyRequestsApiResponse"},"500":{"$ref":"#/components/responses/InternalServerErrorApiResponse"}},"summary":"Get a contact by its ID or external ID","tags":["contacts"]}}}}
```

## Update a contact by its ID or external ID

> Updates a contact by ID or external ID. Only provided fields are modified.\
> \
> \*\*Rate limit:\*\* 300 requests per minute

```json
{"openapi":"3.0.3","info":{"title":"Pylon API.","version":"1.0.0"},"tags":[],"servers":[{"description":"US region","url":"https://api.usepylon.com"},{"description":"EU region","url":"https://api.eu.usepylon.com"}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"description":"Authorization: Bearer <token>","scheme":"bearer","type":"http"}},"schemas":{"UpdateContactRequestBody":{"properties":{"account_external_id":{"description":"The external ID of the account to move the contact to. Cannot be used together with account_id.","type":"string"},"account_id":{"description":"The account to move the contact to. If empty string is passed in, the contact will be removed from its account.","type":"string"},"avatar_url":{"description":"The avatar URL of the contact. Must be a square .png, .jpg or .jpeg.","type":"string"},"custom_fields":{"description":"An array of custom fields to be applied to this contact.","items":{"$ref":"#/components/schemas/CustomFieldValue"},"type":"array"},"email":{"description":"The email of the contact. Replaces all of the contact's emails with this single email. Cannot be used together with the `emails` array field.","type":"string"},"emails":{"description":"The emails of the contact as an array. Cannot be used together with the singular `email` field.\nEach entry must include an `email` string and an optional `is_primary` boolean.\nIf no email is marked as primary, the first email becomes the primary.","items":{"$ref":"#/components/schemas/UpdateContactEmail"},"type":"array"},"external_ids":{"description":"An array of external IDs to be used on this contact. If provided, the contact's external IDs will be updated to the given external IDs.","items":{"$ref":"#/components/schemas/ExternalID"},"type":"array"},"name":{"description":"in: body\nThe name of the contact.","type":"string"},"phone_numbers":{"description":"The phone numbers of the contact. Must contain only digits 0-9, optionally preceded by + (E.164, e.g. +4365446231), and be 15 digits or less. Include the + and country code for non-US numbers; a 10-digit number without + is treated as US.","items":{"type":"string"},"type":"array"},"portal_role":{"description":"The portal role to assign to the contact. Can be one of `no_access`, `member`, or `admin`, or a custom role slug.\n\nKnown values: `no_access`, `member`, `admin`. This list is not exhaustive.","type":"string"},"portal_role_id":{"description":"The ID of the custom portal role to assign to the contact. Takes precedence over portal_role if provided.","type":"string"},"primary_phone_number":{"description":"The primary phone number. Must be in the list of phone_numbers. If there are any phone_numbers and this is not specified, the first phone number will be primary.","type":"string"}},"type":"object"},"CustomFieldValue":{"description":"A custom field value to set. Custom fields not listed in a write request are left unchanged.","properties":{"slug":{"description":"The slug of the custom field.","type":"string"},"value":{"description":"The value of the custom field. Only to be used for single-valued custom fields. If unset, the custom field will be unset. If the custom field is a select field, the value must be the select option slug, which you can find from the GET /custom-fields endpoint. If the custom field is a relationship field, the value must be the related object ID.","type":"string"},"values":{"description":"The values of the custom field. Only to be used for multi-valued custom fields (ex. multiselect). Replaces the full selection; it does not add to or remove from the existing values. If unset, the custom field will be unset. If the custom field is a multiselect field, the values must be the select option slugs which you can find from the GET /custom-fields endpoint.","items":{"type":"string"},"type":"array"}},"title":"CustomFieldValue","type":"object"},"UpdateContactEmail":{"properties":{"email":{"description":"The email address.","type":"string"},"is_primary":{"description":"Whether this is the primary email address.","type":"boolean"}},"required":["email"],"title":"UpdateContactEmail represents an email entry in the emails array for contact updates.","type":"object"},"ExternalID":{"properties":{"external_id":{"description":"The external ID. Must be unique per object type (ex. account).","type":"string"},"label":{"description":"The label of the external ID. Must be unique per object.","type":"string"}},"type":"object"},"UpdateContactResponseBody":{"properties":{"data":{"$ref":"#/components/schemas/Contact"},"request_id":{"description":"The request ID for tracking.","type":"string"}},"required":["data","request_id"],"type":"object"},"Contact":{"properties":{"account":{"allOf":[{"$ref":"#/components/schemas/MiniAccount"}],"nullable":true},"avatar_url":{"description":"Avatar URL of the contact.","type":"string"},"custom_fields":{"additionalProperties":{"$ref":"#/components/schemas/CustomFieldValue"},"description":"Custom field values associated with the contact.","nullable":true,"type":"object"},"email":{"description":"The primary email of the contact, if it exists.","type":"string"},"emails":{"description":"The list of all emails of the contact.","items":{"type":"string"},"nullable":true,"type":"array"},"external_ids":{"description":"External IDs associated with the contact.","items":{"$ref":"#/components/schemas/ExternalID"},"nullable":true,"type":"array"},"id":{"description":"The ID of the contact.","type":"string"},"integration_user_ids":{"description":"Integration user IDs linking this contact to external systems.","items":{"$ref":"#/components/schemas/IntegrationUserID"},"nullable":true,"type":"array"},"name":{"description":"The name of the contact.","type":"string"},"phone_numbers":{"description":"The list of all phone numbers of the contact.","items":{"type":"string"},"nullable":true,"type":"array"},"portal_role":{"description":"Portal role slug assigned to the contact. For backwards compatibility.\n\nKnown values: `no_access`, `member`, `admin`. This list is not exhaustive.","type":"string"},"portal_role_id":{"description":"The ID of the custom portal role assigned to the contact.","type":"string"},"primary_phone_number":{"description":"The primary phone number of the contact, if it exists.","type":"string"}},"required":["avatar_url","id","name","portal_role"],"type":"object"},"MiniAccount":{"properties":{"external_ids":{"description":"External IDs associated with the account.","items":{"$ref":"#/components/schemas/ExternalID"},"nullable":true,"type":"array"},"id":{"description":"The ID of the account.","type":"string"}},"required":["id"],"type":"object"},"IntegrationUserID":{"properties":{"id":{"description":"The user ID in the external system.","type":"string"},"source":{"description":"The integration source (e.g., \"slack\", \"intercom\", \"hubspot\").","type":"string"}},"required":["id","source"],"type":"object"},"ErrorApiResponseBody":{"properties":{"code":{"description":"A stable machine-readable identifier for this failure, safe to branch on\ninstead of the message text. Omitted when the failure has no assigned code.\n\nKnown values: `recipients_suppressed`, `email_bounced`, `internal_issue_reply_not_allowed`, `duplicate_object`, `invalid_authorization_header`, `invalid_api_token`, `invalid_oauth_token`, `wrong_region_token`, `organization_deactivated`, `organization_suspended`, `permission_denied`, `oauth_not_permitted`, `rate_limited`, `not_found`, `method_not_allowed`, `payload_too_large`, `invalid_request_body`, `internal_error`, `invalid_webhook_credentials`, `organization_inactive`. This list is not exhaustive.","type":"string"},"errors":{"description":"The list of errors.","items":{"type":"string"},"type":"array"},"exists_id":{"description":"The ID of the object that already exists if this is a duplicate object error.","type":"string"},"request_id":{"description":"The request ID for tracking.","type":"string"}},"required":["request_id"],"type":"object"}},"responses":{"UpdateContactResponse":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateContactResponseBody"}}},"description":""},"BadRequestApiResponse":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorApiResponseBody"}}},"description":"The request was invalid or could not be completed."},"UnauthorizedApiResponse":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorApiResponseBody"}}},"description":"The request could not be authenticated for this API."},"ForbiddenApiResponse":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorApiResponseBody"}}},"description":"The authenticated caller or organization is not allowed to access this endpoint or operation."},"ErrorApiResponse":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorApiResponseBody"}}},"description":""},"TooManyRequestsApiResponse":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorApiResponseBody"}}},"description":"The request exceeded the applicable rate limit.","headers":{"Retry-After":{"description":"Seconds until the next request to this endpoint is permitted.","schema":{"format":"int64","type":"integer"}},"X-Retry-After":{"description":"Seconds until the full per-minute allowance is restored. Capacity returns gradually before then.","schema":{"format":"int64","type":"integer"}}}},"InternalServerErrorApiResponse":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorApiResponseBody"}}},"description":"An unexpected internal error occurred."}}},"paths":{"/contacts/{id}":{"patch":{"description":"Updates a contact by ID or external ID. Only provided fields are modified.\n\n**Rate limit:** 300 requests per minute","operationId":"UpdateContact","parameters":[{"description":"The ID or external ID of the contact to update.","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateContactRequestBody"}}}},"responses":{"200":{"$ref":"#/components/responses/UpdateContactResponse"},"400":{"$ref":"#/components/responses/BadRequestApiResponse"},"401":{"$ref":"#/components/responses/UnauthorizedApiResponse"},"403":{"$ref":"#/components/responses/ForbiddenApiResponse"},"404":{"$ref":"#/components/responses/ErrorApiResponse"},"429":{"$ref":"#/components/responses/TooManyRequestsApiResponse"},"500":{"$ref":"#/components/responses/InternalServerErrorApiResponse"}},"summary":"Update a contact by its ID or external ID","tags":["contacts"]}}}}
```

## Delete a contact by its ID or external ID

> Permanently deletes a contact by ID or external ID.\
> \
> \*\*Rate limit:\*\* 30 requests per minute

```json
{"openapi":"3.0.3","info":{"title":"Pylon API.","version":"1.0.0"},"tags":[],"servers":[{"description":"US region","url":"https://api.usepylon.com"},{"description":"EU region","url":"https://api.eu.usepylon.com"}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"description":"Authorization: Bearer <token>","scheme":"bearer","type":"http"}},"responses":{"DeleteContactResponse":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteContactResponseBody"}}},"description":""},"UnauthorizedApiResponse":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorApiResponseBody"}}},"description":"The request could not be authenticated for this API."},"ForbiddenApiResponse":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorApiResponseBody"}}},"description":"The authenticated caller or organization is not allowed to access this endpoint or operation."},"ErrorApiResponse":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorApiResponseBody"}}},"description":""},"TooManyRequestsApiResponse":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorApiResponseBody"}}},"description":"The request exceeded the applicable rate limit.","headers":{"Retry-After":{"description":"Seconds until the next request to this endpoint is permitted.","schema":{"format":"int64","type":"integer"}},"X-Retry-After":{"description":"Seconds until the full per-minute allowance is restored. Capacity returns gradually before then.","schema":{"format":"int64","type":"integer"}}}},"InternalServerErrorApiResponse":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorApiResponseBody"}}},"description":"An unexpected internal error occurred."}},"schemas":{"DeleteContactResponseBody":{"properties":{"request_id":{"description":"The request ID for tracking.","type":"string"}},"required":["request_id"],"type":"object"},"ErrorApiResponseBody":{"properties":{"code":{"description":"A stable machine-readable identifier for this failure, safe to branch on\ninstead of the message text. Omitted when the failure has no assigned code.\n\nKnown values: `recipients_suppressed`, `email_bounced`, `internal_issue_reply_not_allowed`, `duplicate_object`, `invalid_authorization_header`, `invalid_api_token`, `invalid_oauth_token`, `wrong_region_token`, `organization_deactivated`, `organization_suspended`, `permission_denied`, `oauth_not_permitted`, `rate_limited`, `not_found`, `method_not_allowed`, `payload_too_large`, `invalid_request_body`, `internal_error`, `invalid_webhook_credentials`, `organization_inactive`. This list is not exhaustive.","type":"string"},"errors":{"description":"The list of errors.","items":{"type":"string"},"type":"array"},"exists_id":{"description":"The ID of the object that already exists if this is a duplicate object error.","type":"string"},"request_id":{"description":"The request ID for tracking.","type":"string"}},"required":["request_id"],"type":"object"}}},"paths":{"/contacts/{id}":{"delete":{"description":"Permanently deletes a contact by ID or external ID.\n\n**Rate limit:** 30 requests per minute","operationId":"DeleteContact","parameters":[{"description":"The ID or external ID of the contact to delete.","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"$ref":"#/components/responses/DeleteContactResponse"},"401":{"$ref":"#/components/responses/UnauthorizedApiResponse"},"403":{"$ref":"#/components/responses/ForbiddenApiResponse"},"404":{"$ref":"#/components/responses/ErrorApiResponse"},"429":{"$ref":"#/components/responses/TooManyRequestsApiResponse"},"500":{"$ref":"#/components/responses/InternalServerErrorApiResponse"}},"summary":"Delete a contact by its ID or external ID","tags":["contacts"]}}}}
```

## Search for contacts by a given filter

> Filterable fields and their allowed operators:\
> \
> &#x20;Field | Allowed operators |\
> &#x20;\--- | --- |\
> &#x20;\`id\` | \`equals\`, \`in\`, \`not\_in\` |\
> &#x20;\`email\` | \`equals\`, \`in\`, \`not\_in\`, \`string\_contains\` |\
> &#x20;\`name\` | \`equals\`, \`in\`, \`not\_in\`, \`string\_contains\` |\
> &#x20;\`account\_id\` | \`equals\`, \`in\`, \`not\_in\` |\
> \
> For custom fields, pass the field slug as \`field\`.\
> \
> \*\*Rate limit:\*\* 120 requests per minute

```json
{"openapi":"3.0.3","info":{"title":"Pylon API.","version":"1.0.0"},"tags":[],"servers":[{"description":"US region","url":"https://api.usepylon.com"},{"description":"EU region","url":"https://api.eu.usepylon.com"}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"description":"Authorization: Bearer <token>","scheme":"bearer","type":"http"}},"schemas":{"SearchContactsRequest":{"properties":{"cursor":{"description":"The cursor to use for pagination.","type":"string"},"filter":{"$ref":"#/components/schemas/Filter"},"limit":{"description":"The number of contacts to fetch. Defaults to 100. Must be between 1 and 1000.","format":"int64","type":"integer"},"search_text":{"description":"Text search across contact name, primary email, secondary emails, primary phone number, and secondary phone numbers. Results are intersected with any provided filter.","type":"string"}},"type":"object"},"Filter":{"properties":{"field":{"description":"The field for this filter.  For allowed fields, see the documentation for\nthe specific endpoint you are using.\nFor non-compound filters (any operators other than \"and\" or \"or\"),\nfield must be set, along with either value or values, depending on the operator.","type":"string"},"operator":{"description":"The operator for this filter.","enum":["equals","not_equals","contains","does_not_contain","in","not_in","and","or","time_is_after","time_is_before","time_range","string_contains","string_does_not_contain","is_set","is_unset","greater_than","less_than","greater_than_or_equals","less_than_or_equals","includes_all_of","starts_with","ends_with"],"type":"string"},"subfilters":{"description":"Sub-filters for this filter.  Valid only when operator is \"and\" or \"or\".\nThe maximum allowed depth for a tree of filters is 3, counting the top-level filter.","items":{"$ref":"#/components/schemas/Filter"},"type":"array"},"value":{"description":"The value for this filter. Used by single-valued operators: \"equals\", \"not_equals\",\n\"contains\", \"does_not_contain\", \"string_contains\", \"string_does_not_contain\",\n\"starts_with\", \"ends_with\", \"time_is_after\", \"time_is_before\", \"greater_than\",\n\"less_than\", \"greater_than_or_equals\", and \"less_than_or_equals\".","type":"string"},"values":{"description":"The values for this filter. Used by multi-valued operators: \"in\", \"not_in\", and\n\"includes_all_of\". For \"time_range\", set to [start, end].","items":{"type":"string"},"type":"array"}},"required":["operator"],"type":"object"},"SearchContactsResponseBody":{"properties":{"data":{"description":"The data payload of the response.","items":{"$ref":"#/components/schemas/Contact"},"type":"array"},"pagination":{"$ref":"#/components/schemas/Pagination"},"request_id":{"description":"The request ID for tracking.","type":"string"}},"required":["data","request_id"],"type":"object"},"Contact":{"properties":{"account":{"allOf":[{"$ref":"#/components/schemas/MiniAccount"}],"nullable":true},"avatar_url":{"description":"Avatar URL of the contact.","type":"string"},"custom_fields":{"additionalProperties":{"$ref":"#/components/schemas/CustomFieldValue"},"description":"Custom field values associated with the contact.","nullable":true,"type":"object"},"email":{"description":"The primary email of the contact, if it exists.","type":"string"},"emails":{"description":"The list of all emails of the contact.","items":{"type":"string"},"nullable":true,"type":"array"},"external_ids":{"description":"External IDs associated with the contact.","items":{"$ref":"#/components/schemas/ExternalID"},"nullable":true,"type":"array"},"id":{"description":"The ID of the contact.","type":"string"},"integration_user_ids":{"description":"Integration user IDs linking this contact to external systems.","items":{"$ref":"#/components/schemas/IntegrationUserID"},"nullable":true,"type":"array"},"name":{"description":"The name of the contact.","type":"string"},"phone_numbers":{"description":"The list of all phone numbers of the contact.","items":{"type":"string"},"nullable":true,"type":"array"},"portal_role":{"description":"Portal role slug assigned to the contact. For backwards compatibility.\n\nKnown values: `no_access`, `member`, `admin`. This list is not exhaustive.","type":"string"},"portal_role_id":{"description":"The ID of the custom portal role assigned to the contact.","type":"string"},"primary_phone_number":{"description":"The primary phone number of the contact, if it exists.","type":"string"}},"required":["avatar_url","id","name","portal_role"],"type":"object"},"MiniAccount":{"properties":{"external_ids":{"description":"External IDs associated with the account.","items":{"$ref":"#/components/schemas/ExternalID"},"nullable":true,"type":"array"},"id":{"description":"The ID of the account.","type":"string"}},"required":["id"],"type":"object"},"ExternalID":{"properties":{"external_id":{"description":"The external ID. Must be unique per object type (ex. account).","type":"string"},"label":{"description":"The label of the external ID. Must be unique per object.","type":"string"}},"type":"object"},"CustomFieldValue":{"description":"A custom field value to set. Custom fields not listed in a write request are left unchanged.","properties":{"slug":{"description":"The slug of the custom field.","type":"string"},"value":{"description":"The value of the custom field. Only to be used for single-valued custom fields. If unset, the custom field will be unset. If the custom field is a select field, the value must be the select option slug, which you can find from the GET /custom-fields endpoint. If the custom field is a relationship field, the value must be the related object ID.","type":"string"},"values":{"description":"The values of the custom field. Only to be used for multi-valued custom fields (ex. multiselect). Replaces the full selection; it does not add to or remove from the existing values. If unset, the custom field will be unset. If the custom field is a multiselect field, the values must be the select option slugs which you can find from the GET /custom-fields endpoint.","items":{"type":"string"},"type":"array"}},"title":"CustomFieldValue","type":"object"},"IntegrationUserID":{"properties":{"id":{"description":"The user ID in the external system.","type":"string"},"source":{"description":"The integration source (e.g., \"slack\", \"intercom\", \"hubspot\").","type":"string"}},"required":["id","source"],"type":"object"},"Pagination":{"description":"Pagination information for list responses. Absent when there are no more results.","properties":{"cursor":{"description":"The cursor for the next page of results.","type":"string"},"has_next_page":{"description":"Indicates if there is a next page of results.","type":"boolean"}},"required":["cursor","has_next_page"],"title":"Pagination","type":"object"},"ErrorApiResponseBody":{"properties":{"code":{"description":"A stable machine-readable identifier for this failure, safe to branch on\ninstead of the message text. Omitted when the failure has no assigned code.\n\nKnown values: `recipients_suppressed`, `email_bounced`, `internal_issue_reply_not_allowed`, `duplicate_object`, `invalid_authorization_header`, `invalid_api_token`, `invalid_oauth_token`, `wrong_region_token`, `organization_deactivated`, `organization_suspended`, `permission_denied`, `oauth_not_permitted`, `rate_limited`, `not_found`, `method_not_allowed`, `payload_too_large`, `invalid_request_body`, `internal_error`, `invalid_webhook_credentials`, `organization_inactive`. This list is not exhaustive.","type":"string"},"errors":{"description":"The list of errors.","items":{"type":"string"},"type":"array"},"exists_id":{"description":"The ID of the object that already exists if this is a duplicate object error.","type":"string"},"request_id":{"description":"The request ID for tracking.","type":"string"}},"required":["request_id"],"type":"object"}},"responses":{"SearchContactsResponse":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchContactsResponseBody"}}},"description":""},"BadRequestApiResponse":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorApiResponseBody"}}},"description":"The request was invalid or could not be completed."},"UnauthorizedApiResponse":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorApiResponseBody"}}},"description":"The request could not be authenticated for this API."},"ForbiddenApiResponse":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorApiResponseBody"}}},"description":"The authenticated caller or organization is not allowed to access this endpoint or operation."},"TooManyRequestsApiResponse":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorApiResponseBody"}}},"description":"The request exceeded the applicable rate limit.","headers":{"Retry-After":{"description":"Seconds until the next request to this endpoint is permitted.","schema":{"format":"int64","type":"integer"}},"X-Retry-After":{"description":"Seconds until the full per-minute allowance is restored. Capacity returns gradually before then.","schema":{"format":"int64","type":"integer"}}}},"InternalServerErrorApiResponse":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorApiResponseBody"}}},"description":"An unexpected internal error occurred."}}},"paths":{"/contacts/search":{"post":{"description":"Filterable fields and their allowed operators:\n\n Field | Allowed operators |\n --- | --- |\n `id` | `equals`, `in`, `not_in` |\n `email` | `equals`, `in`, `not_in`, `string_contains` |\n `name` | `equals`, `in`, `not_in`, `string_contains` |\n `account_id` | `equals`, `in`, `not_in` |\n\nFor custom fields, pass the field slug as `field`.\n\n**Rate limit:** 120 requests per minute","operationId":"SearchContacts","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchContactsRequest"}}}},"responses":{"200":{"$ref":"#/components/responses/SearchContactsResponse"},"400":{"$ref":"#/components/responses/BadRequestApiResponse"},"401":{"$ref":"#/components/responses/UnauthorizedApiResponse"},"403":{"$ref":"#/components/responses/ForbiddenApiResponse"},"429":{"$ref":"#/components/responses/TooManyRequestsApiResponse"},"500":{"$ref":"#/components/responses/InternalServerErrorApiResponse"}},"summary":"Search for contacts by a given filter","tags":["contacts"]}}}}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.usepylon.com/pylon-docs/developer/api/api-reference/contacts.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
