ByDomuDevelopers

Crear tarea

POSThttps://api.bydomu.com/v1/tasks

This reference is generated from the API’s code, so descriptions are in Spanish. Names, parameters and examples are the same in every language.

Crea una tarea suelta o vinculada a un negocio o a un contacto. Respeta el tope de tareas del plan (403 PLAN_LIMIT_REACHED). Responde solo el id: pide GET /tasks/{id} para el detalle.

Permission required

tasks:write

Required header

X-API-Key · secret key

Access level

Level 3 · with support review

Headers

1 · all optional
Idempotency-Keystring · optional
Clave única de la operación (8-128 caracteres de [a-zA-Z0-9._:-]). Un reintento con la misma clave y el mismo cuerpo devuelve la respuesta original sin repetir la operación. Vive 24 horas.8–128 chars

Body (JSON)

16 · 1 required
titlestring · required
2–200 chars
descriptionstring · optional
≤ 2000 chars
typestring · optional
CALL · EMAIL · WHATSAPP · VISIT · MEETING · SEND_PROPOSAL · SEND_CONTRACT · FOLLOW_UP · SCHEDULE_SHOWING · COLLECT_DOCUMENTS · OTHER · default "OTHER"
prioritystring · optional
LOW · MEDIUM · HIGH · URGENT · default "MEDIUM"
dueDatestring · optional
nullable
dueAtstring · optional
nullable
See the other 10 parameters
dueOnstring · optional
nullable
hasDueTimeboolean · optional
remindMinutesBeforeinteger · optional
0–10080 · nullable
assigneeIdstring · optional
nullable
dealIdstring · optional
nullable
contactIdstring · optional
nullable
propertyIdstring · optional
nullable
recurrencestring · optional
DAILY · WEEKLY · MONTHLY · WEEKDAYS · nullable
recurrenceUntilstring · optional
nullable
attachmentsobject[] · optional

Response 201

object · 1 fields
dataid
idstring

Possible errors

shaped as { "error": { "code", "message" } }
  • 400Datos inválidos: el cuerpo o la query no cumplen el esquema, o `Idempotency-Key` está mal formada.
  • 401UNAUTHORIZED
  • 402PAYMENT_REQUIRED
  • 403FORBIDDEN
  • 404NOT_FOUND
  • 409DUPLICATE
  • 429RATE_LIMITED
  • 500INTERNAL_ERROR
RequestPOST/v1/tasks
Official SDK · @bydomu/sdk · not on npm yet
import { ByDomu } from "@bydomu/sdk";

const bydomu = new ByDomu({
  apiKey: process.env.BYDOMU_API_KEY,
});

const { data } = await bydomu.tasks.create({
  "title": "Llamar a María para confirmar la visita",
  "type": "CALL",
  "priority": "HIGH",
  "dueDate": "2026-10-01T15:00:00.000Z",
  "assigneeId": "clx1usr001",
  "contactId": "clx1con001"
});
201 Created · example
{
  "data": {
    "id": "clx1tsk001"
  }
}