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

# API

- [API - How to register the API key](https://docs.sprinthub.com/en/topics/api/api-how-to-register-the-api-key.md)
- [API - API Call to create/update an Opportunity in CRM](https://docs.sprinthub.com/en/topics/api/api-api-call-to-create-update-an-opportunity-in-crm.md)
- [API - API Call to List a Lead's Opportunities](https://docs.sprinthub.com/en/topics/api/api-api-call-to-list-a-leads-opportunities.md)
- [API - API Call to update Lead UTMs](https://docs.sprinthub.com/en/topics/api/api-api-call-to-update-lead-utms.md)
- [API - API Call to fetch a Lead's ID](https://docs.sprinthub.com/en/topics/api/api-api-call-to-fetch-a-leads-id.md)
- [API - API Call to fetch Service or Lead Files](https://docs.sprinthub.com/en/topics/api/api-api-call-to-fetch-service-or-lead-files.md)
- [API - API Call to List Lead Services](https://docs.sprinthub.com/en/topics/api/api-api-call-to-list-lead-services.md)
- [API - API Call to list Leads and Lead Fields](https://docs.sprinthub.com/en/topics/api/api-api-call-to-list-leads-and-lead-fields.md)
- [API - Call to list the instance's leads searching for a specific field](https://docs.sprinthub.com/en/topics/api/api-api-call-to-list-leads-and-lead-fields/api-call-to-list-the-instances-leads-searching-for-a-specific-field.md)
- [API - Changing Lead data using any field as reference](https://docs.sprinthub.com/en/topics/api/api-changing-lead-data-using-any-field-as-reference.md)
- [API - Creating Lead and Opportunity at the same time](https://docs.sprinthub.com/en/topics/api/api-creating-lead-and-opportunity-at-the-same-time.md)
- [API - (Advanced) Advanced Tracking via Tracking Script](https://docs.sprinthub.com/en/topics/api/api-advanced-advanced-tracking-via-tracking-script.md)
- [API - HOTMART: Sending abandoned cart event to SprintHub via Make](https://docs.sprinthub.com/en/topics/api/api-hotmart-sending-abandoned-cart-event-to-sprinthub-via-make.md)
- [API - Google Sheets - Sending lead data to Google Sheets](https://docs.sprinthub.com/en/topics/api/api-google-sheets-sending-lead-data-to-google-sheets.md): Step-by-step guide on how to send SprintHub data to a Google Sheets spreadsheet.
- [API - Creating a Lead](https://docs.sprinthub.com/en/topics/api/api-creating-a-lead.md): How to create a Lead with data from a request.
- [API - Updating Lead fields](https://docs.sprinthub.com/en/topics/api/api-updating-lead-fields.md): How to update Lead fields via API.
- [API - How to Recover or Delete Archived Leads](https://docs.sprinthub.com/en/topics/api/api-how-to-recover-or-delete-archived-leads.md)
- [API - Retrieving Custom Objects from the Lead](https://docs.sprinthub.com/en/topics/api/api-retrieving-custom-objects-from-the-lead.md): How to pull the custom objects from a Lead.
- [API - How to Create a Custom Object](https://docs.sprinthub.com/en/topics/api/api-how-to-create-a-custom-object.md): How to create Custom Objects dynamically through the SprintHub API.
- [API - How to Relate a Custom Object to a Contact](https://docs.sprinthub.com/en/topics/api/api-how-to-relate-a-custom-object-to-a-contact.md): How to relate an existing Custom Object to a contact.
- [API - Getting and modifying Lead tags](https://docs.sprinthub.com/en/topics/api/api-getting-and-modifying-lead-tags.md): How to view, remove, and add tags to a Lead.
- [API - GET on Custom Reports](https://docs.sprinthub.com/en/topics/api/api-get-on-custom-reports.md): Using Custom Reports, you can access the data from these reports via API if you want to build these reports in an external system such as Power BI, for example.
- [API - GET on Leads and Opportunities](https://docs.sprinthub.com/en/topics/api/api-get-on-leads-and-opportunities.md)
- [API - Calendars and Meetings](https://docs.sprinthub.com/en/topics/api/api-calendars-and-meetings.md)
- [How to Schedule a Meeting via API](https://docs.sprinthub.com/en/topics/api/how-to-schedule-a-meeting-via-api.md)


---

# 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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.sprinthub.com/en/topics/api.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
