Yola Docs
  • Getting Started
    • Glossary
    • Signing-in
    • Main Dashboard
    • Platform Bot
    • Data Privacy
  • AICX Modules
    • AI Assistants
      • Manage Assistants
      • Actions
        • Send Message
        • Send File
        • Show Carousel
        • Show Survey
        • Collect Feedback
        • Create Ticket
        • Human Handoff
        • External Handoff
        • Jump to Trigger/Action
        • If/Else
        • Set Chat Variable
        • Send API Request
      • LLMs
        • Cloudflare Training
      • Publishing
        • Webchat
          • Proactive Messages
        • Facebook Messenger
        • WhatsApp
        • Telegram
        • LINE
        • Africa's Talking
        • Bitrix24
        • Zendesk
    • Inbox
      • Find & View Conversations
      • Message Editor
      • Transfers & Takeovers
    • Livechats
    • Tickets
    • People
    • Analytics
      • Winnow
  • General
    • Settings
      • Company
        • Plan & Billing
          • Interactions Amount
        • Roles & Permissions
        • Users
        • Teams
        • IP Allowlist
        • Whitelabelling
      • Sub-Company
        • Banning
        • Tags
        • Chat Assignment
        • Email Domains
        • Email Templates
        • Exports
        • Canned Replies
        • Custom Fields
        • Custom Profiles
        • Custom Analytics
      • User Account
        • User Aliases
        • Online Status
    • Plans & Pricing
    • Elite Suite Max
  • Developers
    • Developer Tools
      • Chat Variables
      • Chat Scripts
      • Webchat Script
      • Developer API
      • On-Premise & Hybrid Hosting
Powered by GitBook
On this page
  • Authentication API
  • Conversations API
  • Create ticket
  • Customers API
  • Get customer
  • Insert customer
  • Add tags
  • Add custom fields
  • Custom Fields API
  • List custom fields
  • Create custom fields
  • Delete custom fields

Was this helpful?

  1. Developers
  2. Developer Tools

Developer API

Connect to Yola directly through an easy API.

PreviousWebchat ScriptNextOn-Premise & Hybrid Hosting

Last updated 2 months ago

Was this helpful?

API account access is available with the Boost plan and above.

Find the full developer API schema here:


Authentication API

Each request to the developer API must include a bearer token in the Authorization header. This bearer token should be in the form of Authorization: Bearer {subcompany_takeover_secret}. This takeover secret can be found in the sub-company settings page.


Conversations API

URL
POST https://v3-api.yola.ai/api/platform/v1/conversations/{subcompany_id}/create-ticket
Body
{
  "subject": "string" (required),
  "customer_id": "string",
  "external_customer_id": "string",
  "gateway_profile_id": "string",
  "provided_unique_id": "string"
}

One of customer_id, external_customer_id, gateway_profile_id, or provided_unique_id must be provided to identify the customer.

Returns
{
  "id": "The id of the created conversation."
}

Customers API

Note that "customer" is a legacy term for an audience member, now referred to more generically as "people" or "persons" in the current platform and documentation.

URL
GET https://v3-api.yola.ai/api/platform/v1/customers/{subcompany_id}/customer/{provided_unique_id}/get-customer
Returns
A JSON dictionary of all customer information other than their associated custom field values. 
Parameters
Data Type
Required
Description

subcompany_id

string

subcompany_id from Yola

provided_unique_id

string

user's provided_unique_id

authorization

URL
PUT https://v3-api.yola.ai/api/platform/v1/customers/{subcompany_id}/create-customer/{provided_unique_id}
Body
{
  "external_customer_id": "string" (optional),
  "name": "string" (optional),
  "location": "string" (optional),
  "email": "string" (optional),
  "phone_number": "string" (optional),
  "avatar": "string" (optional)
}
Returns
A JSON dictionary of the created customer.
PUT https://v3-api.yola.ai/api/platform/v1/customers/{subcompany_id}/customer/{provided_unique_id}/add-tags

Use create_if_not_exists to also create any tags that do not exist before applying it to the customer.

PUT https://v3-api.yola.ai/api/platform/v1/customers/{subcompany_id}/customer/{provided_unique_id}/add-custom-fields

One of id or name must be provided for each custom field element in the request body. The id of a custom field can be retrieved from listing or creating a new custom field.


Custom Fields API

GET https://v3-api.yola.ai/api/platform/v1/custom-fields/{subcompany_id}/list-custom-fields
POST https://v3-api.yola.ai/api/platform/v1/custom-fields/{subcompany_id}/create-custom-field

select_options must be provided only if type is select.

DELETE https://v3-api.yola.ai/api/platform/v1/custom-fields/{subcompany_id}/custom-field/{custom_field_id}/delete-custom-fields

Create ticket
Get customer
Insert customer
Add tags
Add custom fields
List custom fields
Create custom fields
Delete custom fields
https://v3-api.yola.ai/api/platform/docs