Getting Started

Overview of YourGPT APIs — understand the two API types, base URLs, and common conventions.

The YourGPT API gives you programmatic access to everything you can do in the dashboard. Automate your workflows, build custom integrations, or manage your chatbot infrastructure from your own code.

Every endpoint follows the same conventions — POST requests with JSON bodies and a consistent response format. If you can make an HTTP request, you can use this API.

Two types of API access

YourGPT provides two distinct API types for different use cases:

Platform APIsProject Integration APIs
AuthAPI Token (api-v1-...)API Key (apk-...)
ScopeOrganization-wide, multi-projectSingle project only
Created inOrganization Settings → API TokensProject → Integrations → API Integration
PlansAdvanced, Agency, EnterpriseProfessional and above
Use caseFull platform access — organization management, multi-project operations, training, contacts, analytics, and moreCommon integration use cases — conversations, voice calls, knowledgebase search

Base URLs

ScopeBase URL
Project-levelhttps://api.yourgpt.ai/chatbot/v1
Organization-levelhttps://api.yourgpt.ai/api/v1

Project-level endpoints operate on a specific chatbot (identified by project_uid). Organization-level endpoints operate across your account — the organization is inferred from your token.

Prerequisites

  • A YourGPT account — Professional+ for Project Integration APIs, Advanced+ for Platform APIs
  • At least one chatbot project

Response format

Every response includes a type field that tells you what happened.

Success:

{
  "type": "RXSUCCESS",
  "message": "Data Fetched Successfully!",
  "data": { ... }
}

Error:

{
  "type": "RXERROR",
  "message": "Description of what went wrong"
}

List endpoints also return a total field for pagination.

On this page