curl --request GET \
--url https://app.kapso.ai/api/v1/customers/{customer_id}/setup_links \
--header 'X-API-Key: <api-key>'
{
"data": [
{
"id": "7f8a9b1c-2d3e-4f5a-6b7c-8d9e0f1a2b3c",
"status": "active",
"expires_at": "2023-11-07T05:31:56Z",
"url": "https://app.kapso.ai/whatsapp/setup/aBcD123...",
"success_redirect_url": "https://your-app.com/whatsapp/success",
"failure_redirect_url": "https://your-app.com/whatsapp/failed",
"allowed_connection_types": [
"coexistence",
"dedicated"
],
"theme_config": {
"primary_color": "#3b82f6",
"primary_foreground_color": "#ffffff",
"background_color": "#ffffff",
"text_color": "#0f172a",
"muted_text_color": "#64748b",
"card_color": "#f8fafc",
"muted_color": "#f1f5f9",
"border_color": "#e2e8f0",
"secondary_color": "#f1f5f9",
"secondary_foreground_color": "#0f172a",
"destructive_color": "#ef4444",
"destructive_foreground_color": "#fef2f2"
},
"created_at": "2023-11-07T05:31:56Z"
}
],
"meta": {
"page": 1,
"per_page": 20,
"total_pages": 5,
"total_count": 100
}
}
Get all setup links for a customer
curl --request GET \
--url https://app.kapso.ai/api/v1/customers/{customer_id}/setup_links \
--header 'X-API-Key: <api-key>'
{
"data": [
{
"id": "7f8a9b1c-2d3e-4f5a-6b7c-8d9e0f1a2b3c",
"status": "active",
"expires_at": "2023-11-07T05:31:56Z",
"url": "https://app.kapso.ai/whatsapp/setup/aBcD123...",
"success_redirect_url": "https://your-app.com/whatsapp/success",
"failure_redirect_url": "https://your-app.com/whatsapp/failed",
"allowed_connection_types": [
"coexistence",
"dedicated"
],
"theme_config": {
"primary_color": "#3b82f6",
"primary_foreground_color": "#ffffff",
"background_color": "#ffffff",
"text_color": "#0f172a",
"muted_text_color": "#64748b",
"card_color": "#f8fafc",
"muted_color": "#f1f5f9",
"border_color": "#e2e8f0",
"secondary_color": "#f1f5f9",
"secondary_foreground_color": "#0f172a",
"destructive_color": "#ef4444",
"destructive_foreground_color": "#fef2f2"
},
"created_at": "2023-11-07T05:31:56Z"
}
],
"meta": {
"page": 1,
"per_page": 20,
"total_pages": 5,
"total_count": 100
}
}
Your project API key
x >= 1
1 <= x <= 100
List of setup links
The response is of type object
.
Was this page helpful?