Blog
Github
  1. Getting Started
  • Getting Started
    • Introduction
    • Quickstart
    • Authentication
    • Status codes
  • Webhook
    • Webhook Setup
    • Webhook Events and Schema
  • API Reference
    • Contact
      • Listing
      • Create
      • Filter By SocialPlatformId
      • Form Fields
      • Detail
      • Update
      • Delete
      • Fetch Contact Groups
      • Update tags
    • Tag
      • Listing
    • Channel
      • Listing
      • Create
    • Ticket
      • Listing
      • Create
      • Filter by Contact ID
      • Form Fields
      • Update
      • Update status
    • Category
      • Listing
    • CxLog
      • Listing
    • Message
      • Send message
Blog
Github
  1. Getting Started

Authentication

You'll need to authenticate your requests to access any of the endpoints in the K-LINK API. In this guide, we'll look at how authentication works. K-LINK offers two ways to authenticate your API requests: Basic authentication and OAuth2 with a token — OAuth2 is the recommended way. In the below picture, please generate access token at the part of Generate API Access Token.

Step 1: Create an Application#

1.
Navigate to Settings → Developer Tools
2.
Click the Create App button
3.
Enter your application details and select the appropriate environment (Development or Production)
setting-developer-tools.png

Step2: Create developer app#

create-developer-app.png

Step3: Click the Manage button to configure the app. And then you can generate the access token by selecting the your tenant#

generate-access-token.png

OAuth2 with bearer token#

The recommended way to authenticate with the K-LINK API is by using OAuth2. When establishing a connection using OAuth2, you will need your access token — you will find it in the K-LINK dashboard under API settings. Here's how to add the token to the request header using cURL:
Always keep your token safe and reset it if you suspect it has been compromised.
Always ensure that your tokens and secret keys are kept secure, and reset them immediately if you suspect they have been compromised.
Modified at 2026-01-09 05:37:52
Previous
Quickstart
Next
Status codes
Built with