ChatKomodo Docs Home Sign in

API reference · Integrations

API keys

Child keys for separate integrations, each with its own request limit, optional device scope, allowed IPs and expiry, rotated without downtime. Managed from a dashboard login.

List API keys

GET/v1/api-keys

Lists the tenant's primary key and its child keys (primary first, then newest first, max 1 000), revoked ones included. Only the 8-character prefix is returned, never the key itself. Readable with an API key as well as from a dashboard login.

Responses

  • 200Keys
    Response fields
    • api_keysarray of objectrequired
    • api_keys[].idstringrequired
    • api_keys[].namestringrequired
    • api_keys[].prefixstringrequired
      First 8 characters of the key, safe to display. The full key is only returned once, when it is created
    • api_keys[].is_primarybooleanrequired
      true for the tenant's own key, false for a child key created with POST /v1/api-keys
    • api_keys[].rate_limit_per_minuteintegerrequired
    • api_keys[].created_atintegerrequired
      Unix time in milliseconds
    • api_keys[].last_used_atinteger | nullrequired
      Unix time in milliseconds of the last authenticated request (updated at most once a minute), or null if never used
    • api_keys[].revoked_atinteger | nullrequired
      When the key was revoked, or null while it is active
    • api_keys[].allowed_ipsarray of stringrequired
      IP addresses or CIDR ranges the key may be used from; empty = anywhere. A request from elsewhere gets 403 IP_NOT_ALLOWED
    • api_keys[].expires_atinteger | nullrequired
      After this moment the key gets 401 KEY_EXPIRED; null = no expiry. The owner is reminded 7 days before
    • api_keys[].rotated_atinteger | nullrequired
      When the secret was last replaced with POST /v1/api-keys/{id}/rotate
    • api_keys[].old_secret_valid_untilinteger | nullrequired
      After a rotation: until when the previous secret is still accepted
    • api_keys[].last_used_ipstring | nullrequired
      Address of the last request made with the key
    • api_keys[].countriesarray of stringrequired
      Countries (ISO codes, as Cloudflare reports them) the key has been used from. The first use from a new country notifies the owner
    • api_keys[].notify_new_locationbooleanrequired
      Whether the owner gets a notification when the key is used from a new country
    • api_keys[].rotate_recommendedbooleanrequired
      true when the secret is older than 90 days (keys in use get a reminder every 30 days)
    • api_keys[].permissionstringrequired
      What the key may do. full: everything (the primary key always). send: read, and send messages (POST …/messages, …/messages/interactive, retry, forward, reactions, read receipts, a rotator's /send, media uploads). read: GET only, e.g. for a reporting tool. Anything else answers 403 KEY_PERMISSION_DENIED
      One of: full, send, read
  • 401Missing, invalid or expired credentials
  • 403Forbidden for a customer-service agent login (Agent access is not allowed for this operation) and an API key restricted to specific sessions (KEY_SCOPE_FORBIDDEN)
Request
curl "https://api.chatkomodo.com/v1/api-keys" \
  -H "Authorization: Bearer $CHATKOMODO_API_KEY"
const res = await fetch('https://api.chatkomodo.com/v1/api-keys', {
  method: 'GET',
  headers: {
    Authorization: `Bearer ${process.env.CHATKOMODO_API_KEY}`,
  },
});
const data = await res.json();
if (!res.ok) throw new Error(`${data.code}: ${data.error}`);
console.log(data);
import os
import requests

res = requests.get(
    "https://api.chatkomodo.com/v1/api-keys",
    headers={
        "Authorization": f"Bearer {os.environ['CHATKOMODO_API_KEY']}",
    },
    timeout=30,
)
res.raise_for_status()
print(res.json())
<?php
require 'vendor/autoload.php';

$client = new GuzzleHttp\Client();
$res = $client->request('GET', 'https://api.chatkomodo.com/v1/api-keys', [
    'headers' => [
        'Authorization' => 'Bearer ' . getenv('CHATKOMODO_API_KEY'),
    ],
]);

print_r(json_decode((string) $res->getBody(), true));
package main

import (
	"fmt"
	"io"
	"net/http"
	"os"
)

func main() {
	req, err := http.NewRequest("GET", "https://api.chatkomodo.com/v1/api-keys", nil)
	if err != nil {
		panic(err)
	}
	req.Header.Set("Authorization", "Bearer "+os.Getenv("CHATKOMODO_API_KEY"))

	res, err := http.DefaultClient.Do(req)
	if err != nil {
		panic(err)
	}
	defer res.Body.Close()
	data, _ := io.ReadAll(res.Body)
	if res.StatusCode >= 400 {
		panic(fmt.Sprintf("%d: %s", res.StatusCode, data))
	}
	fmt.Println(string(data))
}
Response 200
{
  "api_keys": [
    {
      "id": "01JA5V6Q8M2H7G4K9P3T0R1S2X",
      "name": "Shop integration",
      "prefix": "string",
      "is_primary": true,
      "rate_limit_per_minute": 50,
      "created_at": 1767225600000,
      "last_used_at": 1767225600000,
      "revoked_at": 1767225600000,
      "allowed_ips": [
        "string"
      ],
      "expires_at": 1767225600000,
      "rotated_at": 1767225600000,
      "old_secret_valid_until": 1767225600000,
      "last_used_ip": "string",
      "countries": [
        "GB"
      ],
      "notify_new_location": true,
      "rotate_recommended": true,
      "permission": "full"
    }
  ]
}

Create a child API key

POST/v1/api-keys

Creates a child key that acts as the tenant (same devices, quota, plan and settings) but has its own per-minute request limit and can be revoked on its own. The full key is returned once, in this response only. Needs a dashboard login: an API key cannot mint keys. With the platform admin secret the new key is a separate standalone tenant on the Free plan instead.

Request body

  • namestring
    Label, 1-64 characters (default unnamed)
    1–64 characters
  • rate_limit_per_minuteinteger
    Requests per minute this key may make, across all /v1 endpoints (1-10 000, default 300). Capped to the plan ceiling: 5 times the plan's send rate per minute, at least 300 (600 on Pro with the default send rates)
    From 1 to 10 000
  • allowed_ipsarray of string | null
    IPv4/IPv6 addresses or CIDR ranges (IPv4 /8-/32, IPv6 /16-/128), max 50; null or [] = no restriction
    Up to 50 items
  • expires_atinteger | null
    Unix time in milliseconds, in the future, at most 5 years ahead; null = never expires
  • permissionstring
    Default full
    One of: full, send, read

Responses

  • 201Key created
    Response fields
    • idstringrequired
    • keystringrequired
      The secret API key. Shown only in this response; store it securely
    • prefixstringrequired
      First 8 characters of the key
    • namestringrequired
    • allowed_ipsarray of stringrequired
    • expires_atinteger | nullrequired
    • permissionstringrequired
      What the key may do. full: everything (the primary key always). send: read, and send messages (POST …/messages, …/messages/interactive, retry, forward, reactions, read receipts, a rotator's /send, media uploads). read: GET only, e.g. for a reporting tool. Anything else answers 403 KEY_PERMISSION_DENIED
      One of: full, send, read
  • 400Body is not valid JSON (INVALID_JSON) or fails validation (VALIDATION_FAILED)
  • 401Missing, invalid or expired credentials
  • 403Forbidden. KEY_MANAGEMENT_REQUIRES_LOGIN when the request was authenticated with an API key (keys can only be managed from a dashboard login). Also refused, without a code, for a customer-service agent login, and with KEY_SCOPE_FORBIDDEN for a session-restricted key
Request
curl -X POST "https://api.chatkomodo.com/v1/api-keys" \
  -H "Authorization: Bearer $CHATKOMODO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "name": "Shop integration",
  "rate_limit_per_minute": 50,
  "allowed_ips": [
    "string"
  ],
  "expires_at": 1767225600000
}'
const res = await fetch('https://api.chatkomodo.com/v1/api-keys', {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.CHATKOMODO_API_KEY}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    "name": "Shop integration",
    "rate_limit_per_minute": 50,
    "allowed_ips": [
      "string"
    ],
    "expires_at": 1767225600000
  }),
});
const data = await res.json();
if (!res.ok) throw new Error(`${data.code}: ${data.error}`);
console.log(data);
import os
import requests

res = requests.post(
    "https://api.chatkomodo.com/v1/api-keys",
    headers={
        "Authorization": f"Bearer {os.environ['CHATKOMODO_API_KEY']}",
    },
    json={
        "name": "Shop integration",
        "rate_limit_per_minute": 50,
        "allowed_ips": [
            "string",
        ],
        "expires_at": 1767225600000,
    },
    timeout=30,
)
res.raise_for_status()
print(res.json())
<?php
require 'vendor/autoload.php';

$client = new GuzzleHttp\Client();
$res = $client->request('POST', 'https://api.chatkomodo.com/v1/api-keys', [
    'headers' => [
        'Authorization' => 'Bearer ' . getenv('CHATKOMODO_API_KEY'),
    ],
    'json' => [
        'name' => 'Shop integration',
        'rate_limit_per_minute' => 50,
        'allowed_ips' => [
            'string',
        ],
        'expires_at' => 1767225600000,
    ],
]);

print_r(json_decode((string) $res->getBody(), true));
package main

import (
	"fmt"
	"io"
	"net/http"
	"os"
	"strings"
)

func main() {
	body := strings.NewReader(`{
	  "name": "Shop integration",
	  "rate_limit_per_minute": 50,
	  "allowed_ips": [
	    "string"
	  ],
	  "expires_at": 1767225600000
	}`)
	req, err := http.NewRequest("POST", "https://api.chatkomodo.com/v1/api-keys", body)
	if err != nil {
		panic(err)
	}
	req.Header.Set("Authorization", "Bearer "+os.Getenv("CHATKOMODO_API_KEY"))
	req.Header.Set("Content-Type", "application/json")

	res, err := http.DefaultClient.Do(req)
	if err != nil {
		panic(err)
	}
	defer res.Body.Close()
	data, _ := io.ReadAll(res.Body)
	if res.StatusCode >= 400 {
		panic(fmt.Sprintf("%d: %s", res.StatusCode, data))
	}
	fmt.Println(string(data))
}
Response 201
{
  "id": "01JA5V6Q8M2H7G4K9P3T0R1S2X",
  "key": "uploads/abc123.jpg",
  "prefix": "string",
  "name": "Shop integration",
  "allowed_ips": [
    "string"
  ],
  "expires_at": 1767225600000,
  "permission": "full"
}

Change a key: name, limits, IPs, expiry, alerts, access

PATCH/v1/api-keys/{id}

Updates the tenant's primary key or one of its child keys. The rate limit is the number of requests per minute the key may make with its API key; it is capped to the plan ceiling (5 times the plan's send rate per minute, at least 300) and the response returns the value that was applied. allowed_ips restricts where the key may be used from (null removes the restriction), expires_at sets or clears an expiry, notify_new_location turns the new-country alert on or off. Changes take effect on the next request and are recorded as api_key.update. Needs a dashboard login.

Path parameters

  • idstringrequired
    API key id

Request body

  • namestring
    Label, 1-64 characters
    1–64 characters
  • rate_limit_per_minuteinteger
    Requests per minute this key may make, across all /v1 endpoints (1-10 000, default 300). Capped to the plan ceiling: 5 times the plan's send rate per minute, at least 300 (600 on Pro with the default send rates)
    From 1 to 10 000
  • allowed_ipsarray of string | null
    IPv4/IPv6 addresses or CIDR ranges (IPv4 /8-/32, IPv6 /16-/128), max 50; null or [] = no restriction
    Up to 50 items
  • expires_atinteger | null
    Unix time in milliseconds, in the future, at most 5 years ahead; null = never expires
  • notify_new_locationboolean
  • permissionstring
    Child keys only: the primary key stays full (400 otherwise)
    One of: full, send, read

Responses

  • 200Updated
    Response fields
    • okbooleanrequired
    • rate_limit_per_minuteintegerrequired
      Rate limit now in force (after the plan cap)
  • 400Body is not valid JSON (INVALID_JSON) or fails validation (VALIDATION_FAILED)
  • 401Missing, invalid or expired credentials
  • 403Forbidden. KEY_MANAGEMENT_REQUIRES_LOGIN when the request was authenticated with an API key (keys can only be managed from a dashboard login). Also refused, without a code, for a customer-service agent login, and with KEY_SCOPE_FORBIDDEN for a session-restricted key
  • 404API key not found, or it belongs to another tenant (NOT_FOUND)
Request
curl -X PATCH "https://api.chatkomodo.com/v1/api-keys/ID" \
  -H "Authorization: Bearer $CHATKOMODO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "name": "Shop integration",
  "rate_limit_per_minute": 50,
  "allowed_ips": [
    "string"
  ],
  "expires_at": 1767225600000
}'
const res = await fetch('https://api.chatkomodo.com/v1/api-keys/ID', {
  method: 'PATCH',
  headers: {
    Authorization: `Bearer ${process.env.CHATKOMODO_API_KEY}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    "name": "Shop integration",
    "rate_limit_per_minute": 50,
    "allowed_ips": [
      "string"
    ],
    "expires_at": 1767225600000
  }),
});
const data = await res.json();
if (!res.ok) throw new Error(`${data.code}: ${data.error}`);
console.log(data);
import os
import requests

res = requests.patch(
    "https://api.chatkomodo.com/v1/api-keys/ID",
    headers={
        "Authorization": f"Bearer {os.environ['CHATKOMODO_API_KEY']}",
    },
    json={
        "name": "Shop integration",
        "rate_limit_per_minute": 50,
        "allowed_ips": [
            "string",
        ],
        "expires_at": 1767225600000,
    },
    timeout=30,
)
res.raise_for_status()
print(res.json())
<?php
require 'vendor/autoload.php';

$client = new GuzzleHttp\Client();
$res = $client->request('PATCH', 'https://api.chatkomodo.com/v1/api-keys/ID', [
    'headers' => [
        'Authorization' => 'Bearer ' . getenv('CHATKOMODO_API_KEY'),
    ],
    'json' => [
        'name' => 'Shop integration',
        'rate_limit_per_minute' => 50,
        'allowed_ips' => [
            'string',
        ],
        'expires_at' => 1767225600000,
    ],
]);

print_r(json_decode((string) $res->getBody(), true));
package main

import (
	"fmt"
	"io"
	"net/http"
	"os"
	"strings"
)

func main() {
	body := strings.NewReader(`{
	  "name": "Shop integration",
	  "rate_limit_per_minute": 50,
	  "allowed_ips": [
	    "string"
	  ],
	  "expires_at": 1767225600000
	}`)
	req, err := http.NewRequest("PATCH", "https://api.chatkomodo.com/v1/api-keys/ID", body)
	if err != nil {
		panic(err)
	}
	req.Header.Set("Authorization", "Bearer "+os.Getenv("CHATKOMODO_API_KEY"))
	req.Header.Set("Content-Type", "application/json")

	res, err := http.DefaultClient.Do(req)
	if err != nil {
		panic(err)
	}
	defer res.Body.Close()
	data, _ := io.ReadAll(res.Body)
	if res.StatusCode >= 400 {
		panic(fmt.Sprintf("%d: %s", res.StatusCode, data))
	}
	fmt.Println(string(data))
}
Response 200
{
  "ok": true,
  "rate_limit_per_minute": 50
}

Revoke a child API key (alias)

DEL/v1/api-keys/{id}

Alias of POST /v1/api-keys/{id}/revoke: the key is revoked, not removed, and stays in the list with revoked_at set. The primary key cannot be revoked. Needs a dashboard login.

Path parameters

  • idstringrequired
    API key id

Responses

  • 200Revoked (also returned when the key was already revoked)
    Response fields
    • okbooleanrequired
  • 400The tenant's own primary key cannot be revoked, because it would lock the tenant out of its dashboard (CANNOT_REVOKE_PRIMARY)
  • 401Missing, invalid or expired credentials
  • 403Forbidden. KEY_MANAGEMENT_REQUIRES_LOGIN when the request was authenticated with an API key (keys can only be managed from a dashboard login). Also refused, without a code, for a customer-service agent login, and with KEY_SCOPE_FORBIDDEN for a session-restricted key
  • 404API key not found, or it belongs to another tenant (NOT_FOUND)
Request
curl -X DELETE "https://api.chatkomodo.com/v1/api-keys/ID" \
  -H "Authorization: Bearer $CHATKOMODO_API_KEY"
const res = await fetch('https://api.chatkomodo.com/v1/api-keys/ID', {
  method: 'DELETE',
  headers: {
    Authorization: `Bearer ${process.env.CHATKOMODO_API_KEY}`,
  },
});
const data = await res.json();
if (!res.ok) throw new Error(`${data.code}: ${data.error}`);
console.log(data);
import os
import requests

res = requests.delete(
    "https://api.chatkomodo.com/v1/api-keys/ID",
    headers={
        "Authorization": f"Bearer {os.environ['CHATKOMODO_API_KEY']}",
    },
    timeout=30,
)
res.raise_for_status()
print(res.json())
<?php
require 'vendor/autoload.php';

$client = new GuzzleHttp\Client();
$res = $client->request('DELETE', 'https://api.chatkomodo.com/v1/api-keys/ID', [
    'headers' => [
        'Authorization' => 'Bearer ' . getenv('CHATKOMODO_API_KEY'),
    ],
]);

print_r(json_decode((string) $res->getBody(), true));
package main

import (
	"fmt"
	"io"
	"net/http"
	"os"
)

func main() {
	req, err := http.NewRequest("DELETE", "https://api.chatkomodo.com/v1/api-keys/ID", nil)
	if err != nil {
		panic(err)
	}
	req.Header.Set("Authorization", "Bearer "+os.Getenv("CHATKOMODO_API_KEY"))

	res, err := http.DefaultClient.Do(req)
	if err != nil {
		panic(err)
	}
	defer res.Body.Close()
	data, _ := io.ReadAll(res.Body)
	if res.StatusCode >= 400 {
		panic(fmt.Sprintf("%d: %s", res.StatusCode, data))
	}
	fmt.Println(string(data))
}
Response 200
{
  "ok": true
}

Rotate a key (new secret, same key)

POST/v1/api-keys/{id}/rotate

Replaces the secret of the tenant's primary key or one of its child keys. The id, name, rate limit, allowed IPs and expiry stay; the new secret is returned once. The previous secret keeps working for grace_hours (default 24, 0 = stop at once, max 168), so integrations can switch without downtime. Recorded as api_key.rotate. Needs a dashboard login.

Path parameters

  • idstringrequired
    API key id

Request body

  • grace_hoursinteger
    How long the old secret stays valid, in hours (default 24)
    From 0 to 168

Responses

  • 200Rotated
    Response fields
    • idstringrequired
    • keystringrequired
      The new secret. Shown only in this response
    • prefixstringrequired
    • old_secret_valid_untilinteger | nullrequired
      Until when the old secret works, or null when it stopped at once
  • 400Body is not valid JSON (INVALID_JSON) or fails validation (VALIDATION_FAILED)
  • 401Missing, invalid or expired credentials
  • 403Forbidden. KEY_MANAGEMENT_REQUIRES_LOGIN when the request was authenticated with an API key (keys can only be managed from a dashboard login). Also refused, without a code, for a customer-service agent login, and with KEY_SCOPE_FORBIDDEN for a session-restricted key
  • 404API key not found, or it belongs to another tenant (NOT_FOUND)
Request
curl -X POST "https://api.chatkomodo.com/v1/api-keys/ID/rotate" \
  -H "Authorization: Bearer $CHATKOMODO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "grace_hours": 1
}'
const res = await fetch('https://api.chatkomodo.com/v1/api-keys/ID/rotate', {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.CHATKOMODO_API_KEY}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    "grace_hours": 1
  }),
});
const data = await res.json();
if (!res.ok) throw new Error(`${data.code}: ${data.error}`);
console.log(data);
import os
import requests

res = requests.post(
    "https://api.chatkomodo.com/v1/api-keys/ID/rotate",
    headers={
        "Authorization": f"Bearer {os.environ['CHATKOMODO_API_KEY']}",
    },
    json={
        "grace_hours": 1,
    },
    timeout=30,
)
res.raise_for_status()
print(res.json())
<?php
require 'vendor/autoload.php';

$client = new GuzzleHttp\Client();
$res = $client->request('POST', 'https://api.chatkomodo.com/v1/api-keys/ID/rotate', [
    'headers' => [
        'Authorization' => 'Bearer ' . getenv('CHATKOMODO_API_KEY'),
    ],
    'json' => [
        'grace_hours' => 1,
    ],
]);

print_r(json_decode((string) $res->getBody(), true));
package main

import (
	"fmt"
	"io"
	"net/http"
	"os"
	"strings"
)

func main() {
	body := strings.NewReader(`{
	  "grace_hours": 1
	}`)
	req, err := http.NewRequest("POST", "https://api.chatkomodo.com/v1/api-keys/ID/rotate", body)
	if err != nil {
		panic(err)
	}
	req.Header.Set("Authorization", "Bearer "+os.Getenv("CHATKOMODO_API_KEY"))
	req.Header.Set("Content-Type", "application/json")

	res, err := http.DefaultClient.Do(req)
	if err != nil {
		panic(err)
	}
	defer res.Body.Close()
	data, _ := io.ReadAll(res.Body)
	if res.StatusCode >= 400 {
		panic(fmt.Sprintf("%d: %s", res.StatusCode, data))
	}
	fmt.Println(string(data))
}
Response 200
{
  "id": "01JA5V6Q8M2H7G4K9P3T0R1S2X",
  "key": "uploads/abc123.jpg",
  "prefix": "string",
  "old_secret_valid_until": 1767225600000
}

Revoke a child API key

POST/v1/api-keys/{id}/revoke

Revokes one of the tenant's child keys: it stops authenticating immediately. The key stays in the list with revoked_at set. The primary key cannot be revoked. Same effect as DELETE /v1/api-keys/{id}. Needs a dashboard login.

Path parameters

  • idstringrequired
    API key id

Responses

  • 200Revoked (also returned when the key was already revoked)
    Response fields
    • okbooleanrequired
  • 400The tenant's own primary key cannot be revoked, because it would lock the tenant out of its dashboard (CANNOT_REVOKE_PRIMARY)
  • 401Missing, invalid or expired credentials
  • 403Forbidden. KEY_MANAGEMENT_REQUIRES_LOGIN when the request was authenticated with an API key (keys can only be managed from a dashboard login). Also refused, without a code, for a customer-service agent login, and with KEY_SCOPE_FORBIDDEN for a session-restricted key
  • 404API key not found, or it belongs to another tenant (NOT_FOUND)
Request
curl -X POST "https://api.chatkomodo.com/v1/api-keys/ID/revoke" \
  -H "Authorization: Bearer $CHATKOMODO_API_KEY"
const res = await fetch('https://api.chatkomodo.com/v1/api-keys/ID/revoke', {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.CHATKOMODO_API_KEY}`,
  },
});
const data = await res.json();
if (!res.ok) throw new Error(`${data.code}: ${data.error}`);
console.log(data);
import os
import requests

res = requests.post(
    "https://api.chatkomodo.com/v1/api-keys/ID/revoke",
    headers={
        "Authorization": f"Bearer {os.environ['CHATKOMODO_API_KEY']}",
    },
    timeout=30,
)
res.raise_for_status()
print(res.json())
<?php
require 'vendor/autoload.php';

$client = new GuzzleHttp\Client();
$res = $client->request('POST', 'https://api.chatkomodo.com/v1/api-keys/ID/revoke', [
    'headers' => [
        'Authorization' => 'Bearer ' . getenv('CHATKOMODO_API_KEY'),
    ],
]);

print_r(json_decode((string) $res->getBody(), true));
package main

import (
	"fmt"
	"io"
	"net/http"
	"os"
)

func main() {
	req, err := http.NewRequest("POST", "https://api.chatkomodo.com/v1/api-keys/ID/revoke", nil)
	if err != nil {
		panic(err)
	}
	req.Header.Set("Authorization", "Bearer "+os.Getenv("CHATKOMODO_API_KEY"))

	res, err := http.DefaultClient.Do(req)
	if err != nil {
		panic(err)
	}
	defer res.Body.Close()
	data, _ := io.ReadAll(res.Body)
	if res.StatusCode >= 400 {
		panic(fmt.Sprintf("%d: %s", res.StatusCode, data))
	}
	fmt.Println(string(data))
}
Response 200
{
  "ok": true
}