Skip to main content

Introduction

Overview

The Twozo Public API enables external applications to securely interact with CRM data. It provides REST APIs to create, update, delete, and list CRM records, allowing seamless integration with third-party systems.

The Public API supports the following modules:

  • Contact
  • Company
  • Deal
  • Product

Each module provides the following endpoints:

  • Create
  • Update
  • Delete
  • Get Record
  • List Records
  • Dropdown Values
  • Field List

Permission Criteria

  • Only users with access to the Admin Settings can generate, view, and manage their API Key.
  • Each user is assigned a unique API Key. API requests are authenticated using the API Key associated with the requesting user.
  • Access to API operations is governed by the user's existing module and action permissions.
  • If a user attempts to perform an action (such as View, Create, Edit, or Delete) without the required permission, the API will reject the request and return the following response:
    • Status Code: 403 Forbidden

    • Reason: The authenticated user does not have permission to perform the requested action.

Authentication

All Public API requests must include the API Key in the request header.

Request Header

HeaderValue
X-API-KeyGenerated API Key

Obtaining an API Key

Before using the Public APIs, you must generate an API key from your CRM account.

To generate or retrieve your API key:

  1. Navigate to Settings.
  2. Select API Settings.
  3. Under Your API Key, copy the generated API key.
  4. Use the copied API key in the X-API-Key request header for all Public API requests.
Note:

Keep your API key secure. Do not share it publicly or include it in client-side applications. If your API key is compromised, regenerate it from the API Settings page.

Base URL

The base URL for all Public API endpoints.

Base URL
https://crm.twozo.io/rest/api/v1

Standard Response Status Codes

Status CodeWhen to UseExample
200 OKSuccessful GET/PUT/PATCHResource returned successfully
204 No ContentSuccess with no response bodySuccessful update with no content
400 Bad RequestInvalid request syntax or validationMissing required field, invalid JSON
401 UnauthorizedAuthentication required or invalid tokenMissing/expired JWT
403 ForbiddenUser authenticated but lacks permissionUser cannot access the resource
405 Method Not AllowedHTTP method not supportedPOST on a GET-only endpoint
429 Too Many RequestsRate limit exceededAPI throttling
500 Internal Server ErrorUnexpected server-side exceptionNullPointerException, database failure
502 Bad GatewayUpstream server errorGateway/proxy issue
503 Service UnavailableService temporarily unavailableMaintenance, overloaded server
504 Gateway TimeoutUpstream service timeoutDependency timed out