Black Friday Black Friday: de nye LetsBot-pakker sparer op til 60% — kun til 30. november. Se pakkerne Se pakkerne
LetsBot Menu
Kom i gang Dansk Sprog

Verificeret Meta Tech Provider Registreret selskab i Storbritannien

Sprog

CRM · API-endpoint

POST /api/v1/crm/objects/{key}/records Ny

Create a custom record

Creates a record. Scope: crm.

Creates a record. Scope: crm.

values is keyed by field key (see List custom objects). The title field and required fields must be filled; formula and rollup fields are computed. Dropdowns take the option value, dates YYYY-MM-DD, relation fields a record id (a list of ids when the field allows many), user fields a team member id. Validated like the panel; fires the record created automations. Optional: owner_user_id.

JSON-indhold

{
  "values": {
    "name": "Tower A",
    "budget": 1200,
    "status": "active",
    "starts_on": "2026-11-20",
    "client": 481,
    "partners": [
      21,
      34
    ]
  },
  "owner_user_id": 3
}

Eksempel på forespørgsel

curl -X POST "https://your-workspace.letsbot.net/api/v1/crm/objects/co_projects/records" \
  -H "X-Zapier-Api-Key: YOUR_WORKSPACE_API_KEY" \
  -H "Accept: application/json" \
  -H "Content-Type: application/json" \
  -d '{
  "values": {
    "name": "Tower A",
    "budget": 1200,
    "status": "active",
    "starts_on": "2026-11-20",
    "client": 481,
    "partners": [
      21,
      34
    ]
  },
  "owner_user_id": 3
}'
const response = await fetch("https://your-workspace.letsbot.net/api/v1/crm/objects/co_projects/records", {
  method: "POST",
  headers: {
    "X-Zapier-Api-Key": "YOUR_WORKSPACE_API_KEY",
    "Accept": "application/json",
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "values": {
      "name": "Tower A",
      "budget": 1200,
      "status": "active",
      "starts_on": "2026-11-20",
      "client": 481,
      "partners": [
        21,
        34
      ]
    },
    "owner_user_id": 3
  }),
});

const data = await response.json();
console.log(data);
<?php

$ch = curl_init('https://your-workspace.letsbot.net/api/v1/crm/objects/co_projects/records');

curl_setopt_array($ch, [
    CURLOPT_CUSTOMREQUEST => 'POST',
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_HTTPHEADER => [
        'X-Zapier-Api-Key: YOUR_WORKSPACE_API_KEY',
        'Accept: application/json',
        'Content-Type: application/json',
    ],
    CURLOPT_POSTFIELDS => <<<'JSON'
    {
        "values": {
            "name": "Tower A",
            "budget": 1200,
            "status": "active",
            "starts_on": "2026-11-20",
            "client": 481,
            "partners": [
                21,
                34
            ]
        },
        "owner_user_id": 3
    }
    JSON,
]);

$data = json_decode(curl_exec($ch), true);
curl_close($ch);

print_r($data);
import requests

response = requests.request(
    "POST",
    "https://your-workspace.letsbot.net/api/v1/crm/objects/co_projects/records",
    headers={
        "X-Zapier-Api-Key": "YOUR_WORKSPACE_API_KEY",
        "Accept": "application/json",
        "Content-Type": "application/json",
    },
    json={
        "values": {
            "name": "Tower A",
            "budget": 1200,
            "status": "active",
            "starts_on": "2026-11-20",
            "client": 481,
            "partners": [
                21,
                34,
            ],
        },
        "owner_user_id": 3,
    },
)

print(response.json())

Svar

Created201
{
  "success": true,
  "data": {
    "id": 12,
    "object": "co_projects",
    "title": "Tower A",
    "owner_user_id": 3,
    "values": {
      "name": "Tower A",
      "budget": 1200,
      "status": "active",
      "starts_on": "2026-11-20",
      "client": 481,
      "partners": [
        21,
        34
      ]
    },
    "created_at": "2026-11-07T09:00:00+03:00",
    "updated_at": "2026-11-07T09:30:00+03:00"
  }
}

Klar, når du er

Prøv dette endpoint med dit eget nummer

API'et virker i den gratis prøveperiode. Opret en konto, forbind dit WhatsApp-nummer, og kopiér din nøgle under API → Godkendelsesdata.