Quick start
Create an API token in Kinsen, pick an operation below and send your first request.
Connect your systems to Kinsen: manage contacts, send WhatsApp messages and templates, and run workflows from your own applications.
Security first Your API token stays in this browser tab. The console never stores it.
curl --request POST \
--url 'https://9xwlk0yshi.execute-api.eu-central-1.amazonaws.com/kinsen/' \
--header 'X-API-Token: $KINSEN_API_TOKEN' \
--header 'Content-Type: application/json' \
--data '{"c":"msgs","m":"send","phone":"9715XXXXXXXX","message":"Hello"}'Every request is a POST with a JSON body, authenticated by your workspace API token.
Create an API token in Kinsen, pick an operation below and send your first request.
Send the token in the X-API-Token header. The token decides the organization and workspace.
POST JSON to one URL. c chooses the resource and m the operation; other fields are its parameters.
Replies include success and a message. A missing or invalid token is refused before anything runs.
Normal messages need an open WhatsApp window; use send_template outside it. Check with is_window_open.
Start workflows for a contact or a lifecycle stage, and read or change the state of their runs.
Create a contact with a phone number, name and email address.
https://9xwlk0yshi.execute-api.eu-central-1.amazonaws.com/kinsen/{
"c": "contacts",
"m": "create",
"phone": "9715XXXXXXXX",
"name": "Sara Ahmed",
"email": "sara@example.com"
}Try this operation →Update a contact's name and email address, found by phone number.
https://9xwlk0yshi.execute-api.eu-central-1.amazonaws.com/kinsen/{
"c": "contacts",
"m": "update",
"phone": "9715XXXXXXXX",
"name": "Sara Ahmed",
"email": "sara@example.com"
}Try this operation →Create the contact if the phone number is new, otherwise update it.
https://9xwlk0yshi.execute-api.eu-central-1.amazonaws.com/kinsen/{
"c": "contacts",
"m": "create_update",
"phone": "9715XXXXXXXX",
"name": "Sara Ahmed"
}Try this operation →Return a contact found by phone number.
https://9xwlk0yshi.execute-api.eu-central-1.amazonaws.com/kinsen/{
"c": "contacts",
"m": "get",
"phone": "9715XXXXXXXX"
}Try this operation →Delete a contact found by phone number.
https://9xwlk0yshi.execute-api.eu-central-1.amazonaws.com/kinsen/{
"c": "contacts",
"m": "delete",
"phone": "9715XXXXXXXX"
}Try this operation →Return the lifecycle stages of the token's organization.
https://9xwlk0yshi.execute-api.eu-central-1.amazonaws.com/kinsen/{
"c": "contacts",
"m": "get_lifecycle"
}Try this operation →Set a contact's lifecycle stage by phone number and stage ID.
https://9xwlk0yshi.execute-api.eu-central-1.amazonaws.com/kinsen/{
"c": "contacts",
"m": "update_lifecycle",
"phone": "9715XXXXXXXX",
"lifecycle_id": "2"
}Try this operation →Send a WhatsApp text message. The customer's 24-hour window must be open on that channel.
https://9xwlk0yshi.execute-api.eu-central-1.amazonaws.com/kinsen/{
"c": "msgs",
"m": "send",
"phone": "9715XXXXXXXX",
"message": "Good morning",
"channel_id": "12"
}Try this operation →Send an interactive message: up to 3 buttons, or a list of up to 10 options (20 characters each).
https://9xwlk0yshi.execute-api.eu-central-1.amazonaws.com/kinsen/{
"c": "msgs",
"m": "send",
"phone": "9715XXXXXXXX",
"message": "How can we help?",
"type": "buttons",
"options": [
"Sales",
"Support",
"Billing"
]
}Try this operation →Send an approved WhatsApp template with body, button and header values. Works outside the 24-hour window.
https://9xwlk0yshi.execute-api.eu-central-1.amazonaws.com/kinsen/{
"c": "msgs",
"m": "send_template",
"phone": "9715XXXXXXXX",
"template_name": "order_update",
"body_params": [
"Sara",
"#1042"
],
"channel_id": "12"
}Try this operation →Return a message by its Kinsen message ID, including its delivery status.
https://9xwlk0yshi.execute-api.eu-central-1.amazonaws.com/kinsen/{
"c": "msgs",
"m": "get",
"msg_id": 7557
}Try this operation →Return the WhatsApp templates available to the workspace, page by page.
https://9xwlk0yshi.execute-api.eu-central-1.amazonaws.com/kinsen/{
"c": "msgs",
"m": "get_templates",
"limit": 20,
"offset": 0
}Try this operation →Return whether the customer's 24-hour window is open on a channel.
https://9xwlk0yshi.execute-api.eu-central-1.amazonaws.com/kinsen/{
"c": "msgs",
"m": "is_window_open",
"phone": "9715XXXXXXXX",
"channel_id": "12"
}Try this operation →Return the workspace channels whose 24-hour window with this customer is open.
https://9xwlk0yshi.execute-api.eu-central-1.amazonaws.com/kinsen/{
"c": "msgs",
"m": "open_channels",
"phone": "9715XXXXXXXX"
}Try this operation →Add a teammate to the token's organization with a role level.
https://9xwlk0yshi.execute-api.eu-central-1.amazonaws.com/kinsen/{
"c": "users",
"m": "create",
"email": "agent@example.com",
"name": "Omar",
"fk_level_id": "3"
}Try this operation →Update a teammate found by email address.
https://9xwlk0yshi.execute-api.eu-central-1.amazonaws.com/kinsen/{
"c": "users",
"m": "update",
"email": "agent@example.com",
"name": "Omar Ali"
}Try this operation →Return a teammate found by email address.
https://9xwlk0yshi.execute-api.eu-central-1.amazonaws.com/kinsen/{
"c": "users",
"m": "get",
"email": "agent@example.com"
}Try this operation →Remove a teammate found by email address.
https://9xwlk0yshi.execute-api.eu-central-1.amazonaws.com/kinsen/{
"c": "users",
"m": "delete",
"email": "agent@example.com"
}Try this operation →Return the role levels you can give to users.
https://9xwlk0yshi.execute-api.eu-central-1.amazonaws.com/kinsen/{
"c": "users",
"m": "get_levels"
}Try this operation →Assign the contact's conversation to a teammate.
https://9xwlk0yshi.execute-api.eu-central-1.amazonaws.com/kinsen/{
"c": "users",
"m": "assign_user",
"phone": "9715XXXXXXXX",
"user_id": "41"
}Try this operation →Start a workflow for a contact. The run starts in the background; the reply confirms it was queued.
https://9xwlk0yshi.execute-api.eu-central-1.amazonaws.com/kinsen/{
"c": "workflow",
"m": "run",
"phone": "9715XXXXXXXX",
"workflow_id": "153"
}Try this operation →Return a contact's workflow runs, optionally filtered by status.
https://9xwlk0yshi.execute-api.eu-central-1.amazonaws.com/kinsen/{
"c": "workflow",
"m": "get_workflow_by_contact",
"phone": "9715XXXXXXXX",
"status": "active"
}Try this operation →Move a contact's runs from one status to another, for example to stop active runs.
https://9xwlk0yshi.execute-api.eu-central-1.amazonaws.com/kinsen/{
"c": "workflow",
"m": "update_workflow_status",
"phone": "9715XXXXXXXX",
"old_status": "active",
"new_status": "completed"
}Try this operation →Start a workflow for contacts in a lifecycle stage, a limited number at a time.
https://9xwlk0yshi.execute-api.eu-central-1.amazonaws.com/kinsen/{
"c": "workflow",
"m": "start_by_lifecycle",
"lifecycle_id": "2",
"workflow_id": "153",
"limit": 50
}Try this operation →Sandbox requests are simulated in your browser. Live requests are relayed to the Kinsen API with your token.
🔒 The relay forwards your token for this one request only. It is not saved in cookies, storage, analytics or a database.
{
"ready": true
}