Ir al contenido

Referencia

Referencia API

Cada endpoint con sus parámetros, permisos y ejemplo de petición. La misma operación está disponible como herramienta MCP.

Los cuerpos se envían como JSON. Los parámetros de lectura van en la URL y los identificadores en la ruta. El contrato completo está en OpenAPI 3.1.

https://ai.zaly.app/api/v1

Autentica con Authorization: Bearer $ZALY_API_KEY. Consulta autenticación para preparar el acceso.

Contexto

Organización, permisos y trabajo pendiente.

Consultar el contexto

GET/api/v1/context

Empieza aquí: organización, permisos e índices de guías, skills y tools. Después carga la guía o skill de la tarea con get_guide.

REST: clave API o sesiónTool MCP get_contextPermiso readSolo lecturaReintentos con la misma clave

Petición

curl -X GET "https://ai.zaly.app/api/v1/context" \
  -H "Authorization: Bearer $ZALY_API_KEY"
Respuesta
CampoTipo y descripción
organizationobject
permissionsobject
instructionsarray de string
entry_toolsarray de string
guidesarray de object
skillsarray de object
Schemas completos de REST y MCP

Entrada MCP

{
  "type": "object",
  "properties": {},
  "additionalProperties": false
}

Respuesta JSON

{
  "type": "object",
  "properties": {
    "organization": {
      "type": "object",
      "properties": {
        "organization_id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        }
      },
      "required": [
        "organization_id",
        "name"
      ],
      "additionalProperties": false
    },
    "permissions": {
      "type": "object",
      "properties": {
        "read": {
          "type": "boolean"
        },
        "write": {
          "type": "boolean"
        },
        "send": {
          "type": "boolean"
        }
      },
      "required": [
        "read",
        "write",
        "send"
      ],
      "additionalProperties": false
    },
    "instructions": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "entry_tools": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "guides": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "topic": {
            "type": "string",
            "enum": [
              "onboarding",
              "new",
              "team",
              "accounts",
              "services",
              "icps",
              "signals",
              "people",
              "campaigns",
              "calendar",
              "conversations",
              "zaly-preparar-campana",
              "zaly-investigacion",
              "zaly-primer-dm",
              "zaly-conversacion",
              "zaly-follow-ups"
            ]
          },
          "description": {
            "type": "string"
          },
          "tools": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "required": [
          "topic",
          "description",
          "tools"
        ],
        "additionalProperties": false
      }
    },
    "skills": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "topic": {
            "type": "string",
            "enum": [
              "zaly-preparar-campana",
              "zaly-investigacion",
              "zaly-primer-dm",
              "zaly-conversacion",
              "zaly-follow-ups"
            ]
          },
          "description": {
            "type": "string"
          }
        },
        "required": [
          "topic",
          "description"
        ],
        "additionalProperties": false
      }
    }
  },
  "required": [
    "organization",
    "permissions",
    "instructions",
    "entry_tools",
    "guides",
    "skills"
  ],
  "additionalProperties": false
}

Consultar una guía

GET/api/v1/guides/{topic}

Carga una guía o skill por su topic publicado en get_context. Las skills incluyen Markdown y referencias compartidas; las guías documentan tools y límites. Usa los schemas actuales para ejecutar.

REST: clave API o sesiónTool MCP get_guidePermiso readSolo lecturaReintentos con la misma clave
ParámetroDescripción
topicpath · "onboarding" | "new" | "team" | "accounts" | "services" | "icps" | "signals" | "people" | "campaigns" | "calendar" | "conversations" | "zaly-preparar-campana" | "zaly-investigacion" | "zaly-primer-dm" | "zaly-conversacion" | "zaly-follow-ups" · obligatorioTema de la guía que quieres consultar.

Petición

curl -X GET "https://ai.zaly.app/api/v1/guides/$TOPIC" \
  -H "Authorization: Bearer $ZALY_API_KEY"
Respuesta
CampoTipo y descripción
topic"onboarding" | "new" | "team" | "accounts" | "services" | "icps" | "signals" | "people" | "campaigns" | "calendar" | "conversations" | "zaly-preparar-campana" | "zaly-investigacion" | "zaly-primer-dm" | "zaly-conversacion" | "zaly-follow-ups"
purposestring
implementationobject
toolsobject
rulesarray de string
workflowsobject
resultJSON
responseJSON
criteriaJSON
targetsarray de JSON
summary_fieldsJSON
result_rulesarray de string
settingsJSON
import_rowsJSON
summary_rulesarray de string
contentJSON
evaluationJSON
Schemas completos de REST y MCP

Entrada MCP

{
  "type": "object",
  "properties": {
    "topic": {
      "type": "string",
      "enum": [
        "onboarding",
        "new",
        "team",
        "accounts",
        "services",
        "icps",
        "signals",
        "people",
        "campaigns",
        "calendar",
        "conversations",
        "zaly-preparar-campana",
        "zaly-investigacion",
        "zaly-primer-dm",
        "zaly-conversacion",
        "zaly-follow-ups"
      ]
    }
  },
  "required": [
    "topic"
  ],
  "additionalProperties": false
}

Respuesta JSON

{
  "type": "object",
  "properties": {
    "topic": {
      "type": "string",
      "enum": [
        "onboarding",
        "new",
        "team",
        "accounts",
        "services",
        "icps",
        "signals",
        "people",
        "campaigns",
        "calendar",
        "conversations",
        "zaly-preparar-campana",
        "zaly-investigacion",
        "zaly-primer-dm",
        "zaly-conversacion",
        "zaly-follow-ups"
      ]
    },
    "purpose": {
      "type": "string"
    },
    "implementation": {
      "type": "object",
      "properties": {
        "status": {
          "type": "string",
          "enum": [
            "implemented",
            "overview"
          ]
        },
        "instructions": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      },
      "required": [
        "status"
      ],
      "additionalProperties": false
    },
    "tools": {
      "type": "object",
      "propertyNames": {
        "type": "string"
      },
      "additionalProperties": {
        "$ref": "#/$defs/__schema0"
      }
    },
    "rules": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "workflows": {
      "type": "object",
      "propertyNames": {
        "type": "string"
      },
      "additionalProperties": {
        "type": "array",
        "items": {
          "type": "string"
        }
      }
    },
    "result": {
      "$ref": "#/$defs/__schema1"
    },
    "response": {
      "$ref": "#/$defs/__schema2"
    },
    "criteria": {
      "$ref": "#/$defs/__schema3"
    },
    "targets": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/__schema4"
      }
    },
    "summary_fields": {
      "$ref": "#/$defs/__schema5"
    },
    "result_rules": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "settings": {
      "$ref": "#/$defs/__schema6"
    },
    "import_rows": {
      "$ref": "#/$defs/__schema7"
    },
    "summary_rules": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "content": {
      "$ref": "#/$defs/__schema8"
    },
    "evaluation": {
      "$ref": "#/$defs/__schema9"
    }
  },
  "required": [
    "topic",
    "purpose",
    "implementation",
    "tools",
    "rules",
    "workflows"
  ],
  "additionalProperties": false,
  "$defs": {
    "__schema0": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "number"
        },
        {
          "type": "boolean"
        },
        {
          "type": "null"
        },
        {
          "type": "array",
          "items": {
            "$ref": "#/$defs/__schema0"
          }
        },
        {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {
            "$ref": "#/$defs/__schema0"
          }
        }
      ]
    },
    "__schema1": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "number"
        },
        {
          "type": "boolean"
        },
        {
          "type": "null"
        },
        {
          "type": "array",
          "items": {
            "$ref": "#/$defs/__schema1"
          }
        },
        {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {
            "$ref": "#/$defs/__schema1"
          }
        }
      ]
    },
    "__schema2": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "number"
        },
        {
          "type": "boolean"
        },
        {
          "type": "null"
        },
        {
          "type": "array",
          "items": {
            "$ref": "#/$defs/__schema2"
          }
        },
        {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {
            "$ref": "#/$defs/__schema2"
          }
        }
      ]
    },
    "__schema3": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "number"
        },
        {
          "type": "boolean"
        },
        {
          "type": "null"
        },
        {
          "type": "array",
          "items": {
            "$ref": "#/$defs/__schema3"
          }
        },
        {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {
            "$ref": "#/$defs/__schema3"
          }
        }
      ]
    },
    "__schema4": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "number"
        },
        {
          "type": "boolean"
        },
        {
          "type": "null"
        },
        {
          "type": "array",
          "items": {
            "$ref": "#/$defs/__schema4"
          }
        },
        {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {
            "$ref": "#/$defs/__schema4"
          }
        }
      ]
    },
    "__schema5": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "number"
        },
        {
          "type": "boolean"
        },
        {
          "type": "null"
        },
        {
          "type": "array",
          "items": {
            "$ref": "#/$defs/__schema5"
          }
        },
        {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {
            "$ref": "#/$defs/__schema5"
          }
        }
      ]
    },
    "__schema6": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "number"
        },
        {
          "type": "boolean"
        },
        {
          "type": "null"
        },
        {
          "type": "array",
          "items": {
            "$ref": "#/$defs/__schema6"
          }
        },
        {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {
            "$ref": "#/$defs/__schema6"
          }
        }
      ]
    },
    "__schema7": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "number"
        },
        {
          "type": "boolean"
        },
        {
          "type": "null"
        },
        {
          "type": "array",
          "items": {
            "$ref": "#/$defs/__schema7"
          }
        },
        {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {
            "$ref": "#/$defs/__schema7"
          }
        }
      ]
    },
    "__schema8": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "number"
        },
        {
          "type": "boolean"
        },
        {
          "type": "null"
        },
        {
          "type": "array",
          "items": {
            "$ref": "#/$defs/__schema8"
          }
        },
        {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {
            "$ref": "#/$defs/__schema8"
          }
        }
      ]
    },
    "__schema9": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "number"
        },
        {
          "type": "boolean"
        },
        {
          "type": "null"
        },
        {
          "type": "array",
          "items": {
            "$ref": "#/$defs/__schema9"
          }
        },
        {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {
            "$ref": "#/$defs/__schema9"
          }
        }
      ]
    }
  }
}

Revisar el trabajo pendiente

GET/api/v1/new

Consulta personas pendientes de primer contacto, respuesta, seguimiento o revisión de acciones, sin filtro temporal ni generar acciones. Agrupa por persona, conserva campañas y cobertura, y pagina con un snapshot estable de MongoDB.

REST: clave API o sesiónTool MCP get_newPermiso readSolo lecturaReintentos con la misma clave
ParámetroDescripción
campaign_idquery · string · opcionalAl menos 1 caracteres. Hasta 160 caracteres.
follow_up_daysquery · integer · opcionalPor defecto: 7. Mínimo: 1. Máximo: 365.
limitquery · integer · opcionalPor defecto: 25. Mínimo: 1. Máximo: 100.
cursorquery · string · opcionalAl menos 1 caracteres. Hasta 4000 caracteres.

Petición

curl -X GET "https://ai.zaly.app/api/v1/new" \
  -H "Authorization: Bearer $ZALY_API_KEY"
Respuesta
CampoTipo y descripción
as_ofstring · date-time
snapshot_expires_atstring · date-time
follow_up_daysintegerMínimo: -9007199254740991. Máximo: 9007199254740991.
itemsarray de object
returned_countintegerMínimo: 0. Máximo: 9007199254740991.
has_moreboolean
next_cursorstring | null
limitationsarray de string
Schemas completos de REST y MCP

Entrada MCP

{
  "type": "object",
  "properties": {
    "campaign_id": {
      "type": "string",
      "minLength": 1,
      "maxLength": 160
    },
    "follow_up_days": {
      "default": 7,
      "type": "integer",
      "minimum": 1,
      "maximum": 365
    },
    "limit": {
      "default": 25,
      "type": "integer",
      "minimum": 1,
      "maximum": 100
    },
    "cursor": {
      "type": "string",
      "minLength": 1,
      "maxLength": 4000
    }
  },
  "additionalProperties": false
}

Respuesta JSON

{
  "type": "object",
  "properties": {
    "as_of": {
      "type": "string",
      "format": "date-time",
      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
    },
    "snapshot_expires_at": {
      "type": "string",
      "format": "date-time",
      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
    },
    "follow_up_days": {
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991
    },
    "items": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "person_id": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160
          },
          "name": {
            "type": "string"
          },
          "pending_actions": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "action_id": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 160
                },
                "campaign_id": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 160
                },
                "account_id": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 160
                },
                "state": {
                  "type": "string",
                  "enum": [
                    "draft",
                    "approved",
                    "queued",
                    "sending",
                    "sent",
                    "uncertain",
                    "cancelled",
                    "failed"
                  ]
                },
                "kind": {
                  "type": "string"
                },
                "scheduled_at": {
                  "anyOf": [
                    {
                      "type": "string",
                      "format": "date-time",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "required": [
                "action_id",
                "campaign_id",
                "account_id",
                "state",
                "kind",
                "scheduled_at"
              ],
              "additionalProperties": false
            }
          },
          "reasons": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "kind": {
                  "type": "string",
                  "enum": [
                    "new",
                    "inbound",
                    "follow_up",
                    "actions"
                  ]
                },
                "category": {
                  "type": "string",
                  "const": "pending"
                },
                "campaign_id": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 160
                },
                "account_id": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 160
                },
                "occurred_at": {
                  "anyOf": [
                    {
                      "type": "string",
                      "format": "date-time",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "observed_at": {
                  "anyOf": [
                    {
                      "type": "string",
                      "format": "date-time",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "reference_id": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 160
                },
                "source": {
                  "type": "string"
                },
                "blockers": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              },
              "required": [
                "kind",
                "category",
                "campaign_id",
                "account_id",
                "occurred_at",
                "observed_at",
                "reference_id",
                "source",
                "blockers"
              ],
              "additionalProperties": false
            }
          },
          "contexts": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "campaign_id": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 160
                },
                "account_id": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 160
                },
                "email_account_id": {
                  "anyOf": [
                    {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 160
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "availability": {
                  "type": "string",
                  "enum": [
                    "available",
                    "processing",
                    "unavailable"
                  ]
                },
                "history": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "account_id": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 160
                      },
                      "channel": {
                        "type": "string",
                        "enum": [
                          "linkedin",
                          "email",
                          "unknown"
                        ]
                      },
                      "coverage": {
                        "type": "string",
                        "enum": [
                          "unknown",
                          "partial",
                          "complete"
                        ]
                      },
                      "last_synced_at": {
                        "anyOf": [
                          {
                            "type": "string",
                            "format": "date-time",
                            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    },
                    "required": [
                      "account_id",
                      "channel",
                      "coverage",
                      "last_synced_at"
                    ],
                    "additionalProperties": false
                  }
                },
                "blockers": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              },
              "required": [
                "campaign_id",
                "account_id",
                "email_account_id",
                "availability",
                "history",
                "blockers"
              ],
              "additionalProperties": false
            }
          }
        },
        "required": [
          "person_id",
          "name",
          "pending_actions",
          "reasons",
          "contexts"
        ],
        "additionalProperties": false
      }
    },
    "returned_count": {
      "type": "integer",
      "minimum": 0,
      "maximum": 9007199254740991
    },
    "has_more": {
      "type": "boolean"
    },
    "next_cursor": {
      "type": [
        "string",
        "null"
      ]
    },
    "limitations": {
      "type": "array",
      "items": {
        "type": "string"
      }
    }
  },
  "required": [
    "as_of",
    "snapshot_expires_at",
    "follow_up_days",
    "items",
    "returned_count",
    "has_more",
    "next_cursor",
    "limitations"
  ],
  "additionalProperties": false
}

Primeros pasos

Prepara y completa la configuración comercial.

Consultar la configuración inicial

GET/api/v1/onboarding

Consulta el progreso comercial compartido, requisitos reales y siguientes pasos. No inicia captura.

REST: clave API o sesiónTool MCP get_onboardingPermiso readSolo lecturaReintentos con la misma clave

Petición

curl -X GET "https://ai.zaly.app/api/v1/onboarding" \
  -H "Authorization: Bearer $ZALY_API_KEY"
Respuesta
CampoTipo y descripción
onboardingobject | null
readinessobject
next_stepsarray de string
Schemas completos de REST y MCP

Entrada MCP

{
  "type": "object",
  "properties": {},
  "additionalProperties": false
}

Respuesta JSON

{
  "type": "object",
  "properties": {
    "onboarding": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "brief": {
              "anyOf": [
                {
                  "type": "object",
                  "properties": {
                    "sources": {
                      "maxItems": 20,
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "source_ref": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 160
                          },
                          "label": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 120
                          },
                          "origin": {
                            "type": "string",
                            "enum": [
                              "document",
                              "user",
                              "assistant_proposal"
                            ]
                          }
                        },
                        "required": [
                          "source_ref",
                          "label",
                          "origin"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "facts": {
                      "maxItems": 100,
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "key": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 120
                          },
                          "value": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 6000
                          },
                          "source_refs": {
                            "maxItems": 20,
                            "type": "array",
                            "items": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 160
                            }
                          },
                          "confirmed": {
                            "type": "boolean"
                          }
                        },
                        "required": [
                          "key",
                          "value",
                          "source_refs",
                          "confirmed"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "open_questions": {
                      "maxItems": 50,
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "key": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 120
                          },
                          "question": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 6000
                          }
                        },
                        "required": [
                          "key",
                          "question"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "sources",
                    "facts",
                    "open_questions"
                  ],
                  "additionalProperties": false
                },
                {
                  "type": "null"
                }
              ]
            },
            "selection": {
              "anyOf": [
                {
                  "type": "object",
                  "properties": {
                    "campaign_id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 160
                    },
                    "signal_ids": {
                      "maxItems": 20,
                      "type": "array",
                      "items": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 160
                      }
                    }
                  },
                  "required": [
                    "campaign_id",
                    "signal_ids"
                  ],
                  "additionalProperties": false
                },
                {
                  "type": "null"
                }
              ]
            },
            "signal_proposals": {
              "maxItems": 20,
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "minLength": 2,
                    "maxLength": 120
                  },
                  "description": {
                    "anyOf": [
                      {
                        "type": "string",
                        "maxLength": 6000
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "kind": {
                    "type": "string",
                    "enum": [
                      "profile_visitors",
                      "received_invitations",
                      "followers",
                      "post_people",
                      "lead_magnet",
                      "watched_accounts",
                      "people_search",
                      "keyword_posts"
                    ]
                  },
                  "target": {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {},
                        "additionalProperties": false
                      },
                      {
                        "oneOf": [
                          {
                            "type": "object",
                            "properties": {
                              "scope": {
                                "type": "string",
                                "const": "self"
                              }
                            },
                            "required": [
                              "scope"
                            ],
                            "additionalProperties": false
                          },
                          {
                            "type": "object",
                            "properties": {
                              "scope": {
                                "type": "string",
                                "const": "profile"
                              },
                              "profile_url": {
                                "type": "string",
                                "maxLength": 2000,
                                "format": "uri"
                              }
                            },
                            "required": [
                              "scope",
                              "profile_url"
                            ],
                            "additionalProperties": false
                          },
                          {
                            "type": "object",
                            "properties": {
                              "scope": {
                                "type": "string",
                                "const": "company"
                              },
                              "company_url": {
                                "type": "string",
                                "maxLength": 2000,
                                "format": "uri"
                              }
                            },
                            "required": [
                              "scope",
                              "company_url"
                            ],
                            "additionalProperties": false
                          }
                        ]
                      },
                      {
                        "type": "object",
                        "properties": {
                          "post_url": {
                            "type": "string",
                            "maxLength": 2000,
                            "format": "uri"
                          }
                        },
                        "required": [
                          "post_url"
                        ],
                        "additionalProperties": false
                      },
                      {
                        "type": "object",
                        "properties": {
                          "urls": {
                            "minItems": 1,
                            "maxItems": 20,
                            "type": "array",
                            "items": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "maxLength": 2000,
                                  "format": "uri"
                                },
                                {
                                  "type": "string",
                                  "maxLength": 2000,
                                  "format": "uri"
                                }
                              ]
                            }
                          }
                        },
                        "required": [
                          "urls"
                        ],
                        "additionalProperties": false
                      },
                      {
                        "type": "object",
                        "properties": {
                          "queries": {
                            "minItems": 1,
                            "maxItems": 20,
                            "type": "array",
                            "items": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 300
                            }
                          }
                        },
                        "required": [
                          "queries"
                        ],
                        "additionalProperties": false
                      },
                      {
                        "type": "object",
                        "properties": {
                          "post_url": {
                            "type": "string",
                            "maxLength": 2000,
                            "format": "uri"
                          },
                          "recipient_member_id": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 200
                          },
                          "keywords": {
                            "minItems": 1,
                            "maxItems": 30,
                            "type": "array",
                            "items": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 100
                            }
                          },
                          "resource_url": {
                            "type": "string",
                            "maxLength": 2000,
                            "format": "uri"
                          },
                          "templates": {
                            "type": "object",
                            "properties": {
                              "dm": {
                                "minItems": 1,
                                "maxItems": 50,
                                "type": "array",
                                "items": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 6000
                                }
                              },
                              "confirmation": {
                                "minItems": 1,
                                "maxItems": 50,
                                "type": "array",
                                "items": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 3000
                                }
                              },
                              "connection_request": {
                                "minItems": 1,
                                "maxItems": 50,
                                "type": "array",
                                "items": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 3000
                                }
                              }
                            },
                            "required": [
                              "dm",
                              "confirmation",
                              "connection_request"
                            ],
                            "additionalProperties": false
                          },
                          "duration_days": {
                            "type": "integer",
                            "minimum": 1,
                            "maximum": 90
                          },
                          "inactivity_hours": {
                            "type": "integer",
                            "minimum": 1,
                            "maximum": 168
                          },
                          "filter_by_icp": {
                            "default": false,
                            "type": "boolean"
                          }
                        },
                        "required": [
                          "post_url",
                          "keywords",
                          "resource_url",
                          "templates",
                          "duration_days",
                          "inactivity_hours",
                          "filter_by_icp"
                        ],
                        "additionalProperties": false
                      }
                    ]
                  }
                },
                "required": [
                  "name",
                  "kind",
                  "target"
                ],
                "additionalProperties": false
              }
            },
            "tone": {
              "type": "object",
              "properties": {
                "status": {
                  "type": "string",
                  "enum": [
                    "pending",
                    "confirmed",
                    "deferred"
                  ]
                },
                "scope": {
                  "type": "string",
                  "enum": [
                    "campaign",
                    "organization"
                  ]
                },
                "preferences": {
                  "type": "object",
                  "properties": {
                    "formality": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 6000
                    },
                    "length": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 6000
                    },
                    "preferred_expressions": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 6000
                    },
                    "avoided_expressions": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 6000
                    },
                    "meeting_criteria": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 6000
                    }
                  },
                  "additionalProperties": false
                },
                "examples": {
                  "maxItems": 20,
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "purpose": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 120
                      },
                      "text": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 6000
                      }
                    },
                    "required": [
                      "purpose",
                      "text"
                    ],
                    "additionalProperties": false
                  }
                },
                "deferred_reason": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 6000
                }
              },
              "required": [
                "status",
                "scope",
                "preferences",
                "examples"
              ],
              "additionalProperties": false
            },
            "memory": {
              "type": "object",
              "properties": {
                "status": {
                  "type": "string",
                  "enum": [
                    "pending",
                    "saved",
                    "deferred",
                    "unavailable"
                  ]
                },
                "scope": {
                  "type": "string",
                  "enum": [
                    "campaign",
                    "organization"
                  ]
                },
                "destination_label": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 120
                },
                "files": {
                  "maxItems": 20,
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "source_ref": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 160
                      },
                      "label": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 120
                      }
                    },
                    "required": [
                      "source_ref",
                      "label"
                    ],
                    "additionalProperties": false
                  }
                },
                "deferred_reason": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 6000
                },
                "unavailable_reason": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 6000
                }
              },
              "required": [
                "status",
                "scope"
              ],
              "additionalProperties": false
            },
            "capture_decision": {
              "anyOf": [
                {
                  "type": "object",
                  "properties": {
                    "decision": {
                      "type": "string",
                      "enum": [
                        "confirmed",
                        "deferred"
                      ]
                    },
                    "proposal_indexes": {
                      "maxItems": 20,
                      "type": "array",
                      "items": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 19
                      }
                    },
                    "note": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 6000
                    },
                    "automatic_delivery_confirmed": {
                      "type": "boolean",
                      "const": true
                    },
                    "actor_user_id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 160
                    },
                    "decided_at": {
                      "type": "string",
                      "format": "date-time",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                    }
                  },
                  "required": [
                    "decision",
                    "proposal_indexes",
                    "note",
                    "actor_user_id",
                    "decided_at"
                  ],
                  "additionalProperties": false
                },
                {
                  "type": "null"
                }
              ]
            },
            "onboarding_id": {
              "type": "string",
              "minLength": 1,
              "maxLength": 160
            },
            "status": {
              "type": "string",
              "enum": [
                "in_progress",
                "completed"
              ]
            },
            "created_at": {
              "type": "string",
              "format": "date-time",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
            },
            "updated_at": {
              "type": "string",
              "format": "date-time",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
            },
            "completed_at": {
              "anyOf": [
                {
                  "type": "string",
                  "format": "date-time",
                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                },
                {
                  "type": "null"
                }
              ]
            }
          },
          "required": [
            "brief",
            "selection",
            "signal_proposals",
            "tone",
            "memory",
            "capture_decision",
            "onboarding_id",
            "status",
            "created_at",
            "updated_at",
            "completed_at"
          ],
          "additionalProperties": false
        },
        {
          "type": "null"
        }
      ]
    },
    "readiness": {
      "type": "object",
      "properties": {
        "ready_to_complete": {
          "type": "boolean"
        },
        "campaign_active": {
          "type": "boolean"
        },
        "service_valid": {
          "type": "boolean"
        },
        "icp_valid": {
          "type": "boolean"
        },
        "active_signal_count": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        },
        "blockers": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "code": {
                "type": "string"
              },
              "field": {
                "type": "string"
              },
              "message": {
                "type": "string"
              }
            },
            "required": [
              "code",
              "field",
              "message"
            ],
            "additionalProperties": false
          }
        }
      },
      "required": [
        "ready_to_complete",
        "campaign_active",
        "service_valid",
        "icp_valid",
        "active_signal_count",
        "blockers"
      ],
      "additionalProperties": false
    },
    "next_steps": {
      "type": "array",
      "items": {
        "type": "string"
      }
    }
  },
  "required": [
    "onboarding",
    "readiness",
    "next_steps"
  ],
  "additionalProperties": false
}

Actualizar la configuración inicial

PATCH/api/v1/onboarding

Guarda documentos resumidos, propuestas, selección, tono, memoria y decisión de captura. No crea señales.

REST: clave API o sesiónTool MCP update_onboardingPermiso writeReintentos con la misma clave
ParámetroDescripción
Idempotency-Keyheader · string · obligatorioAl menos 8 caracteres. Hasta 160 caracteres.
Originheader · "https://ai.zaly.app" · opcionalObligatoria en escrituras con cookie. No se requiere con Bearer.
briefbody · object · opcionalValor de este campo. Consulta el tipo, los límites y el esquema completo para preparar la petición.
selectionbody · object · opcionalValor de este campo. Consulta el tipo, los límites y el esquema completo para preparar la petición.
signal_proposalsbody · array de object · opcionalValor de este campo. Consulta el tipo, los límites y el esquema completo para preparar la petición.
tonebody · object · opcionalValor de este campo. Consulta el tipo, los límites y el esquema completo para preparar la petición.
memorybody · object · opcionalValor de este campo. Consulta el tipo, los límites y el esquema completo para preparar la petición.
capture_decisionbody · object · opcionalValor de este campo. Consulta el tipo, los límites y el esquema completo para preparar la petición.

Petición

curl -X PATCH "https://ai.zaly.app/api/v1/onboarding" \
  -H "Authorization: Bearer $ZALY_API_KEY" \
  -H "Idempotency-Key: $ZALY_IDEMPOTENCY_KEY" \
  -H "Content-Type: application/json" \
  --data @payload.json

Prepara payload.json con los campos del cuerpo. Sustituye los identificadores y conserva la clave al reintentar la misma intención.

Respuesta
CampoTipo y descripción
onboardingobject | null
readinessobject
next_stepsarray de string
Schemas completos de REST y MCP

Cuerpo REST

{
  "type": "object",
  "properties": {
    "brief": {
      "type": "object",
      "properties": {
        "sources": {
          "maxItems": 20,
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "source_ref": {
                "type": "string",
                "minLength": 1,
                "maxLength": 160
              },
              "label": {
                "type": "string",
                "minLength": 1,
                "maxLength": 120
              },
              "origin": {
                "type": "string",
                "enum": [
                  "document",
                  "user",
                  "assistant_proposal"
                ]
              }
            },
            "required": [
              "source_ref",
              "label",
              "origin"
            ],
            "additionalProperties": false
          }
        },
        "facts": {
          "maxItems": 100,
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "key": {
                "type": "string",
                "minLength": 1,
                "maxLength": 120
              },
              "value": {
                "type": "string",
                "minLength": 1,
                "maxLength": 6000
              },
              "source_refs": {
                "maxItems": 20,
                "type": "array",
                "items": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 160
                }
              },
              "confirmed": {
                "type": "boolean"
              }
            },
            "required": [
              "key",
              "value",
              "source_refs",
              "confirmed"
            ],
            "additionalProperties": false
          }
        },
        "open_questions": {
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "key": {
                "type": "string",
                "minLength": 1,
                "maxLength": 120
              },
              "question": {
                "type": "string",
                "minLength": 1,
                "maxLength": 6000
              }
            },
            "required": [
              "key",
              "question"
            ],
            "additionalProperties": false
          }
        }
      },
      "required": [
        "sources",
        "facts",
        "open_questions"
      ],
      "additionalProperties": false
    },
    "selection": {
      "type": "object",
      "properties": {
        "campaign_id": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "signal_ids": {
          "maxItems": 20,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160
          }
        }
      },
      "required": [
        "campaign_id",
        "signal_ids"
      ],
      "additionalProperties": false
    },
    "signal_proposals": {
      "maxItems": 20,
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "minLength": 2,
            "maxLength": 120
          },
          "description": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 6000
              },
              {
                "type": "null"
              }
            ]
          },
          "kind": {
            "type": "string",
            "enum": [
              "profile_visitors",
              "received_invitations",
              "followers",
              "post_people",
              "lead_magnet",
              "watched_accounts",
              "people_search",
              "keyword_posts"
            ]
          },
          "target": {
            "anyOf": [
              {
                "type": "object",
                "properties": {},
                "additionalProperties": false
              },
              {
                "oneOf": [
                  {
                    "type": "object",
                    "properties": {
                      "scope": {
                        "type": "string",
                        "const": "self"
                      }
                    },
                    "required": [
                      "scope"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "scope": {
                        "type": "string",
                        "const": "profile"
                      },
                      "profile_url": {
                        "type": "string",
                        "maxLength": 2000,
                        "format": "uri"
                      }
                    },
                    "required": [
                      "scope",
                      "profile_url"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "scope": {
                        "type": "string",
                        "const": "company"
                      },
                      "company_url": {
                        "type": "string",
                        "maxLength": 2000,
                        "format": "uri"
                      }
                    },
                    "required": [
                      "scope",
                      "company_url"
                    ],
                    "additionalProperties": false
                  }
                ]
              },
              {
                "type": "object",
                "properties": {
                  "post_url": {
                    "type": "string",
                    "maxLength": 2000,
                    "format": "uri"
                  }
                },
                "required": [
                  "post_url"
                ],
                "additionalProperties": false
              },
              {
                "type": "object",
                "properties": {
                  "urls": {
                    "minItems": 1,
                    "maxItems": 20,
                    "type": "array",
                    "items": {
                      "anyOf": [
                        {
                          "type": "string",
                          "maxLength": 2000,
                          "format": "uri"
                        },
                        {
                          "type": "string",
                          "maxLength": 2000,
                          "format": "uri"
                        }
                      ]
                    }
                  }
                },
                "required": [
                  "urls"
                ],
                "additionalProperties": false
              },
              {
                "type": "object",
                "properties": {
                  "queries": {
                    "minItems": 1,
                    "maxItems": 20,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 300
                    }
                  }
                },
                "required": [
                  "queries"
                ],
                "additionalProperties": false
              },
              {
                "type": "object",
                "properties": {
                  "post_url": {
                    "type": "string",
                    "maxLength": 2000,
                    "format": "uri"
                  },
                  "recipient_member_id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 200
                  },
                  "keywords": {
                    "minItems": 1,
                    "maxItems": 30,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 100
                    }
                  },
                  "resource_url": {
                    "type": "string",
                    "maxLength": 2000,
                    "format": "uri"
                  },
                  "templates": {
                    "type": "object",
                    "properties": {
                      "dm": {
                        "minItems": 1,
                        "maxItems": 50,
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 6000
                        }
                      },
                      "confirmation": {
                        "minItems": 1,
                        "maxItems": 50,
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 3000
                        }
                      },
                      "connection_request": {
                        "minItems": 1,
                        "maxItems": 50,
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 3000
                        }
                      }
                    },
                    "required": [
                      "dm",
                      "confirmation",
                      "connection_request"
                    ],
                    "additionalProperties": false
                  },
                  "duration_days": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 90
                  },
                  "inactivity_hours": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 168
                  },
                  "filter_by_icp": {
                    "default": false,
                    "type": "boolean"
                  }
                },
                "required": [
                  "post_url",
                  "keywords",
                  "resource_url",
                  "templates",
                  "duration_days",
                  "inactivity_hours"
                ],
                "additionalProperties": false
              }
            ]
          }
        },
        "required": [
          "name",
          "kind",
          "target"
        ],
        "additionalProperties": false
      }
    },
    "tone": {
      "type": "object",
      "properties": {
        "status": {
          "type": "string",
          "enum": [
            "pending",
            "confirmed",
            "deferred"
          ]
        },
        "scope": {
          "type": "string",
          "enum": [
            "campaign",
            "organization"
          ]
        },
        "preferences": {
          "type": "object",
          "properties": {
            "formality": {
              "type": "string",
              "minLength": 1,
              "maxLength": 6000
            },
            "length": {
              "type": "string",
              "minLength": 1,
              "maxLength": 6000
            },
            "preferred_expressions": {
              "type": "string",
              "minLength": 1,
              "maxLength": 6000
            },
            "avoided_expressions": {
              "type": "string",
              "minLength": 1,
              "maxLength": 6000
            },
            "meeting_criteria": {
              "type": "string",
              "minLength": 1,
              "maxLength": 6000
            }
          },
          "additionalProperties": false
        },
        "examples": {
          "maxItems": 20,
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "purpose": {
                "type": "string",
                "minLength": 1,
                "maxLength": 120
              },
              "text": {
                "type": "string",
                "minLength": 1,
                "maxLength": 6000
              }
            },
            "required": [
              "purpose",
              "text"
            ],
            "additionalProperties": false
          }
        },
        "deferred_reason": {
          "type": "string",
          "minLength": 1,
          "maxLength": 6000
        }
      },
      "required": [
        "status",
        "scope",
        "preferences",
        "examples"
      ],
      "additionalProperties": false
    },
    "memory": {
      "type": "object",
      "properties": {
        "status": {
          "type": "string",
          "enum": [
            "pending",
            "saved",
            "deferred",
            "unavailable"
          ]
        },
        "scope": {
          "type": "string",
          "enum": [
            "campaign",
            "organization"
          ]
        },
        "destination_label": {
          "type": "string",
          "minLength": 1,
          "maxLength": 120
        },
        "files": {
          "maxItems": 20,
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "source_ref": {
                "type": "string",
                "minLength": 1,
                "maxLength": 160
              },
              "label": {
                "type": "string",
                "minLength": 1,
                "maxLength": 120
              }
            },
            "required": [
              "source_ref",
              "label"
            ],
            "additionalProperties": false
          }
        },
        "deferred_reason": {
          "type": "string",
          "minLength": 1,
          "maxLength": 6000
        },
        "unavailable_reason": {
          "type": "string",
          "minLength": 1,
          "maxLength": 6000
        }
      },
      "required": [
        "status",
        "scope"
      ],
      "additionalProperties": false
    },
    "capture_decision": {
      "type": "object",
      "properties": {
        "decision": {
          "type": "string",
          "enum": [
            "confirmed",
            "deferred"
          ]
        },
        "proposal_indexes": {
          "maxItems": 20,
          "type": "array",
          "items": {
            "type": "integer",
            "minimum": 0,
            "maximum": 19
          }
        },
        "note": {
          "type": "string",
          "minLength": 1,
          "maxLength": 6000
        },
        "automatic_delivery_confirmed": {
          "type": "boolean",
          "const": true
        }
      },
      "required": [
        "decision",
        "proposal_indexes",
        "note"
      ],
      "additionalProperties": false
    }
  },
  "additionalProperties": false
}

Entrada MCP

{
  "type": "object",
  "properties": {
    "brief": {
      "type": "object",
      "properties": {
        "sources": {
          "maxItems": 20,
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "source_ref": {
                "type": "string",
                "minLength": 1,
                "maxLength": 160
              },
              "label": {
                "type": "string",
                "minLength": 1,
                "maxLength": 120
              },
              "origin": {
                "type": "string",
                "enum": [
                  "document",
                  "user",
                  "assistant_proposal"
                ]
              }
            },
            "required": [
              "source_ref",
              "label",
              "origin"
            ],
            "additionalProperties": false
          }
        },
        "facts": {
          "maxItems": 100,
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "key": {
                "type": "string",
                "minLength": 1,
                "maxLength": 120
              },
              "value": {
                "type": "string",
                "minLength": 1,
                "maxLength": 6000
              },
              "source_refs": {
                "maxItems": 20,
                "type": "array",
                "items": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 160
                }
              },
              "confirmed": {
                "type": "boolean"
              }
            },
            "required": [
              "key",
              "value",
              "source_refs",
              "confirmed"
            ],
            "additionalProperties": false
          }
        },
        "open_questions": {
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "key": {
                "type": "string",
                "minLength": 1,
                "maxLength": 120
              },
              "question": {
                "type": "string",
                "minLength": 1,
                "maxLength": 6000
              }
            },
            "required": [
              "key",
              "question"
            ],
            "additionalProperties": false
          }
        }
      },
      "required": [
        "sources",
        "facts",
        "open_questions"
      ],
      "additionalProperties": false
    },
    "selection": {
      "type": "object",
      "properties": {
        "campaign_id": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "signal_ids": {
          "maxItems": 20,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160
          }
        }
      },
      "required": [
        "campaign_id",
        "signal_ids"
      ],
      "additionalProperties": false
    },
    "signal_proposals": {
      "maxItems": 20,
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "minLength": 2,
            "maxLength": 120
          },
          "description": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 6000
              },
              {
                "type": "null"
              }
            ]
          },
          "kind": {
            "type": "string",
            "enum": [
              "profile_visitors",
              "received_invitations",
              "followers",
              "post_people",
              "lead_magnet",
              "watched_accounts",
              "people_search",
              "keyword_posts"
            ]
          },
          "target": {
            "anyOf": [
              {
                "type": "object",
                "properties": {},
                "additionalProperties": false
              },
              {
                "oneOf": [
                  {
                    "type": "object",
                    "properties": {
                      "scope": {
                        "type": "string",
                        "const": "self"
                      }
                    },
                    "required": [
                      "scope"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "scope": {
                        "type": "string",
                        "const": "profile"
                      },
                      "profile_url": {
                        "type": "string",
                        "maxLength": 2000,
                        "format": "uri"
                      }
                    },
                    "required": [
                      "scope",
                      "profile_url"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "scope": {
                        "type": "string",
                        "const": "company"
                      },
                      "company_url": {
                        "type": "string",
                        "maxLength": 2000,
                        "format": "uri"
                      }
                    },
                    "required": [
                      "scope",
                      "company_url"
                    ],
                    "additionalProperties": false
                  }
                ]
              },
              {
                "type": "object",
                "properties": {
                  "post_url": {
                    "type": "string",
                    "maxLength": 2000,
                    "format": "uri"
                  }
                },
                "required": [
                  "post_url"
                ],
                "additionalProperties": false
              },
              {
                "type": "object",
                "properties": {
                  "urls": {
                    "minItems": 1,
                    "maxItems": 20,
                    "type": "array",
                    "items": {
                      "anyOf": [
                        {
                          "type": "string",
                          "maxLength": 2000,
                          "format": "uri"
                        },
                        {
                          "type": "string",
                          "maxLength": 2000,
                          "format": "uri"
                        }
                      ]
                    }
                  }
                },
                "required": [
                  "urls"
                ],
                "additionalProperties": false
              },
              {
                "type": "object",
                "properties": {
                  "queries": {
                    "minItems": 1,
                    "maxItems": 20,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 300
                    }
                  }
                },
                "required": [
                  "queries"
                ],
                "additionalProperties": false
              },
              {
                "type": "object",
                "properties": {
                  "post_url": {
                    "type": "string",
                    "maxLength": 2000,
                    "format": "uri"
                  },
                  "recipient_member_id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 200
                  },
                  "keywords": {
                    "minItems": 1,
                    "maxItems": 30,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 100
                    }
                  },
                  "resource_url": {
                    "type": "string",
                    "maxLength": 2000,
                    "format": "uri"
                  },
                  "templates": {
                    "type": "object",
                    "properties": {
                      "dm": {
                        "minItems": 1,
                        "maxItems": 50,
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 6000
                        }
                      },
                      "confirmation": {
                        "minItems": 1,
                        "maxItems": 50,
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 3000
                        }
                      },
                      "connection_request": {
                        "minItems": 1,
                        "maxItems": 50,
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 3000
                        }
                      }
                    },
                    "required": [
                      "dm",
                      "confirmation",
                      "connection_request"
                    ],
                    "additionalProperties": false
                  },
                  "duration_days": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 90
                  },
                  "inactivity_hours": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 168
                  },
                  "filter_by_icp": {
                    "default": false,
                    "type": "boolean"
                  }
                },
                "required": [
                  "post_url",
                  "keywords",
                  "resource_url",
                  "templates",
                  "duration_days",
                  "inactivity_hours"
                ],
                "additionalProperties": false
              }
            ]
          }
        },
        "required": [
          "name",
          "kind",
          "target"
        ],
        "additionalProperties": false
      }
    },
    "tone": {
      "type": "object",
      "properties": {
        "status": {
          "type": "string",
          "enum": [
            "pending",
            "confirmed",
            "deferred"
          ]
        },
        "scope": {
          "type": "string",
          "enum": [
            "campaign",
            "organization"
          ]
        },
        "preferences": {
          "type": "object",
          "properties": {
            "formality": {
              "type": "string",
              "minLength": 1,
              "maxLength": 6000
            },
            "length": {
              "type": "string",
              "minLength": 1,
              "maxLength": 6000
            },
            "preferred_expressions": {
              "type": "string",
              "minLength": 1,
              "maxLength": 6000
            },
            "avoided_expressions": {
              "type": "string",
              "minLength": 1,
              "maxLength": 6000
            },
            "meeting_criteria": {
              "type": "string",
              "minLength": 1,
              "maxLength": 6000
            }
          },
          "additionalProperties": false
        },
        "examples": {
          "maxItems": 20,
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "purpose": {
                "type": "string",
                "minLength": 1,
                "maxLength": 120
              },
              "text": {
                "type": "string",
                "minLength": 1,
                "maxLength": 6000
              }
            },
            "required": [
              "purpose",
              "text"
            ],
            "additionalProperties": false
          }
        },
        "deferred_reason": {
          "type": "string",
          "minLength": 1,
          "maxLength": 6000
        }
      },
      "required": [
        "status",
        "scope",
        "preferences",
        "examples"
      ],
      "additionalProperties": false
    },
    "memory": {
      "type": "object",
      "properties": {
        "status": {
          "type": "string",
          "enum": [
            "pending",
            "saved",
            "deferred",
            "unavailable"
          ]
        },
        "scope": {
          "type": "string",
          "enum": [
            "campaign",
            "organization"
          ]
        },
        "destination_label": {
          "type": "string",
          "minLength": 1,
          "maxLength": 120
        },
        "files": {
          "maxItems": 20,
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "source_ref": {
                "type": "string",
                "minLength": 1,
                "maxLength": 160
              },
              "label": {
                "type": "string",
                "minLength": 1,
                "maxLength": 120
              }
            },
            "required": [
              "source_ref",
              "label"
            ],
            "additionalProperties": false
          }
        },
        "deferred_reason": {
          "type": "string",
          "minLength": 1,
          "maxLength": 6000
        },
        "unavailable_reason": {
          "type": "string",
          "minLength": 1,
          "maxLength": 6000
        }
      },
      "required": [
        "status",
        "scope"
      ],
      "additionalProperties": false
    },
    "capture_decision": {
      "type": "object",
      "properties": {
        "decision": {
          "type": "string",
          "enum": [
            "confirmed",
            "deferred"
          ]
        },
        "proposal_indexes": {
          "maxItems": 20,
          "type": "array",
          "items": {
            "type": "integer",
            "minimum": 0,
            "maximum": 19
          }
        },
        "note": {
          "type": "string",
          "minLength": 1,
          "maxLength": 6000
        },
        "automatic_delivery_confirmed": {
          "type": "boolean",
          "const": true
        }
      },
      "required": [
        "decision",
        "proposal_indexes",
        "note"
      ],
      "additionalProperties": false
    },
    "idempotency_key": {
      "type": "string",
      "minLength": 8,
      "maxLength": 160
    }
  },
  "required": [
    "idempotency_key"
  ],
  "additionalProperties": false
}

Respuesta JSON

{
  "type": "object",
  "properties": {
    "onboarding": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "brief": {
              "anyOf": [
                {
                  "type": "object",
                  "properties": {
                    "sources": {
                      "maxItems": 20,
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "source_ref": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 160
                          },
                          "label": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 120
                          },
                          "origin": {
                            "type": "string",
                            "enum": [
                              "document",
                              "user",
                              "assistant_proposal"
                            ]
                          }
                        },
                        "required": [
                          "source_ref",
                          "label",
                          "origin"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "facts": {
                      "maxItems": 100,
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "key": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 120
                          },
                          "value": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 6000
                          },
                          "source_refs": {
                            "maxItems": 20,
                            "type": "array",
                            "items": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 160
                            }
                          },
                          "confirmed": {
                            "type": "boolean"
                          }
                        },
                        "required": [
                          "key",
                          "value",
                          "source_refs",
                          "confirmed"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "open_questions": {
                      "maxItems": 50,
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "key": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 120
                          },
                          "question": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 6000
                          }
                        },
                        "required": [
                          "key",
                          "question"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "sources",
                    "facts",
                    "open_questions"
                  ],
                  "additionalProperties": false
                },
                {
                  "type": "null"
                }
              ]
            },
            "selection": {
              "anyOf": [
                {
                  "type": "object",
                  "properties": {
                    "campaign_id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 160
                    },
                    "signal_ids": {
                      "maxItems": 20,
                      "type": "array",
                      "items": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 160
                      }
                    }
                  },
                  "required": [
                    "campaign_id",
                    "signal_ids"
                  ],
                  "additionalProperties": false
                },
                {
                  "type": "null"
                }
              ]
            },
            "signal_proposals": {
              "maxItems": 20,
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "minLength": 2,
                    "maxLength": 120
                  },
                  "description": {
                    "anyOf": [
                      {
                        "type": "string",
                        "maxLength": 6000
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "kind": {
                    "type": "string",
                    "enum": [
                      "profile_visitors",
                      "received_invitations",
                      "followers",
                      "post_people",
                      "lead_magnet",
                      "watched_accounts",
                      "people_search",
                      "keyword_posts"
                    ]
                  },
                  "target": {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {},
                        "additionalProperties": false
                      },
                      {
                        "oneOf": [
                          {
                            "type": "object",
                            "properties": {
                              "scope": {
                                "type": "string",
                                "const": "self"
                              }
                            },
                            "required": [
                              "scope"
                            ],
                            "additionalProperties": false
                          },
                          {
                            "type": "object",
                            "properties": {
                              "scope": {
                                "type": "string",
                                "const": "profile"
                              },
                              "profile_url": {
                                "type": "string",
                                "maxLength": 2000,
                                "format": "uri"
                              }
                            },
                            "required": [
                              "scope",
                              "profile_url"
                            ],
                            "additionalProperties": false
                          },
                          {
                            "type": "object",
                            "properties": {
                              "scope": {
                                "type": "string",
                                "const": "company"
                              },
                              "company_url": {
                                "type": "string",
                                "maxLength": 2000,
                                "format": "uri"
                              }
                            },
                            "required": [
                              "scope",
                              "company_url"
                            ],
                            "additionalProperties": false
                          }
                        ]
                      },
                      {
                        "type": "object",
                        "properties": {
                          "post_url": {
                            "type": "string",
                            "maxLength": 2000,
                            "format": "uri"
                          }
                        },
                        "required": [
                          "post_url"
                        ],
                        "additionalProperties": false
                      },
                      {
                        "type": "object",
                        "properties": {
                          "urls": {
                            "minItems": 1,
                            "maxItems": 20,
                            "type": "array",
                            "items": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "maxLength": 2000,
                                  "format": "uri"
                                },
                                {
                                  "type": "string",
                                  "maxLength": 2000,
                                  "format": "uri"
                                }
                              ]
                            }
                          }
                        },
                        "required": [
                          "urls"
                        ],
                        "additionalProperties": false
                      },
                      {
                        "type": "object",
                        "properties": {
                          "queries": {
                            "minItems": 1,
                            "maxItems": 20,
                            "type": "array",
                            "items": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 300
                            }
                          }
                        },
                        "required": [
                          "queries"
                        ],
                        "additionalProperties": false
                      },
                      {
                        "type": "object",
                        "properties": {
                          "post_url": {
                            "type": "string",
                            "maxLength": 2000,
                            "format": "uri"
                          },
                          "recipient_member_id": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 200
                          },
                          "keywords": {
                            "minItems": 1,
                            "maxItems": 30,
                            "type": "array",
                            "items": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 100
                            }
                          },
                          "resource_url": {
                            "type": "string",
                            "maxLength": 2000,
                            "format": "uri"
                          },
                          "templates": {
                            "type": "object",
                            "properties": {
                              "dm": {
                                "minItems": 1,
                                "maxItems": 50,
                                "type": "array",
                                "items": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 6000
                                }
                              },
                              "confirmation": {
                                "minItems": 1,
                                "maxItems": 50,
                                "type": "array",
                                "items": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 3000
                                }
                              },
                              "connection_request": {
                                "minItems": 1,
                                "maxItems": 50,
                                "type": "array",
                                "items": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 3000
                                }
                              }
                            },
                            "required": [
                              "dm",
                              "confirmation",
                              "connection_request"
                            ],
                            "additionalProperties": false
                          },
                          "duration_days": {
                            "type": "integer",
                            "minimum": 1,
                            "maximum": 90
                          },
                          "inactivity_hours": {
                            "type": "integer",
                            "minimum": 1,
                            "maximum": 168
                          },
                          "filter_by_icp": {
                            "default": false,
                            "type": "boolean"
                          }
                        },
                        "required": [
                          "post_url",
                          "keywords",
                          "resource_url",
                          "templates",
                          "duration_days",
                          "inactivity_hours",
                          "filter_by_icp"
                        ],
                        "additionalProperties": false
                      }
                    ]
                  }
                },
                "required": [
                  "name",
                  "kind",
                  "target"
                ],
                "additionalProperties": false
              }
            },
            "tone": {
              "type": "object",
              "properties": {
                "status": {
                  "type": "string",
                  "enum": [
                    "pending",
                    "confirmed",
                    "deferred"
                  ]
                },
                "scope": {
                  "type": "string",
                  "enum": [
                    "campaign",
                    "organization"
                  ]
                },
                "preferences": {
                  "type": "object",
                  "properties": {
                    "formality": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 6000
                    },
                    "length": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 6000
                    },
                    "preferred_expressions": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 6000
                    },
                    "avoided_expressions": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 6000
                    },
                    "meeting_criteria": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 6000
                    }
                  },
                  "additionalProperties": false
                },
                "examples": {
                  "maxItems": 20,
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "purpose": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 120
                      },
                      "text": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 6000
                      }
                    },
                    "required": [
                      "purpose",
                      "text"
                    ],
                    "additionalProperties": false
                  }
                },
                "deferred_reason": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 6000
                }
              },
              "required": [
                "status",
                "scope",
                "preferences",
                "examples"
              ],
              "additionalProperties": false
            },
            "memory": {
              "type": "object",
              "properties": {
                "status": {
                  "type": "string",
                  "enum": [
                    "pending",
                    "saved",
                    "deferred",
                    "unavailable"
                  ]
                },
                "scope": {
                  "type": "string",
                  "enum": [
                    "campaign",
                    "organization"
                  ]
                },
                "destination_label": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 120
                },
                "files": {
                  "maxItems": 20,
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "source_ref": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 160
                      },
                      "label": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 120
                      }
                    },
                    "required": [
                      "source_ref",
                      "label"
                    ],
                    "additionalProperties": false
                  }
                },
                "deferred_reason": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 6000
                },
                "unavailable_reason": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 6000
                }
              },
              "required": [
                "status",
                "scope"
              ],
              "additionalProperties": false
            },
            "capture_decision": {
              "anyOf": [
                {
                  "type": "object",
                  "properties": {
                    "decision": {
                      "type": "string",
                      "enum": [
                        "confirmed",
                        "deferred"
                      ]
                    },
                    "proposal_indexes": {
                      "maxItems": 20,
                      "type": "array",
                      "items": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 19
                      }
                    },
                    "note": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 6000
                    },
                    "automatic_delivery_confirmed": {
                      "type": "boolean",
                      "const": true
                    },
                    "actor_user_id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 160
                    },
                    "decided_at": {
                      "type": "string",
                      "format": "date-time",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                    }
                  },
                  "required": [
                    "decision",
                    "proposal_indexes",
                    "note",
                    "actor_user_id",
                    "decided_at"
                  ],
                  "additionalProperties": false
                },
                {
                  "type": "null"
                }
              ]
            },
            "onboarding_id": {
              "type": "string",
              "minLength": 1,
              "maxLength": 160
            },
            "status": {
              "type": "string",
              "enum": [
                "in_progress",
                "completed"
              ]
            },
            "created_at": {
              "type": "string",
              "format": "date-time",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
            },
            "updated_at": {
              "type": "string",
              "format": "date-time",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
            },
            "completed_at": {
              "anyOf": [
                {
                  "type": "string",
                  "format": "date-time",
                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                },
                {
                  "type": "null"
                }
              ]
            }
          },
          "required": [
            "brief",
            "selection",
            "signal_proposals",
            "tone",
            "memory",
            "capture_decision",
            "onboarding_id",
            "status",
            "created_at",
            "updated_at",
            "completed_at"
          ],
          "additionalProperties": false
        },
        {
          "type": "null"
        }
      ]
    },
    "readiness": {
      "type": "object",
      "properties": {
        "ready_to_complete": {
          "type": "boolean"
        },
        "campaign_active": {
          "type": "boolean"
        },
        "service_valid": {
          "type": "boolean"
        },
        "icp_valid": {
          "type": "boolean"
        },
        "active_signal_count": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        },
        "blockers": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "code": {
                "type": "string"
              },
              "field": {
                "type": "string"
              },
              "message": {
                "type": "string"
              }
            },
            "required": [
              "code",
              "field",
              "message"
            ],
            "additionalProperties": false
          }
        }
      },
      "required": [
        "ready_to_complete",
        "campaign_active",
        "service_valid",
        "icp_valid",
        "active_signal_count",
        "blockers"
      ],
      "additionalProperties": false
    },
    "next_steps": {
      "type": "array",
      "items": {
        "type": "string"
      }
    }
  },
  "required": [
    "onboarding",
    "readiness",
    "next_steps"
  ],
  "additionalProperties": false
}

Completar la configuración inicial

POST/api/v1/onboarding/complete

Comprueba campaña activa con servicio, ICP y señal activa asociada y registra el cierre. No inicia procesos.

REST: clave API o sesiónTool MCP complete_onboardingPermiso writeReintentos con la misma clave
ParámetroDescripción
Idempotency-Keyheader · string · obligatorioAl menos 8 caracteres. Hasta 160 caracteres.
Originheader · "https://ai.zaly.app" · opcionalObligatoria en escrituras con cookie. No se requiere con Bearer.

Petición

curl -X POST "https://ai.zaly.app/api/v1/onboarding/complete" \
  -H "Authorization: Bearer $ZALY_API_KEY" \
  -H "Idempotency-Key: $ZALY_IDEMPOTENCY_KEY" \
  -H "Content-Type: application/json" \
  --data @payload.json

Prepara payload.json con los campos del cuerpo. Sustituye los identificadores y conserva la clave al reintentar la misma intención.

Respuesta
CampoTipo y descripción
onboardingobject | null
readinessobject
next_stepsarray de string
effectsobject
Schemas completos de REST y MCP

Cuerpo REST

{
  "type": "object",
  "properties": {},
  "additionalProperties": false
}

Entrada MCP

{
  "type": "object",
  "properties": {
    "idempotency_key": {
      "type": "string",
      "minLength": 8,
      "maxLength": 160
    }
  },
  "required": [
    "idempotency_key"
  ],
  "additionalProperties": false
}

Respuesta JSON

{
  "type": "object",
  "properties": {
    "onboarding": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "brief": {
              "anyOf": [
                {
                  "type": "object",
                  "properties": {
                    "sources": {
                      "maxItems": 20,
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "source_ref": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 160
                          },
                          "label": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 120
                          },
                          "origin": {
                            "type": "string",
                            "enum": [
                              "document",
                              "user",
                              "assistant_proposal"
                            ]
                          }
                        },
                        "required": [
                          "source_ref",
                          "label",
                          "origin"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "facts": {
                      "maxItems": 100,
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "key": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 120
                          },
                          "value": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 6000
                          },
                          "source_refs": {
                            "maxItems": 20,
                            "type": "array",
                            "items": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 160
                            }
                          },
                          "confirmed": {
                            "type": "boolean"
                          }
                        },
                        "required": [
                          "key",
                          "value",
                          "source_refs",
                          "confirmed"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "open_questions": {
                      "maxItems": 50,
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "key": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 120
                          },
                          "question": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 6000
                          }
                        },
                        "required": [
                          "key",
                          "question"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "sources",
                    "facts",
                    "open_questions"
                  ],
                  "additionalProperties": false
                },
                {
                  "type": "null"
                }
              ]
            },
            "selection": {
              "anyOf": [
                {
                  "type": "object",
                  "properties": {
                    "campaign_id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 160
                    },
                    "signal_ids": {
                      "maxItems": 20,
                      "type": "array",
                      "items": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 160
                      }
                    }
                  },
                  "required": [
                    "campaign_id",
                    "signal_ids"
                  ],
                  "additionalProperties": false
                },
                {
                  "type": "null"
                }
              ]
            },
            "signal_proposals": {
              "maxItems": 20,
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "minLength": 2,
                    "maxLength": 120
                  },
                  "description": {
                    "anyOf": [
                      {
                        "type": "string",
                        "maxLength": 6000
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "kind": {
                    "type": "string",
                    "enum": [
                      "profile_visitors",
                      "received_invitations",
                      "followers",
                      "post_people",
                      "lead_magnet",
                      "watched_accounts",
                      "people_search",
                      "keyword_posts"
                    ]
                  },
                  "target": {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {},
                        "additionalProperties": false
                      },
                      {
                        "oneOf": [
                          {
                            "type": "object",
                            "properties": {
                              "scope": {
                                "type": "string",
                                "const": "self"
                              }
                            },
                            "required": [
                              "scope"
                            ],
                            "additionalProperties": false
                          },
                          {
                            "type": "object",
                            "properties": {
                              "scope": {
                                "type": "string",
                                "const": "profile"
                              },
                              "profile_url": {
                                "type": "string",
                                "maxLength": 2000,
                                "format": "uri"
                              }
                            },
                            "required": [
                              "scope",
                              "profile_url"
                            ],
                            "additionalProperties": false
                          },
                          {
                            "type": "object",
                            "properties": {
                              "scope": {
                                "type": "string",
                                "const": "company"
                              },
                              "company_url": {
                                "type": "string",
                                "maxLength": 2000,
                                "format": "uri"
                              }
                            },
                            "required": [
                              "scope",
                              "company_url"
                            ],
                            "additionalProperties": false
                          }
                        ]
                      },
                      {
                        "type": "object",
                        "properties": {
                          "post_url": {
                            "type": "string",
                            "maxLength": 2000,
                            "format": "uri"
                          }
                        },
                        "required": [
                          "post_url"
                        ],
                        "additionalProperties": false
                      },
                      {
                        "type": "object",
                        "properties": {
                          "urls": {
                            "minItems": 1,
                            "maxItems": 20,
                            "type": "array",
                            "items": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "maxLength": 2000,
                                  "format": "uri"
                                },
                                {
                                  "type": "string",
                                  "maxLength": 2000,
                                  "format": "uri"
                                }
                              ]
                            }
                          }
                        },
                        "required": [
                          "urls"
                        ],
                        "additionalProperties": false
                      },
                      {
                        "type": "object",
                        "properties": {
                          "queries": {
                            "minItems": 1,
                            "maxItems": 20,
                            "type": "array",
                            "items": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 300
                            }
                          }
                        },
                        "required": [
                          "queries"
                        ],
                        "additionalProperties": false
                      },
                      {
                        "type": "object",
                        "properties": {
                          "post_url": {
                            "type": "string",
                            "maxLength": 2000,
                            "format": "uri"
                          },
                          "recipient_member_id": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 200
                          },
                          "keywords": {
                            "minItems": 1,
                            "maxItems": 30,
                            "type": "array",
                            "items": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 100
                            }
                          },
                          "resource_url": {
                            "type": "string",
                            "maxLength": 2000,
                            "format": "uri"
                          },
                          "templates": {
                            "type": "object",
                            "properties": {
                              "dm": {
                                "minItems": 1,
                                "maxItems": 50,
                                "type": "array",
                                "items": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 6000
                                }
                              },
                              "confirmation": {
                                "minItems": 1,
                                "maxItems": 50,
                                "type": "array",
                                "items": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 3000
                                }
                              },
                              "connection_request": {
                                "minItems": 1,
                                "maxItems": 50,
                                "type": "array",
                                "items": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 3000
                                }
                              }
                            },
                            "required": [
                              "dm",
                              "confirmation",
                              "connection_request"
                            ],
                            "additionalProperties": false
                          },
                          "duration_days": {
                            "type": "integer",
                            "minimum": 1,
                            "maximum": 90
                          },
                          "inactivity_hours": {
                            "type": "integer",
                            "minimum": 1,
                            "maximum": 168
                          },
                          "filter_by_icp": {
                            "default": false,
                            "type": "boolean"
                          }
                        },
                        "required": [
                          "post_url",
                          "keywords",
                          "resource_url",
                          "templates",
                          "duration_days",
                          "inactivity_hours",
                          "filter_by_icp"
                        ],
                        "additionalProperties": false
                      }
                    ]
                  }
                },
                "required": [
                  "name",
                  "kind",
                  "target"
                ],
                "additionalProperties": false
              }
            },
            "tone": {
              "type": "object",
              "properties": {
                "status": {
                  "type": "string",
                  "enum": [
                    "pending",
                    "confirmed",
                    "deferred"
                  ]
                },
                "scope": {
                  "type": "string",
                  "enum": [
                    "campaign",
                    "organization"
                  ]
                },
                "preferences": {
                  "type": "object",
                  "properties": {
                    "formality": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 6000
                    },
                    "length": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 6000
                    },
                    "preferred_expressions": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 6000
                    },
                    "avoided_expressions": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 6000
                    },
                    "meeting_criteria": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 6000
                    }
                  },
                  "additionalProperties": false
                },
                "examples": {
                  "maxItems": 20,
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "purpose": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 120
                      },
                      "text": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 6000
                      }
                    },
                    "required": [
                      "purpose",
                      "text"
                    ],
                    "additionalProperties": false
                  }
                },
                "deferred_reason": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 6000
                }
              },
              "required": [
                "status",
                "scope",
                "preferences",
                "examples"
              ],
              "additionalProperties": false
            },
            "memory": {
              "type": "object",
              "properties": {
                "status": {
                  "type": "string",
                  "enum": [
                    "pending",
                    "saved",
                    "deferred",
                    "unavailable"
                  ]
                },
                "scope": {
                  "type": "string",
                  "enum": [
                    "campaign",
                    "organization"
                  ]
                },
                "destination_label": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 120
                },
                "files": {
                  "maxItems": 20,
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "source_ref": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 160
                      },
                      "label": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 120
                      }
                    },
                    "required": [
                      "source_ref",
                      "label"
                    ],
                    "additionalProperties": false
                  }
                },
                "deferred_reason": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 6000
                },
                "unavailable_reason": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 6000
                }
              },
              "required": [
                "status",
                "scope"
              ],
              "additionalProperties": false
            },
            "capture_decision": {
              "anyOf": [
                {
                  "type": "object",
                  "properties": {
                    "decision": {
                      "type": "string",
                      "enum": [
                        "confirmed",
                        "deferred"
                      ]
                    },
                    "proposal_indexes": {
                      "maxItems": 20,
                      "type": "array",
                      "items": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 19
                      }
                    },
                    "note": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 6000
                    },
                    "automatic_delivery_confirmed": {
                      "type": "boolean",
                      "const": true
                    },
                    "actor_user_id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 160
                    },
                    "decided_at": {
                      "type": "string",
                      "format": "date-time",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                    }
                  },
                  "required": [
                    "decision",
                    "proposal_indexes",
                    "note",
                    "actor_user_id",
                    "decided_at"
                  ],
                  "additionalProperties": false
                },
                {
                  "type": "null"
                }
              ]
            },
            "onboarding_id": {
              "type": "string",
              "minLength": 1,
              "maxLength": 160
            },
            "status": {
              "type": "string",
              "enum": [
                "in_progress",
                "completed"
              ]
            },
            "created_at": {
              "type": "string",
              "format": "date-time",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
            },
            "updated_at": {
              "type": "string",
              "format": "date-time",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
            },
            "completed_at": {
              "anyOf": [
                {
                  "type": "string",
                  "format": "date-time",
                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                },
                {
                  "type": "null"
                }
              ]
            }
          },
          "required": [
            "brief",
            "selection",
            "signal_proposals",
            "tone",
            "memory",
            "capture_decision",
            "onboarding_id",
            "status",
            "created_at",
            "updated_at",
            "completed_at"
          ],
          "additionalProperties": false
        },
        {
          "type": "null"
        }
      ]
    },
    "readiness": {
      "type": "object",
      "properties": {
        "ready_to_complete": {
          "type": "boolean"
        },
        "campaign_active": {
          "type": "boolean"
        },
        "service_valid": {
          "type": "boolean"
        },
        "icp_valid": {
          "type": "boolean"
        },
        "active_signal_count": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        },
        "blockers": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "code": {
                "type": "string"
              },
              "field": {
                "type": "string"
              },
              "message": {
                "type": "string"
              }
            },
            "required": [
              "code",
              "field",
              "message"
            ],
            "additionalProperties": false
          }
        }
      },
      "required": [
        "ready_to_complete",
        "campaign_active",
        "service_valid",
        "icp_valid",
        "active_signal_count",
        "blockers"
      ],
      "additionalProperties": false
    },
    "next_steps": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "effects": {
      "type": "object",
      "properties": {
        "captures_started": {
          "type": "number",
          "const": 0
        },
        "messages_approved": {
          "type": "number",
          "const": 0
        }
      },
      "required": [
        "captures_started",
        "messages_approved"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "onboarding",
    "readiness",
    "next_steps",
    "effects"
  ],
  "additionalProperties": false
}

Equipo

Miembros e invitaciones de tu organización.

Listar miembros

GET/api/v1/organization/members

list organization members

REST: clave API o sesiónTool MCP list_organization_membersPermiso readSolo lecturaReintentos con la misma clave
ParámetroDescripción
limitquery · integer · opcionalPor defecto: 25. Mínimo: 1. Máximo: 50.
cursorquery · string · opcionalAl menos 1 caracteres. Hasta 160 caracteres.

Petición

curl -X GET "https://ai.zaly.app/api/v1/organization/members" \
  -H "Authorization: Bearer $ZALY_API_KEY"
Respuesta
CampoTipo y descripción
itemsarray de object
next_cursorstring | null
Schemas completos de REST y MCP

Entrada MCP

{
  "type": "object",
  "properties": {
    "limit": {
      "default": 25,
      "type": "integer",
      "minimum": 1,
      "maximum": 50
    },
    "cursor": {
      "type": "string",
      "minLength": 1,
      "maxLength": 160
    }
  }
}

Respuesta JSON

{
  "type": "object",
  "properties": {
    "items": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "member_id": {
            "type": "string"
          },
          "user_id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "email": {
            "type": "string"
          },
          "role": {
            "type": "string",
            "const": "member"
          },
          "is_self": {
            "type": "boolean"
          }
        },
        "required": [
          "member_id",
          "user_id",
          "name",
          "email",
          "role",
          "is_self"
        ],
        "additionalProperties": false
      }
    },
    "next_cursor": {
      "type": [
        "string",
        "null"
      ]
    }
  },
  "required": [
    "items",
    "next_cursor"
  ],
  "additionalProperties": false
}

Listar invitaciones

GET/api/v1/organization/invitations

list organization invitations

REST: clave API o sesiónTool MCP list_organization_invitationsPermiso readSolo lecturaReintentos con la misma clave
ParámetroDescripción
limitquery · integer · opcionalPor defecto: 25. Mínimo: 1. Máximo: 50.
cursorquery · string · opcionalAl menos 1 caracteres. Hasta 160 caracteres.

Petición

curl -X GET "https://ai.zaly.app/api/v1/organization/invitations" \
  -H "Authorization: Bearer $ZALY_API_KEY"
Respuesta
CampoTipo y descripción
itemsarray de object
next_cursorstring | null
Schemas completos de REST y MCP

Entrada MCP

{
  "type": "object",
  "properties": {
    "limit": {
      "default": 25,
      "type": "integer",
      "minimum": 1,
      "maximum": 50
    },
    "cursor": {
      "type": "string",
      "minLength": 1,
      "maxLength": 160
    }
  }
}

Respuesta JSON

{
  "type": "object",
  "properties": {
    "items": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "invitation_id": {
            "type": "string"
          },
          "email": {
            "type": "string"
          },
          "state": {
            "type": "string",
            "const": "pending"
          },
          "expires_at": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
          }
        },
        "required": [
          "invitation_id",
          "email",
          "state",
          "expires_at"
        ],
        "additionalProperties": false
      }
    },
    "next_cursor": {
      "type": [
        "string",
        "null"
      ]
    }
  },
  "required": [
    "items",
    "next_cursor"
  ],
  "additionalProperties": false
}

Invitar a un miembro

POST/api/v1/organization/invitations

invite organization member

REST: sesión web requeridaTool MCP invite_organization_memberPermiso writeReintentos con la misma clave
ParámetroDescripción
Idempotency-Keyheader · string · obligatorioAl menos 8 caracteres. Hasta 160 caracteres.
Originheader · "https://ai.zaly.app" · obligatorioObligatoria en escrituras con cookie. No se requiere con Bearer.
emailbody · string · email · obligatorioValor de este campo. Consulta el tipo, los límites y el esquema completo para preparar la petición.

Petición

curl -X POST "https://ai.zaly.app/api/v1/organization/invitations" \
  --cookie "$ZALY_SESSION_COOKIE" \
  -H "Origin: https://ai.zaly.app" \
  -H "Idempotency-Key: $ZALY_IDEMPOTENCY_KEY" \
  -H "Content-Type: application/json" \
  --data @payload.json

Prepara payload.json con los campos del cuerpo. Sustituye los identificadores y conserva la clave al reintentar la misma intención.

Respuesta
CampoTipo y descripción
invitation_idstring
emailstring
state"pending"
expires_atstring · date-time
Schemas completos de REST y MCP

Cuerpo REST

{
  "type": "object",
  "properties": {
    "email": {
      "type": "string",
      "format": "email",
      "pattern": "^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
    }
  },
  "required": [
    "email"
  ],
  "additionalProperties": false
}

Entrada MCP

{
  "type": "object",
  "properties": {
    "email": {
      "type": "string",
      "format": "email",
      "pattern": "^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
    },
    "idempotency_key": {
      "type": "string",
      "minLength": 8,
      "maxLength": 160
    }
  },
  "required": [
    "email",
    "idempotency_key"
  ],
  "additionalProperties": false
}

Respuesta JSON

{
  "type": "object",
  "properties": {
    "invitation_id": {
      "type": "string"
    },
    "email": {
      "type": "string"
    },
    "state": {
      "type": "string",
      "const": "pending"
    },
    "expires_at": {
      "type": "string",
      "format": "date-time",
      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
    }
  },
  "required": [
    "invitation_id",
    "email",
    "state",
    "expires_at"
  ],
  "additionalProperties": false
}

Cancelar una invitación

DELETE/api/v1/organization/invitations/{invitationId}

cancel organization invitation

REST: sesión web requeridaTool MCP cancel_organization_invitationPermiso writeReintentos con la misma claveRequiere revisión
ParámetroDescripción
invitationIdpath · string · obligatorioAl menos 1 caracteres. Hasta 160 caracteres.
Idempotency-Keyheader · string · obligatorioAl menos 8 caracteres. Hasta 160 caracteres.
Originheader · "https://ai.zaly.app" · obligatorioObligatoria en escrituras con cookie. No se requiere con Bearer.

Petición

curl -X DELETE "https://ai.zaly.app/api/v1/organization/invitations/$INVITATION_ID" \
  --cookie "$ZALY_SESSION_COOKIE" \
  -H "Origin: https://ai.zaly.app" \
  -H "Idempotency-Key: $ZALY_IDEMPOTENCY_KEY" \
  -H "Content-Type: application/json" \
  --data @payload.json

Prepara payload.json con los campos del cuerpo. Sustituye los identificadores y conserva la clave al reintentar la misma intención.

Respuesta
CampoTipo y descripción
invitation_idstring
state"canceled"
Schemas completos de REST y MCP

Cuerpo REST

{
  "type": "object",
  "properties": {},
  "additionalProperties": false
}

Entrada MCP

{
  "type": "object",
  "properties": {
    "invitation_id": {
      "type": "string",
      "minLength": 1,
      "maxLength": 160
    },
    "idempotency_key": {
      "type": "string",
      "minLength": 8,
      "maxLength": 160
    }
  },
  "required": [
    "invitation_id",
    "idempotency_key"
  ],
  "additionalProperties": false
}

Respuesta JSON

{
  "type": "object",
  "properties": {
    "invitation_id": {
      "type": "string"
    },
    "state": {
      "type": "string",
      "const": "canceled"
    }
  },
  "required": [
    "invitation_id",
    "state"
  ],
  "additionalProperties": false
}

Retirar a un miembro

DELETE/api/v1/organization/members/{memberId}

remove organization member

REST: sesión web requeridaTool MCP remove_organization_memberPermiso writeReintentos con la misma claveRequiere revisión
ParámetroDescripción
memberIdpath · string · obligatorioAl menos 1 caracteres. Hasta 160 caracteres.
Idempotency-Keyheader · string · obligatorioAl menos 8 caracteres. Hasta 160 caracteres.
Originheader · "https://ai.zaly.app" · obligatorioObligatoria en escrituras con cookie. No se requiere con Bearer.

Petición

curl -X DELETE "https://ai.zaly.app/api/v1/organization/members/$MEMBER_ID" \
  --cookie "$ZALY_SESSION_COOKIE" \
  -H "Origin: https://ai.zaly.app" \
  -H "Idempotency-Key: $ZALY_IDEMPOTENCY_KEY" \
  -H "Content-Type: application/json" \
  --data @payload.json

Prepara payload.json con los campos del cuerpo. Sustituye los identificadores y conserva la clave al reintentar la misma intención.

Respuesta
CampoTipo y descripción
member_idstring
removedtrue
Schemas completos de REST y MCP

Cuerpo REST

{
  "type": "object",
  "properties": {},
  "additionalProperties": false
}

Entrada MCP

{
  "type": "object",
  "properties": {
    "member_id": {
      "type": "string",
      "minLength": 1,
      "maxLength": 160
    },
    "idempotency_key": {
      "type": "string",
      "minLength": 8,
      "maxLength": 160
    }
  },
  "required": [
    "member_id",
    "idempotency_key"
  ],
  "additionalProperties": false
}

Respuesta JSON

{
  "type": "object",
  "properties": {
    "member_id": {
      "type": "string"
    },
    "removed": {
      "type": "boolean",
      "const": true
    }
  },
  "required": [
    "member_id",
    "removed"
  ],
  "additionalProperties": false
}

Cuentas

Cuentas conectadas, capacidades y remitentes.

Listar cuentas

GET/api/v1/accounts

list accounts

REST: clave API o sesiónTool MCP list_accountsPermiso readSolo lecturaReintentos con la misma clave
ParámetroDescripción
channelquery · "linkedin" | "email" · opcionalCanal de la conversación o acción. Debe estar disponible en la cuenta seleccionada.
limitquery · integer · opcionalPor defecto: 25. Mínimo: 1. Máximo: 50.
cursorquery · string | null · opcionalCursor devuelto por la página anterior. Omítelo en la primera consulta.

Petición

curl -X GET "https://ai.zaly.app/api/v1/accounts" \
  -H "Authorization: Bearer $ZALY_API_KEY"
Respuesta
CampoTipo y descripción
itemsarray de object
returned_countintegerMínimo: 0. Máximo: 9007199254740991.
has_moreboolean
next_cursorstring | null
Schemas completos de REST y MCP

Entrada MCP

{
  "type": "object",
  "properties": {
    "channel": {
      "type": "string",
      "enum": [
        "linkedin",
        "email"
      ]
    },
    "limit": {
      "default": 25,
      "type": "integer",
      "minimum": 1,
      "maximum": 50
    },
    "cursor": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 2000
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "additionalProperties": false
}

Respuesta JSON

{
  "type": "object",
  "properties": {
    "items": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "account_id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "channel": {
            "type": "string",
            "enum": [
              "linkedin",
              "email"
            ]
          },
          "provider": {
            "type": "string",
            "enum": [
              "linkedin",
              "google",
              "microsoft"
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "ready",
              "recovering",
              "reconnect_required"
            ]
          },
          "can_associate": {
            "type": "boolean"
          },
          "capabilities": {
            "type": "object",
            "properties": {
              "messaging": {
                "type": "string",
                "enum": [
                  "available",
                  "unavailable",
                  "unknown",
                  "not_applicable"
                ]
              },
              "calendar": {
                "type": "string",
                "enum": [
                  "available",
                  "unavailable",
                  "unknown",
                  "not_applicable"
                ]
              }
            },
            "required": [
              "messaging",
              "calendar"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "account_id",
          "name",
          "channel",
          "provider",
          "status",
          "can_associate",
          "capabilities"
        ],
        "additionalProperties": false
      }
    },
    "returned_count": {
      "type": "integer",
      "minimum": 0,
      "maximum": 9007199254740991
    },
    "has_more": {
      "type": "boolean"
    },
    "next_cursor": {
      "type": [
        "string",
        "null"
      ]
    }
  },
  "required": [
    "items",
    "returned_count",
    "has_more",
    "next_cursor"
  ],
  "additionalProperties": false
}

Consultar una cuenta

GET/api/v1/accounts/{accountId}

get account

REST: clave API o sesiónTool MCP get_accountPermiso readSolo lecturaReintentos con la misma clave
ParámetroDescripción
accountIdpath · string · obligatorioAl menos 1 caracteres. Hasta 160 caracteres.

Petición

curl -X GET "https://ai.zaly.app/api/v1/accounts/$ACCOUNT_ID" \
  -H "Authorization: Bearer $ZALY_API_KEY"
Respuesta
CampoTipo y descripción
accountobject
Schemas completos de REST y MCP

Entrada MCP

{
  "type": "object",
  "properties": {
    "account_id": {
      "type": "string",
      "minLength": 1,
      "maxLength": 160
    }
  },
  "required": [
    "account_id"
  ],
  "additionalProperties": false
}

Respuesta JSON

{
  "type": "object",
  "properties": {
    "account": {
      "type": "object",
      "properties": {
        "account_id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "channel": {
          "type": "string",
          "enum": [
            "linkedin",
            "email"
          ]
        },
        "provider": {
          "type": "string",
          "enum": [
            "linkedin",
            "google",
            "microsoft"
          ]
        },
        "status": {
          "type": "string",
          "enum": [
            "ready",
            "recovering",
            "reconnect_required"
          ]
        },
        "can_associate": {
          "type": "boolean"
        },
        "capabilities": {
          "type": "object",
          "properties": {
            "messaging": {
              "type": "string",
              "enum": [
                "available",
                "unavailable",
                "unknown",
                "not_applicable"
              ]
            },
            "calendar": {
              "type": "string",
              "enum": [
                "available",
                "unavailable",
                "unknown",
                "not_applicable"
              ]
            }
          },
          "required": [
            "messaging",
            "calendar"
          ],
          "additionalProperties": false
        },
        "email_senders": {
          "anyOf": [
            {
              "type": "object",
              "properties": {
                "items": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "email": {
                        "type": "string",
                        "format": "email",
                        "pattern": "^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
                      },
                      "display_name": {
                        "type": "string",
                        "maxLength": 2000
                      },
                      "is_primary": {
                        "type": "boolean"
                      },
                      "verification_status": {
                        "type": "string",
                        "enum": [
                          "verified",
                          "pending",
                          "unknown"
                        ]
                      }
                    },
                    "required": [
                      "email",
                      "is_primary",
                      "verification_status"
                    ],
                    "additionalProperties": false
                  }
                },
                "checked_at": {
                  "anyOf": [
                    {
                      "type": "string",
                      "format": "date-time",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "required": [
                "items",
                "checked_at"
              ],
              "additionalProperties": false
            },
            {
              "type": "null"
            }
          ]
        },
        "calendar": {
          "anyOf": [
            {
              "type": "object",
              "properties": {
                "name": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "timezone": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "availability_read": {
                  "type": "string",
                  "enum": [
                    "available",
                    "unavailable",
                    "unknown",
                    "not_applicable"
                  ]
                },
                "event_creation": {
                  "type": "string",
                  "enum": [
                    "available",
                    "unavailable",
                    "unknown",
                    "not_applicable"
                  ]
                },
                "checked_at": {
                  "anyOf": [
                    {
                      "type": "string",
                      "format": "date-time",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "required": [
                "name",
                "timezone",
                "availability_read",
                "event_creation",
                "checked_at"
              ],
              "additionalProperties": false
            },
            {
              "type": "null"
            }
          ]
        },
        "linkedin": {
          "anyOf": [
            {
              "type": "object",
              "properties": {
                "sales_navigator": {
                  "type": "string",
                  "enum": [
                    "available",
                    "unavailable",
                    "unknown",
                    "not_applicable"
                  ]
                },
                "contacts_coverage": {
                  "type": "string",
                  "enum": [
                    "unknown",
                    "partial",
                    "complete"
                  ]
                },
                "contacts_last_synced_at": {
                  "anyOf": [
                    {
                      "type": "string",
                      "format": "date-time",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "required": [
                "sales_navigator",
                "contacts_coverage",
                "contacts_last_synced_at"
              ],
              "additionalProperties": false
            },
            {
              "type": "null"
            }
          ]
        },
        "checked_at": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
            },
            {
              "type": "null"
            }
          ]
        },
        "created_at": {
          "type": "string",
          "format": "date-time",
          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
        },
        "updated_at": {
          "type": "string",
          "format": "date-time",
          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
        }
      },
      "required": [
        "account_id",
        "name",
        "channel",
        "provider",
        "status",
        "can_associate",
        "capabilities",
        "email_senders",
        "calendar",
        "linkedin",
        "checked_at",
        "created_at",
        "updated_at"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "account"
  ],
  "additionalProperties": false
}

Listar remitentes de correo

GET/api/v1/accounts/{accountId}/email-senders

list account email senders

REST: clave API o sesiónTool MCP list_account_email_sendersPermiso readSolo lecturaReintentos con la misma clave
ParámetroDescripción
accountIdpath · string · obligatorioAl menos 1 caracteres. Hasta 160 caracteres.

Petición

curl -X GET "https://ai.zaly.app/api/v1/accounts/$ACCOUNT_ID/email-senders" \
  -H "Authorization: Bearer $ZALY_API_KEY"
Respuesta
CampoTipo y descripción
account_idstring
itemsarray de object
checked_atstring · date-time | null
Schemas completos de REST y MCP

Entrada MCP

{
  "type": "object",
  "properties": {
    "account_id": {
      "type": "string",
      "minLength": 1,
      "maxLength": 160
    }
  },
  "required": [
    "account_id"
  ],
  "additionalProperties": false
}

Respuesta JSON

{
  "type": "object",
  "properties": {
    "account_id": {
      "type": "string"
    },
    "items": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "email": {
            "type": "string",
            "format": "email",
            "pattern": "^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
          },
          "display_name": {
            "type": "string",
            "maxLength": 2000
          },
          "is_primary": {
            "type": "boolean"
          },
          "verification_status": {
            "type": "string",
            "enum": [
              "verified",
              "pending",
              "unknown"
            ]
          }
        },
        "required": [
          "email",
          "is_primary",
          "verification_status"
        ],
        "additionalProperties": false
      }
    },
    "checked_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time",
          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "required": [
    "account_id",
    "items",
    "checked_at"
  ],
  "additionalProperties": false
}

Servicios

La oferta y el contexto comercial de tus campañas.

Listar servicios

GET/api/v1/services

list services

REST: clave API o sesiónTool MCP list_servicesPermiso readSolo lecturaReintentos con la misma clave
ParámetroDescripción
namequery · string · opcionalAl menos 1 caracteres. Hasta 120 caracteres.
limitquery · integer · opcionalPor defecto: 25. Mínimo: 1. Máximo: 50.
cursorquery · string | null · opcionalCursor devuelto por la página anterior. Omítelo en la primera consulta.

Petición

curl -X GET "https://ai.zaly.app/api/v1/services" \
  -H "Authorization: Bearer $ZALY_API_KEY"
Respuesta
CampoTipo y descripción
itemsarray de object
returned_countintegerMínimo: 0. Máximo: 9007199254740991.
has_moreboolean
next_cursorstring | null
Schemas completos de REST y MCP

Entrada MCP

{
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "minLength": 1,
      "maxLength": 120
    },
    "limit": {
      "default": 25,
      "type": "integer",
      "minimum": 1,
      "maximum": 50
    },
    "cursor": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 2000
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "additionalProperties": false
}

Respuesta JSON

{
  "type": "object",
  "properties": {
    "items": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "service_id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
          }
        },
        "required": [
          "service_id",
          "name",
          "description",
          "created_at",
          "updated_at"
        ],
        "additionalProperties": false
      }
    },
    "returned_count": {
      "type": "integer",
      "minimum": 0,
      "maximum": 9007199254740991
    },
    "has_more": {
      "type": "boolean"
    },
    "next_cursor": {
      "type": [
        "string",
        "null"
      ]
    }
  },
  "required": [
    "items",
    "returned_count",
    "has_more",
    "next_cursor"
  ],
  "additionalProperties": false
}

Consultar un servicio

GET/api/v1/services/{serviceId}

get service

REST: clave API o sesiónTool MCP get_servicePermiso readSolo lecturaReintentos con la misma clave
ParámetroDescripción
serviceIdpath · string · obligatorioAl menos 1 caracteres. Hasta 160 caracteres.

Petición

curl -X GET "https://ai.zaly.app/api/v1/services/$SERVICE_ID" \
  -H "Authorization: Bearer $ZALY_API_KEY"
Respuesta
CampoTipo y descripción
serviceobject
Schemas completos de REST y MCP

Entrada MCP

{
  "type": "object",
  "properties": {
    "service_id": {
      "type": "string",
      "minLength": 1,
      "maxLength": 160
    }
  },
  "required": [
    "service_id"
  ],
  "additionalProperties": false
}

Respuesta JSON

{
  "type": "object",
  "properties": {
    "service": {
      "type": "object",
      "properties": {
        "service_id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "description": {
          "type": "string"
        },
        "created_at": {
          "type": "string",
          "format": "date-time",
          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
        },
        "updated_at": {
          "type": "string",
          "format": "date-time",
          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
        },
        "offers": {
          "type": "string"
        },
        "key_benefits": {
          "type": "string"
        },
        "price_range": {
          "type": "string"
        },
        "commercial_terms": {
          "type": "string"
        },
        "faq": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "question": {
                "type": "string"
              },
              "answer": {
                "type": "string"
              }
            },
            "required": [
              "question",
              "answer"
            ],
            "additionalProperties": false
          }
        }
      },
      "required": [
        "service_id",
        "name",
        "description",
        "created_at",
        "updated_at",
        "offers",
        "key_benefits",
        "price_range",
        "commercial_terms",
        "faq"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "service"
  ],
  "additionalProperties": false
}

Crear un servicio

POST/api/v1/services

create service

REST: clave API o sesiónTool MCP create_servicePermiso writeReintentos con la misma clave
ParámetroDescripción
Idempotency-Keyheader · string · obligatorioAl menos 8 caracteres. Hasta 160 caracteres.
Originheader · "https://ai.zaly.app" · opcionalObligatoria en escrituras con cookie. No se requiere con Bearer.
namebody · string · obligatorioAl menos 2 caracteres. Hasta 120 caracteres.
descriptionbody · string · obligatorioAl menos 1 caracteres. Hasta 6000 caracteres.
offersbody · string · obligatorioAl menos 1 caracteres. Hasta 6000 caracteres.
key_benefitsbody · string · obligatorioAl menos 1 caracteres. Hasta 6000 caracteres.
price_rangebody · string · obligatorioAl menos 1 caracteres. Hasta 6000 caracteres.
commercial_termsbody · string · opcionalPor defecto: "". Hasta 6000 caracteres.
faqbody · array de object · opcionalPor defecto: [].

Petición

curl -X POST "https://ai.zaly.app/api/v1/services" \
  -H "Authorization: Bearer $ZALY_API_KEY" \
  -H "Idempotency-Key: $ZALY_IDEMPOTENCY_KEY" \
  -H "Content-Type: application/json" \
  --data @payload.json

Prepara payload.json con los campos del cuerpo. Sustituye los identificadores y conserva la clave al reintentar la misma intención.

Respuesta
CampoTipo y descripción
serviceobject
Schemas completos de REST y MCP

Cuerpo REST

{
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "minLength": 2,
      "maxLength": 120
    },
    "description": {
      "type": "string",
      "minLength": 1,
      "maxLength": 6000
    },
    "offers": {
      "type": "string",
      "minLength": 1,
      "maxLength": 6000
    },
    "key_benefits": {
      "type": "string",
      "minLength": 1,
      "maxLength": 6000
    },
    "price_range": {
      "type": "string",
      "minLength": 1,
      "maxLength": 6000
    },
    "commercial_terms": {
      "default": "",
      "type": "string",
      "maxLength": 6000
    },
    "faq": {
      "default": [],
      "maxItems": 50,
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "question": {
            "type": "string",
            "minLength": 1,
            "maxLength": 6000
          },
          "answer": {
            "type": "string",
            "minLength": 1,
            "maxLength": 6000
          }
        },
        "required": [
          "question",
          "answer"
        ],
        "additionalProperties": false
      }
    }
  },
  "required": [
    "name",
    "description",
    "offers",
    "key_benefits",
    "price_range"
  ],
  "additionalProperties": false
}

Entrada MCP

{
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "minLength": 2,
      "maxLength": 120
    },
    "description": {
      "type": "string",
      "minLength": 1,
      "maxLength": 6000
    },
    "offers": {
      "type": "string",
      "minLength": 1,
      "maxLength": 6000
    },
    "key_benefits": {
      "type": "string",
      "minLength": 1,
      "maxLength": 6000
    },
    "price_range": {
      "type": "string",
      "minLength": 1,
      "maxLength": 6000
    },
    "commercial_terms": {
      "default": "",
      "type": "string",
      "maxLength": 6000
    },
    "faq": {
      "default": [],
      "maxItems": 50,
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "question": {
            "type": "string",
            "minLength": 1,
            "maxLength": 6000
          },
          "answer": {
            "type": "string",
            "minLength": 1,
            "maxLength": 6000
          }
        },
        "required": [
          "question",
          "answer"
        ],
        "additionalProperties": false
      }
    },
    "idempotency_key": {
      "type": "string",
      "minLength": 8,
      "maxLength": 160
    }
  },
  "required": [
    "name",
    "description",
    "offers",
    "key_benefits",
    "price_range",
    "idempotency_key"
  ],
  "additionalProperties": false
}

Respuesta JSON

{
  "type": "object",
  "properties": {
    "service": {
      "type": "object",
      "properties": {
        "service_id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "description": {
          "type": "string"
        },
        "created_at": {
          "type": "string",
          "format": "date-time",
          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
        },
        "updated_at": {
          "type": "string",
          "format": "date-time",
          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
        },
        "offers": {
          "type": "string"
        },
        "key_benefits": {
          "type": "string"
        },
        "price_range": {
          "type": "string"
        },
        "commercial_terms": {
          "type": "string"
        },
        "faq": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "question": {
                "type": "string"
              },
              "answer": {
                "type": "string"
              }
            },
            "required": [
              "question",
              "answer"
            ],
            "additionalProperties": false
          }
        }
      },
      "required": [
        "service_id",
        "name",
        "description",
        "created_at",
        "updated_at",
        "offers",
        "key_benefits",
        "price_range",
        "commercial_terms",
        "faq"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "service"
  ],
  "additionalProperties": false
}

Actualizar un servicio

PATCH/api/v1/services/{serviceId}

update service

REST: clave API o sesiónTool MCP update_servicePermiso writeReintentos con la misma claveRequiere revisión
ParámetroDescripción
serviceIdpath · string · obligatorioAl menos 1 caracteres. Hasta 160 caracteres.
Idempotency-Keyheader · string · obligatorioAl menos 8 caracteres. Hasta 160 caracteres.
Originheader · "https://ai.zaly.app" · opcionalObligatoria en escrituras con cookie. No se requiere con Bearer.
namebody · string · opcionalAl menos 2 caracteres. Hasta 120 caracteres.
descriptionbody · string · opcionalAl menos 1 caracteres. Hasta 6000 caracteres.
offersbody · string · opcionalAl menos 1 caracteres. Hasta 6000 caracteres.
key_benefitsbody · string · opcionalAl menos 1 caracteres. Hasta 6000 caracteres.
price_rangebody · string · opcionalAl menos 1 caracteres. Hasta 6000 caracteres.
commercial_termsbody · string · opcionalHasta 6000 caracteres.
faqbody · array de object · opcionalValor de este campo. Consulta el tipo, los límites y el esquema completo para preparar la petición.

Petición

curl -X PATCH "https://ai.zaly.app/api/v1/services/$SERVICE_ID" \
  -H "Authorization: Bearer $ZALY_API_KEY" \
  -H "Idempotency-Key: $ZALY_IDEMPOTENCY_KEY" \
  -H "Content-Type: application/json" \
  --data @payload.json

Prepara payload.json con los campos del cuerpo. Sustituye los identificadores y conserva la clave al reintentar la misma intención.

Respuesta
CampoTipo y descripción
serviceobject
Schemas completos de REST y MCP

Cuerpo REST

{
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "minLength": 2,
      "maxLength": 120
    },
    "description": {
      "type": "string",
      "minLength": 1,
      "maxLength": 6000
    },
    "offers": {
      "type": "string",
      "minLength": 1,
      "maxLength": 6000
    },
    "key_benefits": {
      "type": "string",
      "minLength": 1,
      "maxLength": 6000
    },
    "price_range": {
      "type": "string",
      "minLength": 1,
      "maxLength": 6000
    },
    "commercial_terms": {
      "type": "string",
      "maxLength": 6000
    },
    "faq": {
      "maxItems": 50,
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "question": {
            "type": "string",
            "minLength": 1,
            "maxLength": 6000
          },
          "answer": {
            "type": "string",
            "minLength": 1,
            "maxLength": 6000
          }
        },
        "required": [
          "question",
          "answer"
        ],
        "additionalProperties": false
      }
    }
  },
  "additionalProperties": false
}

Entrada MCP

{
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "minLength": 2,
      "maxLength": 120
    },
    "description": {
      "type": "string",
      "minLength": 1,
      "maxLength": 6000
    },
    "offers": {
      "type": "string",
      "minLength": 1,
      "maxLength": 6000
    },
    "key_benefits": {
      "type": "string",
      "minLength": 1,
      "maxLength": 6000
    },
    "price_range": {
      "type": "string",
      "minLength": 1,
      "maxLength": 6000
    },
    "commercial_terms": {
      "type": "string",
      "maxLength": 6000
    },
    "faq": {
      "maxItems": 50,
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "question": {
            "type": "string",
            "minLength": 1,
            "maxLength": 6000
          },
          "answer": {
            "type": "string",
            "minLength": 1,
            "maxLength": 6000
          }
        },
        "required": [
          "question",
          "answer"
        ],
        "additionalProperties": false
      }
    },
    "service_id": {
      "type": "string",
      "minLength": 1,
      "maxLength": 160
    },
    "idempotency_key": {
      "type": "string",
      "minLength": 8,
      "maxLength": 160
    }
  },
  "required": [
    "service_id",
    "idempotency_key"
  ],
  "additionalProperties": false
}

Respuesta JSON

{
  "type": "object",
  "properties": {
    "service": {
      "type": "object",
      "properties": {
        "service_id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "description": {
          "type": "string"
        },
        "created_at": {
          "type": "string",
          "format": "date-time",
          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
        },
        "updated_at": {
          "type": "string",
          "format": "date-time",
          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
        },
        "offers": {
          "type": "string"
        },
        "key_benefits": {
          "type": "string"
        },
        "price_range": {
          "type": "string"
        },
        "commercial_terms": {
          "type": "string"
        },
        "faq": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "question": {
                "type": "string"
              },
              "answer": {
                "type": "string"
              }
            },
            "required": [
              "question",
              "answer"
            ],
            "additionalProperties": false
          }
        }
      },
      "required": [
        "service_id",
        "name",
        "description",
        "created_at",
        "updated_at",
        "offers",
        "key_benefits",
        "price_range",
        "commercial_terms",
        "faq"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "service"
  ],
  "additionalProperties": false
}

Eliminar un servicio

DELETE/api/v1/services/{serviceId}

delete service

REST: clave API o sesiónTool MCP delete_servicePermiso writeReintentos con la misma claveRequiere revisión
ParámetroDescripción
serviceIdpath · string · obligatorioAl menos 1 caracteres. Hasta 160 caracteres.
Idempotency-Keyheader · string · obligatorioAl menos 8 caracteres. Hasta 160 caracteres.
Originheader · "https://ai.zaly.app" · opcionalObligatoria en escrituras con cookie. No se requiere con Bearer.

Petición

curl -X DELETE "https://ai.zaly.app/api/v1/services/$SERVICE_ID" \
  -H "Authorization: Bearer $ZALY_API_KEY" \
  -H "Idempotency-Key: $ZALY_IDEMPOTENCY_KEY" \
  -H "Content-Type: application/json" \
  --data @payload.json

Prepara payload.json con los campos del cuerpo. Sustituye los identificadores y conserva la clave al reintentar la misma intención.

Respuesta
CampoTipo y descripción
serviceobject
effectsobject
Schemas completos de REST y MCP

Cuerpo REST

{
  "type": "object",
  "properties": {},
  "additionalProperties": false
}

Entrada MCP

{
  "type": "object",
  "properties": {
    "service_id": {
      "type": "string",
      "minLength": 1,
      "maxLength": 160
    },
    "idempotency_key": {
      "type": "string",
      "minLength": 8,
      "maxLength": 160
    }
  },
  "required": [
    "service_id",
    "idempotency_key"
  ],
  "additionalProperties": false
}

Respuesta JSON

{
  "type": "object",
  "properties": {
    "service": {
      "type": "object",
      "properties": {
        "service_id": {
          "type": "string"
        },
        "deleted": {
          "type": "boolean",
          "const": true
        }
      },
      "required": [
        "service_id",
        "deleted"
      ],
      "additionalProperties": false
    },
    "effects": {
      "type": "object",
      "properties": {
        "campaigns_paused": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        }
      },
      "required": [
        "campaigns_paused"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "service",
    "effects"
  ],
  "additionalProperties": false
}

ICP

Criterios de persona y empresa para evaluar el encaje.

Buscar opciones de filtros del ICP

GET/api/v1/icps/filter-options

get icp filter options

REST: clave API o sesiónTool MCP get_icp_filter_optionsPermiso readSolo lecturaReintentos con la misma clave

Petición

curl -X GET "https://ai.zaly.app/api/v1/icps/filter-options" \
  -H "Authorization: Bearer $ZALY_API_KEY"
Respuesta
CampoTipo y descripción
versionstring
provenancestring
countriesarray de object
industriesarray de object
Schemas completos de REST y MCP

Entrada MCP

{
  "type": "object",
  "properties": {},
  "additionalProperties": false
}

Respuesta JSON

{
  "type": "object",
  "properties": {
    "version": {
      "type": "string"
    },
    "provenance": {
      "type": "string"
    },
    "countries": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "label": {
            "type": "string"
          },
          "label_en": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "label",
          "label_en"
        ],
        "additionalProperties": false
      }
    },
    "industries": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "label": {
            "type": "string"
          },
          "label_en": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "label",
          "label_en"
        ],
        "additionalProperties": false
      }
    }
  },
  "required": [
    "version",
    "provenance",
    "countries",
    "industries"
  ],
  "additionalProperties": false
}

Listar ICP

GET/api/v1/icps

list icps

REST: clave API o sesiónTool MCP list_icpsPermiso readSolo lecturaReintentos con la misma clave
ParámetroDescripción
namequery · string · opcionalAl menos 1 caracteres. Hasta 120 caracteres.
limitquery · integer · opcionalPor defecto: 25. Mínimo: 1. Máximo: 50.
cursorquery · string | null · opcionalCursor devuelto por la página anterior. Omítelo en la primera consulta.

Petición

curl -X GET "https://ai.zaly.app/api/v1/icps" \
  -H "Authorization: Bearer $ZALY_API_KEY"
Respuesta
CampoTipo y descripción
itemsarray de object
returned_countintegerMínimo: 0. Máximo: 9007199254740991.
has_moreboolean
next_cursorstring | null
Schemas completos de REST y MCP

Entrada MCP

{
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "minLength": 1,
      "maxLength": 120
    },
    "limit": {
      "default": 25,
      "type": "integer",
      "minimum": 1,
      "maximum": 50
    },
    "cursor": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 2000
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "additionalProperties": false
}

Respuesta JSON

{
  "type": "object",
  "properties": {
    "items": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "icp_id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
          }
        },
        "required": [
          "icp_id",
          "name",
          "description",
          "created_at",
          "updated_at"
        ],
        "additionalProperties": false
      }
    },
    "returned_count": {
      "type": "integer",
      "minimum": 0,
      "maximum": 9007199254740991
    },
    "has_more": {
      "type": "boolean"
    },
    "next_cursor": {
      "type": [
        "string",
        "null"
      ]
    }
  },
  "required": [
    "items",
    "returned_count",
    "has_more",
    "next_cursor"
  ],
  "additionalProperties": false
}

Consultar un ICP

GET/api/v1/icps/{icpId}

get icp

REST: clave API o sesiónTool MCP get_icpPermiso readSolo lecturaReintentos con la misma clave
ParámetroDescripción
icpIdpath · string · obligatorioAl menos 1 caracteres. Hasta 160 caracteres.

Petición

curl -X GET "https://ai.zaly.app/api/v1/icps/$ICP_ID" \
  -H "Authorization: Bearer $ZALY_API_KEY"
Respuesta
CampoTipo y descripción
icpobject
Schemas completos de REST y MCP

Entrada MCP

{
  "type": "object",
  "properties": {
    "icp_id": {
      "type": "string",
      "minLength": 1,
      "maxLength": 160
    }
  },
  "required": [
    "icp_id"
  ],
  "additionalProperties": false
}

Respuesta JSON

{
  "type": "object",
  "properties": {
    "icp": {
      "type": "object",
      "properties": {
        "icp_id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "description": {
          "type": "string"
        },
        "created_at": {
          "type": "string",
          "format": "date-time",
          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
        },
        "updated_at": {
          "type": "string",
          "format": "date-time",
          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
        },
        "persona": {
          "type": "object",
          "properties": {
            "role_keywords_must": {
              "default": [],
              "maxItems": 30,
              "type": "array",
              "items": {
                "type": "string",
                "minLength": 1,
                "maxLength": 200
              }
            },
            "role_keywords_nice": {
              "default": [],
              "maxItems": 30,
              "type": "array",
              "items": {
                "type": "string",
                "minLength": 1,
                "maxLength": 200
              }
            },
            "departments": {
              "default": [],
              "maxItems": 30,
              "type": "array",
              "items": {
                "type": "string",
                "minLength": 1,
                "maxLength": 200
              }
            },
            "countries": {
              "default": [],
              "maxItems": 30,
              "type": "array",
              "items": {
                "type": "string",
                "minLength": 1,
                "maxLength": 200
              }
            },
            "location_regions_preferred": {
              "default": [],
              "maxItems": 30,
              "type": "array",
              "items": {
                "type": "string",
                "minLength": 1,
                "maxLength": 200
              }
            }
          },
          "required": [
            "role_keywords_must",
            "role_keywords_nice",
            "departments",
            "countries",
            "location_regions_preferred"
          ],
          "additionalProperties": false
        },
        "company": {
          "type": "object",
          "properties": {
            "industries": {
              "default": [],
              "maxItems": 30,
              "type": "array",
              "items": {
                "type": "string",
                "minLength": 1,
                "maxLength": 200
              }
            },
            "company_size_employees_min": {
              "default": null,
              "anyOf": [
                {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                },
                {
                  "type": "null"
                }
              ]
            },
            "company_size_employees_max": {
              "default": null,
              "anyOf": [
                {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                },
                {
                  "type": "null"
                }
              ]
            },
            "qualification_requirements": {
              "type": "object",
              "properties": {
                "business": {
                  "maxItems": 30,
                  "type": "array",
                  "items": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 200
                  }
                },
                "sales_channel": {
                  "maxItems": 30,
                  "type": "array",
                  "items": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 200
                  }
                },
                "customer_type": {
                  "maxItems": 30,
                  "type": "array",
                  "items": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 200
                  }
                }
              },
              "required": [
                "business",
                "sales_channel",
                "customer_type"
              ],
              "additionalProperties": false
            }
          },
          "required": [
            "industries",
            "company_size_employees_min",
            "company_size_employees_max"
          ],
          "additionalProperties": false
        }
      },
      "required": [
        "icp_id",
        "name",
        "description",
        "created_at",
        "updated_at",
        "persona",
        "company"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "icp"
  ],
  "additionalProperties": false
}

Crear un ICP

POST/api/v1/icps

create icp

REST: clave API o sesiónTool MCP create_icpPermiso writeReintentos con la misma clave
ParámetroDescripción
Idempotency-Keyheader · string · obligatorioAl menos 8 caracteres. Hasta 160 caracteres.
Originheader · "https://ai.zaly.app" · opcionalObligatoria en escrituras con cookie. No se requiere con Bearer.
namebody · string · obligatorioAl menos 2 caracteres. Hasta 120 caracteres.
descriptionbody · string · obligatorioAl menos 1 caracteres. Hasta 6000 caracteres.
personabody · object · obligatorioValor de este campo. Consulta el tipo, los límites y el esquema completo para preparar la petición.
companybody · object · obligatorioValor de este campo. Consulta el tipo, los límites y el esquema completo para preparar la petición.

Petición

curl -X POST "https://ai.zaly.app/api/v1/icps" \
  -H "Authorization: Bearer $ZALY_API_KEY" \
  -H "Idempotency-Key: $ZALY_IDEMPOTENCY_KEY" \
  -H "Content-Type: application/json" \
  --data @payload.json

Prepara payload.json con los campos del cuerpo. Sustituye los identificadores y conserva la clave al reintentar la misma intención.

Respuesta
CampoTipo y descripción
icpobject
Schemas completos de REST y MCP

Cuerpo REST

{
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "minLength": 2,
      "maxLength": 120
    },
    "description": {
      "type": "string",
      "minLength": 1,
      "maxLength": 6000
    },
    "persona": {
      "type": "object",
      "properties": {
        "role_keywords_must": {
          "minItems": 1,
          "maxItems": 30,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          }
        },
        "role_keywords_nice": {
          "default": [],
          "maxItems": 30,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          }
        },
        "departments": {
          "minItems": 1,
          "maxItems": 30,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          }
        },
        "countries": {
          "minItems": 1,
          "maxItems": 10,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          }
        },
        "location_regions_preferred": {
          "default": [],
          "maxItems": 30,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          }
        }
      },
      "required": [
        "role_keywords_must",
        "departments",
        "countries"
      ],
      "additionalProperties": false
    },
    "company": {
      "type": "object",
      "properties": {
        "industries": {
          "minItems": 1,
          "maxItems": 30,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          }
        },
        "company_size_employees_min": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        },
        "company_size_employees_max": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        },
        "qualification_requirements": {
          "type": "object",
          "properties": {
            "business": {
              "maxItems": 30,
              "type": "array",
              "items": {
                "type": "string",
                "minLength": 1,
                "maxLength": 200
              }
            },
            "sales_channel": {
              "maxItems": 30,
              "type": "array",
              "items": {
                "type": "string",
                "minLength": 1,
                "maxLength": 200
              }
            },
            "customer_type": {
              "maxItems": 30,
              "type": "array",
              "items": {
                "type": "string",
                "minLength": 1,
                "maxLength": 200
              }
            }
          },
          "required": [
            "business",
            "sales_channel",
            "customer_type"
          ],
          "additionalProperties": false
        }
      },
      "required": [
        "industries",
        "company_size_employees_min",
        "company_size_employees_max"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "name",
    "description",
    "persona",
    "company"
  ],
  "additionalProperties": false
}

Entrada MCP

{
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "minLength": 2,
      "maxLength": 120
    },
    "description": {
      "type": "string",
      "minLength": 1,
      "maxLength": 6000
    },
    "persona": {
      "type": "object",
      "properties": {
        "role_keywords_must": {
          "minItems": 1,
          "maxItems": 30,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          }
        },
        "role_keywords_nice": {
          "default": [],
          "maxItems": 30,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          }
        },
        "departments": {
          "minItems": 1,
          "maxItems": 30,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          }
        },
        "countries": {
          "minItems": 1,
          "maxItems": 10,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          }
        },
        "location_regions_preferred": {
          "default": [],
          "maxItems": 30,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          }
        }
      },
      "required": [
        "role_keywords_must",
        "departments",
        "countries"
      ],
      "additionalProperties": false
    },
    "company": {
      "type": "object",
      "properties": {
        "industries": {
          "minItems": 1,
          "maxItems": 30,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          }
        },
        "company_size_employees_min": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        },
        "company_size_employees_max": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        },
        "qualification_requirements": {
          "type": "object",
          "properties": {
            "business": {
              "maxItems": 30,
              "type": "array",
              "items": {
                "type": "string",
                "minLength": 1,
                "maxLength": 200
              }
            },
            "sales_channel": {
              "maxItems": 30,
              "type": "array",
              "items": {
                "type": "string",
                "minLength": 1,
                "maxLength": 200
              }
            },
            "customer_type": {
              "maxItems": 30,
              "type": "array",
              "items": {
                "type": "string",
                "minLength": 1,
                "maxLength": 200
              }
            }
          },
          "required": [
            "business",
            "sales_channel",
            "customer_type"
          ],
          "additionalProperties": false
        }
      },
      "required": [
        "industries",
        "company_size_employees_min",
        "company_size_employees_max"
      ],
      "additionalProperties": false
    },
    "idempotency_key": {
      "type": "string",
      "minLength": 8,
      "maxLength": 160
    }
  },
  "required": [
    "name",
    "description",
    "persona",
    "company",
    "idempotency_key"
  ],
  "additionalProperties": false
}

Respuesta JSON

{
  "type": "object",
  "properties": {
    "icp": {
      "type": "object",
      "properties": {
        "icp_id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "description": {
          "type": "string"
        },
        "created_at": {
          "type": "string",
          "format": "date-time",
          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
        },
        "updated_at": {
          "type": "string",
          "format": "date-time",
          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
        },
        "persona": {
          "type": "object",
          "properties": {
            "role_keywords_must": {
              "default": [],
              "maxItems": 30,
              "type": "array",
              "items": {
                "type": "string",
                "minLength": 1,
                "maxLength": 200
              }
            },
            "role_keywords_nice": {
              "default": [],
              "maxItems": 30,
              "type": "array",
              "items": {
                "type": "string",
                "minLength": 1,
                "maxLength": 200
              }
            },
            "departments": {
              "default": [],
              "maxItems": 30,
              "type": "array",
              "items": {
                "type": "string",
                "minLength": 1,
                "maxLength": 200
              }
            },
            "countries": {
              "default": [],
              "maxItems": 30,
              "type": "array",
              "items": {
                "type": "string",
                "minLength": 1,
                "maxLength": 200
              }
            },
            "location_regions_preferred": {
              "default": [],
              "maxItems": 30,
              "type": "array",
              "items": {
                "type": "string",
                "minLength": 1,
                "maxLength": 200
              }
            }
          },
          "required": [
            "role_keywords_must",
            "role_keywords_nice",
            "departments",
            "countries",
            "location_regions_preferred"
          ],
          "additionalProperties": false
        },
        "company": {
          "type": "object",
          "properties": {
            "industries": {
              "default": [],
              "maxItems": 30,
              "type": "array",
              "items": {
                "type": "string",
                "minLength": 1,
                "maxLength": 200
              }
            },
            "company_size_employees_min": {
              "default": null,
              "anyOf": [
                {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                },
                {
                  "type": "null"
                }
              ]
            },
            "company_size_employees_max": {
              "default": null,
              "anyOf": [
                {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                },
                {
                  "type": "null"
                }
              ]
            },
            "qualification_requirements": {
              "type": "object",
              "properties": {
                "business": {
                  "maxItems": 30,
                  "type": "array",
                  "items": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 200
                  }
                },
                "sales_channel": {
                  "maxItems": 30,
                  "type": "array",
                  "items": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 200
                  }
                },
                "customer_type": {
                  "maxItems": 30,
                  "type": "array",
                  "items": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 200
                  }
                }
              },
              "required": [
                "business",
                "sales_channel",
                "customer_type"
              ],
              "additionalProperties": false
            }
          },
          "required": [
            "industries",
            "company_size_employees_min",
            "company_size_employees_max"
          ],
          "additionalProperties": false
        }
      },
      "required": [
        "icp_id",
        "name",
        "description",
        "created_at",
        "updated_at",
        "persona",
        "company"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "icp"
  ],
  "additionalProperties": false
}

Actualizar un ICP

PATCH/api/v1/icps/{icpId}

update icp

REST: clave API o sesiónTool MCP update_icpPermiso writeReintentos con la misma claveRequiere revisión
ParámetroDescripción
icpIdpath · string · obligatorioAl menos 1 caracteres. Hasta 160 caracteres.
Idempotency-Keyheader · string · obligatorioAl menos 8 caracteres. Hasta 160 caracteres.
Originheader · "https://ai.zaly.app" · opcionalObligatoria en escrituras con cookie. No se requiere con Bearer.
namebody · string · opcionalAl menos 2 caracteres. Hasta 120 caracteres.
descriptionbody · string · opcionalAl menos 1 caracteres. Hasta 6000 caracteres.
personabody · object · opcionalValor de este campo. Consulta el tipo, los límites y el esquema completo para preparar la petición.
companybody · object · opcionalValor de este campo. Consulta el tipo, los límites y el esquema completo para preparar la petición.

Petición

curl -X PATCH "https://ai.zaly.app/api/v1/icps/$ICP_ID" \
  -H "Authorization: Bearer $ZALY_API_KEY" \
  -H "Idempotency-Key: $ZALY_IDEMPOTENCY_KEY" \
  -H "Content-Type: application/json" \
  --data @payload.json

Prepara payload.json con los campos del cuerpo. Sustituye los identificadores y conserva la clave al reintentar la misma intención.

Respuesta
CampoTipo y descripción
icpobject
effectsobject
Schemas completos de REST y MCP

Cuerpo REST

{
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "minLength": 2,
      "maxLength": 120
    },
    "description": {
      "type": "string",
      "minLength": 1,
      "maxLength": 6000
    },
    "persona": {
      "type": "object",
      "properties": {
        "role_keywords_must": {
          "minItems": 1,
          "maxItems": 30,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          }
        },
        "role_keywords_nice": {
          "maxItems": 30,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          }
        },
        "departments": {
          "minItems": 1,
          "maxItems": 30,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          }
        },
        "countries": {
          "minItems": 1,
          "maxItems": 10,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          }
        },
        "location_regions_preferred": {
          "maxItems": 30,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          }
        }
      },
      "additionalProperties": false
    },
    "company": {
      "type": "object",
      "properties": {
        "industries": {
          "minItems": 1,
          "maxItems": 30,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          }
        },
        "company_size_employees_min": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        },
        "company_size_employees_max": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        },
        "qualification_requirements": {
          "type": "object",
          "properties": {
            "business": {
              "maxItems": 30,
              "type": "array",
              "items": {
                "type": "string",
                "minLength": 1,
                "maxLength": 200
              }
            },
            "sales_channel": {
              "maxItems": 30,
              "type": "array",
              "items": {
                "type": "string",
                "minLength": 1,
                "maxLength": 200
              }
            },
            "customer_type": {
              "maxItems": 30,
              "type": "array",
              "items": {
                "type": "string",
                "minLength": 1,
                "maxLength": 200
              }
            }
          },
          "required": [
            "business",
            "sales_channel",
            "customer_type"
          ],
          "additionalProperties": false
        }
      },
      "additionalProperties": false
    }
  },
  "additionalProperties": false
}

Entrada MCP

{
  "type": "object",
  "properties": {
    "icp_id": {
      "type": "string",
      "minLength": 1,
      "maxLength": 160
    },
    "name": {
      "type": "string",
      "minLength": 2,
      "maxLength": 120
    },
    "description": {
      "type": "string",
      "minLength": 1,
      "maxLength": 6000
    },
    "persona": {
      "type": "object",
      "properties": {
        "role_keywords_must": {
          "minItems": 1,
          "maxItems": 30,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          }
        },
        "role_keywords_nice": {
          "maxItems": 30,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          }
        },
        "departments": {
          "minItems": 1,
          "maxItems": 30,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          }
        },
        "countries": {
          "minItems": 1,
          "maxItems": 10,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          }
        },
        "location_regions_preferred": {
          "maxItems": 30,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          }
        }
      },
      "additionalProperties": false
    },
    "company": {
      "type": "object",
      "properties": {
        "industries": {
          "minItems": 1,
          "maxItems": 30,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          }
        },
        "company_size_employees_min": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        },
        "company_size_employees_max": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        },
        "qualification_requirements": {
          "type": "object",
          "properties": {
            "business": {
              "maxItems": 30,
              "type": "array",
              "items": {
                "type": "string",
                "minLength": 1,
                "maxLength": 200
              }
            },
            "sales_channel": {
              "maxItems": 30,
              "type": "array",
              "items": {
                "type": "string",
                "minLength": 1,
                "maxLength": 200
              }
            },
            "customer_type": {
              "maxItems": 30,
              "type": "array",
              "items": {
                "type": "string",
                "minLength": 1,
                "maxLength": 200
              }
            }
          },
          "required": [
            "business",
            "sales_channel",
            "customer_type"
          ],
          "additionalProperties": false
        }
      },
      "additionalProperties": false
    },
    "idempotency_key": {
      "type": "string",
      "minLength": 8,
      "maxLength": 160
    }
  },
  "required": [
    "icp_id",
    "idempotency_key"
  ],
  "additionalProperties": false
}

Respuesta JSON

{
  "type": "object",
  "properties": {
    "icp": {
      "type": "object",
      "properties": {
        "icp_id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "description": {
          "type": "string"
        },
        "created_at": {
          "type": "string",
          "format": "date-time",
          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
        },
        "updated_at": {
          "type": "string",
          "format": "date-time",
          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
        },
        "persona": {
          "type": "object",
          "properties": {
            "role_keywords_must": {
              "default": [],
              "maxItems": 30,
              "type": "array",
              "items": {
                "type": "string",
                "minLength": 1,
                "maxLength": 200
              }
            },
            "role_keywords_nice": {
              "default": [],
              "maxItems": 30,
              "type": "array",
              "items": {
                "type": "string",
                "minLength": 1,
                "maxLength": 200
              }
            },
            "departments": {
              "default": [],
              "maxItems": 30,
              "type": "array",
              "items": {
                "type": "string",
                "minLength": 1,
                "maxLength": 200
              }
            },
            "countries": {
              "default": [],
              "maxItems": 30,
              "type": "array",
              "items": {
                "type": "string",
                "minLength": 1,
                "maxLength": 200
              }
            },
            "location_regions_preferred": {
              "default": [],
              "maxItems": 30,
              "type": "array",
              "items": {
                "type": "string",
                "minLength": 1,
                "maxLength": 200
              }
            }
          },
          "required": [
            "role_keywords_must",
            "role_keywords_nice",
            "departments",
            "countries",
            "location_regions_preferred"
          ],
          "additionalProperties": false
        },
        "company": {
          "type": "object",
          "properties": {
            "industries": {
              "default": [],
              "maxItems": 30,
              "type": "array",
              "items": {
                "type": "string",
                "minLength": 1,
                "maxLength": 200
              }
            },
            "company_size_employees_min": {
              "default": null,
              "anyOf": [
                {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                },
                {
                  "type": "null"
                }
              ]
            },
            "company_size_employees_max": {
              "default": null,
              "anyOf": [
                {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                },
                {
                  "type": "null"
                }
              ]
            },
            "qualification_requirements": {
              "type": "object",
              "properties": {
                "business": {
                  "maxItems": 30,
                  "type": "array",
                  "items": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 200
                  }
                },
                "sales_channel": {
                  "maxItems": 30,
                  "type": "array",
                  "items": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 200
                  }
                },
                "customer_type": {
                  "maxItems": 30,
                  "type": "array",
                  "items": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 200
                  }
                }
              },
              "required": [
                "business",
                "sales_channel",
                "customer_type"
              ],
              "additionalProperties": false
            }
          },
          "required": [
            "industries",
            "company_size_employees_min",
            "company_size_employees_max"
          ],
          "additionalProperties": false
        }
      },
      "required": [
        "icp_id",
        "name",
        "description",
        "created_at",
        "updated_at",
        "persona",
        "company"
      ],
      "additionalProperties": false
    },
    "effects": {
      "type": "object",
      "properties": {
        "criteria_changed": {
          "type": "boolean"
        },
        "campaigns_affected": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        }
      },
      "required": [
        "criteria_changed",
        "campaigns_affected"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "icp",
    "effects"
  ],
  "additionalProperties": false
}

Eliminar un ICP

DELETE/api/v1/icps/{icpId}

delete icp

REST: clave API o sesiónTool MCP delete_icpPermiso writeReintentos con la misma claveRequiere revisión
ParámetroDescripción
icpIdpath · string · obligatorioAl menos 1 caracteres. Hasta 160 caracteres.
Idempotency-Keyheader · string · obligatorioAl menos 8 caracteres. Hasta 160 caracteres.
Originheader · "https://ai.zaly.app" · opcionalObligatoria en escrituras con cookie. No se requiere con Bearer.

Petición

curl -X DELETE "https://ai.zaly.app/api/v1/icps/$ICP_ID" \
  -H "Authorization: Bearer $ZALY_API_KEY" \
  -H "Idempotency-Key: $ZALY_IDEMPOTENCY_KEY" \
  -H "Content-Type: application/json" \
  --data @payload.json

Prepara payload.json con los campos del cuerpo. Sustituye los identificadores y conserva la clave al reintentar la misma intención.

Respuesta
CampoTipo y descripción
icpobject
effectsobject
Schemas completos de REST y MCP

Cuerpo REST

{
  "type": "object",
  "properties": {},
  "additionalProperties": false
}

Entrada MCP

{
  "type": "object",
  "properties": {
    "icp_id": {
      "type": "string",
      "minLength": 1,
      "maxLength": 160
    },
    "idempotency_key": {
      "type": "string",
      "minLength": 8,
      "maxLength": 160
    }
  },
  "required": [
    "icp_id",
    "idempotency_key"
  ],
  "additionalProperties": false
}

Respuesta JSON

{
  "type": "object",
  "properties": {
    "icp": {
      "type": "object",
      "properties": {
        "icp_id": {
          "type": "string"
        },
        "deleted": {
          "type": "boolean",
          "const": true
        }
      },
      "required": [
        "icp_id",
        "deleted"
      ],
      "additionalProperties": false
    },
    "effects": {
      "type": "object",
      "properties": {
        "campaigns_paused": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        }
      },
      "required": [
        "campaigns_paused"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "icp",
    "effects"
  ],
  "additionalProperties": false
}

Señales

Captación y resultados dentro de una campaña.

Listar señales

GET/api/v1/signals

list signals

REST: clave API o sesiónTool MCP list_signalsPermiso readSolo lecturaReintentos con la misma clave
ParámetroDescripción
campaign_idquery · string · opcionalAl menos 1 caracteres. Hasta 160 caracteres.
namequery · string · opcionalAl menos 1 caracteres. Hasta 120 caracteres.
statusquery · "active" | "paused" | "completed" · opcionalEstado del recurso. Comprueba los valores admitidos antes de filtrar o actualizar.
limitquery · integer · opcionalPor defecto: 25. Mínimo: 1. Máximo: 50.
cursorquery · string | null · opcionalCursor devuelto por la página anterior. Omítelo en la primera consulta.

Petición

curl -X GET "https://ai.zaly.app/api/v1/signals" \
  -H "Authorization: Bearer $ZALY_API_KEY"
Respuesta
CampoTipo y descripción
itemsarray de object
returned_countintegerMínimo: 0. Máximo: 9007199254740991.
has_moreboolean
next_cursorstring | null
as_ofstring · date-time
Schemas completos de REST y MCP

Entrada MCP

{
  "type": "object",
  "properties": {
    "campaign_id": {
      "type": "string",
      "minLength": 1,
      "maxLength": 160
    },
    "name": {
      "type": "string",
      "minLength": 1,
      "maxLength": 120
    },
    "status": {
      "type": "string",
      "enum": [
        "active",
        "paused",
        "completed"
      ]
    },
    "limit": {
      "default": 25,
      "type": "integer",
      "minimum": 1,
      "maximum": 50
    },
    "cursor": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 2000
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "additionalProperties": false
}

Respuesta JSON

{
  "type": "object",
  "properties": {
    "items": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "signal_id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "kind": {
            "type": "string",
            "enum": [
              "profile_visitors",
              "received_invitations",
              "followers",
              "post_people",
              "lead_magnet",
              "watched_accounts",
              "people_search",
              "keyword_posts"
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "active",
              "paused",
              "completed"
            ]
          },
          "campaign_id": {
            "type": "string"
          },
          "summary": {
            "type": "object",
            "properties": {
              "lead_magnet": {
                "type": "object",
                "properties": {
                  "pending": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "working": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "waiting_connection": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "completed": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "review": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "filtered": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "expired": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  }
                },
                "required": [
                  "pending",
                  "working",
                  "waiting_connection",
                  "completed",
                  "review",
                  "filtered",
                  "expired"
                ],
                "additionalProperties": false
              },
              "people_captured": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "people_processed": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "people_available": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "enrichment_pending": {
                "type": "boolean"
              }
            },
            "required": [
              "people_captured",
              "people_processed",
              "people_available",
              "enrichment_pending"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "signal_id",
          "name",
          "description",
          "kind",
          "status",
          "campaign_id",
          "summary"
        ],
        "additionalProperties": false
      }
    },
    "returned_count": {
      "type": "integer",
      "minimum": 0,
      "maximum": 9007199254740991
    },
    "has_more": {
      "type": "boolean"
    },
    "next_cursor": {
      "type": [
        "string",
        "null"
      ]
    },
    "as_of": {
      "type": "string",
      "format": "date-time",
      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
    }
  },
  "required": [
    "items",
    "returned_count",
    "has_more",
    "next_cursor",
    "as_of"
  ],
  "additionalProperties": false
}

Consultar una señal

GET/api/v1/signals/{signalId}

get signal

REST: clave API o sesiónTool MCP get_signalPermiso readSolo lecturaReintentos con la misma clave
ParámetroDescripción
signalIdpath · string · obligatorioAl menos 1 caracteres. Hasta 160 caracteres.

Petición

curl -X GET "https://ai.zaly.app/api/v1/signals/$SIGNAL_ID" \
  -H "Authorization: Bearer $ZALY_API_KEY"
Respuesta
CampoTipo y descripción
signalobject
summaryobject
Schemas completos de REST y MCP

Entrada MCP

{
  "type": "object",
  "properties": {
    "signal_id": {
      "type": "string",
      "minLength": 1,
      "maxLength": 160
    }
  },
  "required": [
    "signal_id"
  ],
  "additionalProperties": false
}

Respuesta JSON

{
  "type": "object",
  "properties": {
    "signal": {
      "type": "object",
      "properties": {
        "signal_id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "description": {
          "type": [
            "string",
            "null"
          ]
        },
        "kind": {
          "type": "string",
          "enum": [
            "profile_visitors",
            "received_invitations",
            "followers",
            "post_people",
            "lead_magnet",
            "watched_accounts",
            "people_search",
            "keyword_posts"
          ]
        },
        "status": {
          "type": "string",
          "enum": [
            "active",
            "paused",
            "completed",
            "deleted"
          ]
        },
        "campaign_id": {
          "type": "string"
        },
        "account_id": {
          "type": "string"
        },
        "icp_id": {
          "type": "string"
        },
        "target": {
          "anyOf": [
            {
              "type": "object",
              "properties": {},
              "additionalProperties": false
            },
            {
              "oneOf": [
                {
                  "type": "object",
                  "properties": {
                    "scope": {
                      "type": "string",
                      "const": "self"
                    }
                  },
                  "required": [
                    "scope"
                  ],
                  "additionalProperties": false
                },
                {
                  "type": "object",
                  "properties": {
                    "scope": {
                      "type": "string",
                      "const": "profile"
                    },
                    "profile_url": {
                      "type": "string",
                      "maxLength": 2000,
                      "format": "uri"
                    }
                  },
                  "required": [
                    "scope",
                    "profile_url"
                  ],
                  "additionalProperties": false
                },
                {
                  "type": "object",
                  "properties": {
                    "scope": {
                      "type": "string",
                      "const": "company"
                    },
                    "company_url": {
                      "type": "string",
                      "maxLength": 2000,
                      "format": "uri"
                    }
                  },
                  "required": [
                    "scope",
                    "company_url"
                  ],
                  "additionalProperties": false
                }
              ]
            },
            {
              "type": "object",
              "properties": {
                "post_url": {
                  "type": "string",
                  "maxLength": 2000,
                  "format": "uri"
                }
              },
              "required": [
                "post_url"
              ],
              "additionalProperties": false
            },
            {
              "type": "object",
              "properties": {
                "urls": {
                  "minItems": 1,
                  "maxItems": 20,
                  "type": "array",
                  "items": {
                    "anyOf": [
                      {
                        "type": "string",
                        "maxLength": 2000,
                        "format": "uri"
                      },
                      {
                        "type": "string",
                        "maxLength": 2000,
                        "format": "uri"
                      }
                    ]
                  }
                }
              },
              "required": [
                "urls"
              ],
              "additionalProperties": false
            },
            {
              "type": "object",
              "properties": {
                "queries": {
                  "minItems": 1,
                  "maxItems": 20,
                  "type": "array",
                  "items": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 300
                  }
                }
              },
              "required": [
                "queries"
              ],
              "additionalProperties": false
            },
            {
              "type": "object",
              "properties": {
                "post_url": {
                  "type": "string",
                  "maxLength": 2000,
                  "format": "uri"
                },
                "recipient_member_id": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 200
                },
                "keywords": {
                  "minItems": 1,
                  "maxItems": 30,
                  "type": "array",
                  "items": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 100
                  }
                },
                "resource_url": {
                  "type": "string",
                  "maxLength": 2000,
                  "format": "uri"
                },
                "templates": {
                  "type": "object",
                  "properties": {
                    "dm": {
                      "minItems": 1,
                      "maxItems": 50,
                      "type": "array",
                      "items": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 6000
                      }
                    },
                    "confirmation": {
                      "minItems": 1,
                      "maxItems": 50,
                      "type": "array",
                      "items": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 3000
                      }
                    },
                    "connection_request": {
                      "minItems": 1,
                      "maxItems": 50,
                      "type": "array",
                      "items": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 3000
                      }
                    }
                  },
                  "required": [
                    "dm",
                    "confirmation",
                    "connection_request"
                  ],
                  "additionalProperties": false
                },
                "duration_days": {
                  "type": "integer",
                  "minimum": 1,
                  "maximum": 90
                },
                "inactivity_hours": {
                  "type": "integer",
                  "minimum": 1,
                  "maximum": 168
                },
                "filter_by_icp": {
                  "default": false,
                  "type": "boolean"
                }
              },
              "required": [
                "post_url",
                "keywords",
                "resource_url",
                "templates",
                "duration_days",
                "inactivity_hours",
                "filter_by_icp"
              ],
              "additionalProperties": false
            }
          ]
        },
        "lead_magnet": {
          "type": "object",
          "properties": {
            "capture_state": {
              "type": "string",
              "enum": [
                "pending",
                "partial",
                "complete"
              ]
            },
            "created_by": {
              "type": "string",
              "minLength": 1
            },
            "started_at": {
              "type": "string",
              "format": "date-time",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
            },
            "expires_at": {
              "type": "string",
              "format": "date-time",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
            },
            "last_comment_at": {
              "type": "string",
              "format": "date-time",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
            },
            "last_capture_at": {
              "anyOf": [
                {
                  "type": "string",
                  "format": "date-time",
                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                },
                {
                  "type": "null"
                }
              ]
            },
            "stop_reason": {
              "type": [
                "string",
                "null"
              ]
            },
            "error_code": {
              "type": [
                "string",
                "null"
              ]
            }
          },
          "required": [
            "created_by",
            "started_at",
            "expires_at",
            "last_comment_at",
            "last_capture_at",
            "stop_reason"
          ],
          "additionalProperties": false
        },
        "created_at": {
          "type": "string",
          "format": "date-time",
          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
        },
        "updated_at": {
          "type": "string",
          "format": "date-time",
          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
        }
      },
      "required": [
        "signal_id",
        "name",
        "description",
        "kind",
        "status",
        "campaign_id",
        "account_id",
        "icp_id",
        "target",
        "created_at",
        "updated_at"
      ],
      "additionalProperties": false
    },
    "summary": {
      "type": "object",
      "properties": {
        "lead_magnet": {
          "type": "object",
          "properties": {
            "pending": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            "working": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            "waiting_connection": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            "completed": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            "review": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            "filtered": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            "expired": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            }
          },
          "required": [
            "pending",
            "working",
            "waiting_connection",
            "completed",
            "review",
            "filtered",
            "expired"
          ],
          "additionalProperties": false
        },
        "people_captured": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        },
        "people_processed": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        },
        "people_available": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        },
        "enrichment_pending": {
          "type": "boolean"
        },
        "as_of": {
          "type": "string",
          "format": "date-time",
          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
        }
      },
      "required": [
        "people_captured",
        "people_processed",
        "people_available",
        "enrichment_pending",
        "as_of"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "signal",
    "summary"
  ],
  "additionalProperties": false
}

Crear una señal

POST/api/v1/signals

create signal

REST: clave API o sesiónTool MCP create_signalPermiso writeReintentos con la misma clave
ParámetroDescripción
Idempotency-Keyheader · string · obligatorioAl menos 8 caracteres. Hasta 160 caracteres.
Originheader · "https://ai.zaly.app" · opcionalObligatoria en escrituras con cookie. No se requiere con Bearer.
campaign_idbody · string · obligatorioAl menos 1 caracteres. Hasta 160 caracteres.
namebody · string · obligatorioAl menos 2 caracteres. Hasta 120 caracteres.
descriptionbody · string | null · opcionalContexto descriptivo del recurso para tu equipo y el asistente.
kindbody · "profile_visitors" | "received_invitations" | "followers" | "post_people" | "lead_magnet" | "watched_accounts" | "people_search" | "keyword_posts" · obligatorioTipo de recurso o acción. Determina qué campos adicionales son necesarios.
targetbody · object · obligatorioConfiguración del origen de la señal. Depende del tipo de fuente seleccionado.

Petición

curl -X POST "https://ai.zaly.app/api/v1/signals" \
  -H "Authorization: Bearer $ZALY_API_KEY" \
  -H "Idempotency-Key: $ZALY_IDEMPOTENCY_KEY" \
  -H "Content-Type: application/json" \
  --data @payload.json

Prepara payload.json con los campos del cuerpo. Sustituye los identificadores y conserva la clave al reintentar la misma intención.

Respuesta
CampoTipo y descripción
signalobject
summaryobject
Schemas completos de REST y MCP

Cuerpo REST

{
  "type": "object",
  "properties": {
    "campaign_id": {
      "type": "string",
      "minLength": 1,
      "maxLength": 160
    },
    "name": {
      "type": "string",
      "minLength": 2,
      "maxLength": 120
    },
    "description": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 6000
        },
        {
          "type": "null"
        }
      ]
    },
    "kind": {
      "type": "string",
      "enum": [
        "profile_visitors",
        "received_invitations",
        "followers",
        "post_people",
        "lead_magnet",
        "watched_accounts",
        "people_search",
        "keyword_posts"
      ]
    },
    "target": {
      "anyOf": [
        {
          "type": "object",
          "properties": {},
          "additionalProperties": false
        },
        {
          "oneOf": [
            {
              "type": "object",
              "properties": {
                "scope": {
                  "type": "string",
                  "const": "self"
                }
              },
              "required": [
                "scope"
              ],
              "additionalProperties": false
            },
            {
              "type": "object",
              "properties": {
                "scope": {
                  "type": "string",
                  "const": "profile"
                },
                "profile_url": {
                  "type": "string",
                  "maxLength": 2000,
                  "format": "uri"
                }
              },
              "required": [
                "scope",
                "profile_url"
              ],
              "additionalProperties": false
            },
            {
              "type": "object",
              "properties": {
                "scope": {
                  "type": "string",
                  "const": "company"
                },
                "company_url": {
                  "type": "string",
                  "maxLength": 2000,
                  "format": "uri"
                }
              },
              "required": [
                "scope",
                "company_url"
              ],
              "additionalProperties": false
            }
          ]
        },
        {
          "type": "object",
          "properties": {
            "post_url": {
              "type": "string",
              "maxLength": 2000,
              "format": "uri"
            }
          },
          "required": [
            "post_url"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "urls": {
              "minItems": 1,
              "maxItems": 20,
              "type": "array",
              "items": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 2000,
                    "format": "uri"
                  },
                  {
                    "type": "string",
                    "maxLength": 2000,
                    "format": "uri"
                  }
                ]
              }
            }
          },
          "required": [
            "urls"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "queries": {
              "minItems": 1,
              "maxItems": 20,
              "type": "array",
              "items": {
                "type": "string",
                "minLength": 1,
                "maxLength": 300
              }
            }
          },
          "required": [
            "queries"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "post_url": {
              "type": "string",
              "maxLength": 2000,
              "format": "uri"
            },
            "recipient_member_id": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200
            },
            "keywords": {
              "minItems": 1,
              "maxItems": 30,
              "type": "array",
              "items": {
                "type": "string",
                "minLength": 1,
                "maxLength": 100
              }
            },
            "resource_url": {
              "type": "string",
              "maxLength": 2000,
              "format": "uri"
            },
            "templates": {
              "type": "object",
              "properties": {
                "dm": {
                  "minItems": 1,
                  "maxItems": 50,
                  "type": "array",
                  "items": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 6000
                  }
                },
                "confirmation": {
                  "minItems": 1,
                  "maxItems": 50,
                  "type": "array",
                  "items": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 3000
                  }
                },
                "connection_request": {
                  "minItems": 1,
                  "maxItems": 50,
                  "type": "array",
                  "items": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 3000
                  }
                }
              },
              "required": [
                "dm",
                "confirmation",
                "connection_request"
              ],
              "additionalProperties": false
            },
            "duration_days": {
              "type": "integer",
              "minimum": 1,
              "maximum": 90
            },
            "inactivity_hours": {
              "type": "integer",
              "minimum": 1,
              "maximum": 168
            },
            "filter_by_icp": {
              "default": false,
              "type": "boolean"
            }
          },
          "required": [
            "post_url",
            "keywords",
            "resource_url",
            "templates",
            "duration_days",
            "inactivity_hours"
          ],
          "additionalProperties": false
        }
      ]
    }
  },
  "required": [
    "campaign_id",
    "name",
    "kind",
    "target"
  ],
  "additionalProperties": false
}

Entrada MCP

{
  "type": "object",
  "properties": {
    "campaign_id": {
      "type": "string",
      "minLength": 1,
      "maxLength": 160
    },
    "name": {
      "type": "string",
      "minLength": 2,
      "maxLength": 120
    },
    "description": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 6000
        },
        {
          "type": "null"
        }
      ]
    },
    "kind": {
      "type": "string",
      "enum": [
        "profile_visitors",
        "received_invitations",
        "followers",
        "post_people",
        "lead_magnet",
        "watched_accounts",
        "people_search",
        "keyword_posts"
      ]
    },
    "target": {
      "anyOf": [
        {
          "type": "object",
          "properties": {},
          "additionalProperties": false
        },
        {
          "oneOf": [
            {
              "type": "object",
              "properties": {
                "scope": {
                  "type": "string",
                  "const": "self"
                }
              },
              "required": [
                "scope"
              ],
              "additionalProperties": false
            },
            {
              "type": "object",
              "properties": {
                "scope": {
                  "type": "string",
                  "const": "profile"
                },
                "profile_url": {
                  "type": "string",
                  "maxLength": 2000,
                  "format": "uri"
                }
              },
              "required": [
                "scope",
                "profile_url"
              ],
              "additionalProperties": false
            },
            {
              "type": "object",
              "properties": {
                "scope": {
                  "type": "string",
                  "const": "company"
                },
                "company_url": {
                  "type": "string",
                  "maxLength": 2000,
                  "format": "uri"
                }
              },
              "required": [
                "scope",
                "company_url"
              ],
              "additionalProperties": false
            }
          ]
        },
        {
          "type": "object",
          "properties": {
            "post_url": {
              "type": "string",
              "maxLength": 2000,
              "format": "uri"
            }
          },
          "required": [
            "post_url"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "urls": {
              "minItems": 1,
              "maxItems": 20,
              "type": "array",
              "items": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 2000,
                    "format": "uri"
                  },
                  {
                    "type": "string",
                    "maxLength": 2000,
                    "format": "uri"
                  }
                ]
              }
            }
          },
          "required": [
            "urls"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "queries": {
              "minItems": 1,
              "maxItems": 20,
              "type": "array",
              "items": {
                "type": "string",
                "minLength": 1,
                "maxLength": 300
              }
            }
          },
          "required": [
            "queries"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "post_url": {
              "type": "string",
              "maxLength": 2000,
              "format": "uri"
            },
            "recipient_member_id": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200
            },
            "keywords": {
              "minItems": 1,
              "maxItems": 30,
              "type": "array",
              "items": {
                "type": "string",
                "minLength": 1,
                "maxLength": 100
              }
            },
            "resource_url": {
              "type": "string",
              "maxLength": 2000,
              "format": "uri"
            },
            "templates": {
              "type": "object",
              "properties": {
                "dm": {
                  "minItems": 1,
                  "maxItems": 50,
                  "type": "array",
                  "items": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 6000
                  }
                },
                "confirmation": {
                  "minItems": 1,
                  "maxItems": 50,
                  "type": "array",
                  "items": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 3000
                  }
                },
                "connection_request": {
                  "minItems": 1,
                  "maxItems": 50,
                  "type": "array",
                  "items": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 3000
                  }
                }
              },
              "required": [
                "dm",
                "confirmation",
                "connection_request"
              ],
              "additionalProperties": false
            },
            "duration_days": {
              "type": "integer",
              "minimum": 1,
              "maximum": 90
            },
            "inactivity_hours": {
              "type": "integer",
              "minimum": 1,
              "maximum": 168
            },
            "filter_by_icp": {
              "default": false,
              "type": "boolean"
            }
          },
          "required": [
            "post_url",
            "keywords",
            "resource_url",
            "templates",
            "duration_days",
            "inactivity_hours"
          ],
          "additionalProperties": false
        }
      ]
    },
    "idempotency_key": {
      "type": "string",
      "minLength": 8,
      "maxLength": 160
    }
  },
  "required": [
    "campaign_id",
    "name",
    "kind",
    "target",
    "idempotency_key"
  ],
  "additionalProperties": false
}

Respuesta JSON

{
  "type": "object",
  "properties": {
    "signal": {
      "type": "object",
      "properties": {
        "signal_id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "description": {
          "type": [
            "string",
            "null"
          ]
        },
        "kind": {
          "type": "string",
          "enum": [
            "profile_visitors",
            "received_invitations",
            "followers",
            "post_people",
            "lead_magnet",
            "watched_accounts",
            "people_search",
            "keyword_posts"
          ]
        },
        "status": {
          "type": "string",
          "enum": [
            "active",
            "paused",
            "completed",
            "deleted"
          ]
        },
        "campaign_id": {
          "type": "string"
        },
        "account_id": {
          "type": "string"
        },
        "icp_id": {
          "type": "string"
        },
        "target": {
          "anyOf": [
            {
              "type": "object",
              "properties": {},
              "additionalProperties": false
            },
            {
              "oneOf": [
                {
                  "type": "object",
                  "properties": {
                    "scope": {
                      "type": "string",
                      "const": "self"
                    }
                  },
                  "required": [
                    "scope"
                  ],
                  "additionalProperties": false
                },
                {
                  "type": "object",
                  "properties": {
                    "scope": {
                      "type": "string",
                      "const": "profile"
                    },
                    "profile_url": {
                      "type": "string",
                      "maxLength": 2000,
                      "format": "uri"
                    }
                  },
                  "required": [
                    "scope",
                    "profile_url"
                  ],
                  "additionalProperties": false
                },
                {
                  "type": "object",
                  "properties": {
                    "scope": {
                      "type": "string",
                      "const": "company"
                    },
                    "company_url": {
                      "type": "string",
                      "maxLength": 2000,
                      "format": "uri"
                    }
                  },
                  "required": [
                    "scope",
                    "company_url"
                  ],
                  "additionalProperties": false
                }
              ]
            },
            {
              "type": "object",
              "properties": {
                "post_url": {
                  "type": "string",
                  "maxLength": 2000,
                  "format": "uri"
                }
              },
              "required": [
                "post_url"
              ],
              "additionalProperties": false
            },
            {
              "type": "object",
              "properties": {
                "urls": {
                  "minItems": 1,
                  "maxItems": 20,
                  "type": "array",
                  "items": {
                    "anyOf": [
                      {
                        "type": "string",
                        "maxLength": 2000,
                        "format": "uri"
                      },
                      {
                        "type": "string",
                        "maxLength": 2000,
                        "format": "uri"
                      }
                    ]
                  }
                }
              },
              "required": [
                "urls"
              ],
              "additionalProperties": false
            },
            {
              "type": "object",
              "properties": {
                "queries": {
                  "minItems": 1,
                  "maxItems": 20,
                  "type": "array",
                  "items": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 300
                  }
                }
              },
              "required": [
                "queries"
              ],
              "additionalProperties": false
            },
            {
              "type": "object",
              "properties": {
                "post_url": {
                  "type": "string",
                  "maxLength": 2000,
                  "format": "uri"
                },
                "recipient_member_id": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 200
                },
                "keywords": {
                  "minItems": 1,
                  "maxItems": 30,
                  "type": "array",
                  "items": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 100
                  }
                },
                "resource_url": {
                  "type": "string",
                  "maxLength": 2000,
                  "format": "uri"
                },
                "templates": {
                  "type": "object",
                  "properties": {
                    "dm": {
                      "minItems": 1,
                      "maxItems": 50,
                      "type": "array",
                      "items": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 6000
                      }
                    },
                    "confirmation": {
                      "minItems": 1,
                      "maxItems": 50,
                      "type": "array",
                      "items": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 3000
                      }
                    },
                    "connection_request": {
                      "minItems": 1,
                      "maxItems": 50,
                      "type": "array",
                      "items": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 3000
                      }
                    }
                  },
                  "required": [
                    "dm",
                    "confirmation",
                    "connection_request"
                  ],
                  "additionalProperties": false
                },
                "duration_days": {
                  "type": "integer",
                  "minimum": 1,
                  "maximum": 90
                },
                "inactivity_hours": {
                  "type": "integer",
                  "minimum": 1,
                  "maximum": 168
                },
                "filter_by_icp": {
                  "default": false,
                  "type": "boolean"
                }
              },
              "required": [
                "post_url",
                "keywords",
                "resource_url",
                "templates",
                "duration_days",
                "inactivity_hours",
                "filter_by_icp"
              ],
              "additionalProperties": false
            }
          ]
        },
        "lead_magnet": {
          "type": "object",
          "properties": {
            "capture_state": {
              "type": "string",
              "enum": [
                "pending",
                "partial",
                "complete"
              ]
            },
            "created_by": {
              "type": "string",
              "minLength": 1
            },
            "started_at": {
              "type": "string",
              "format": "date-time",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
            },
            "expires_at": {
              "type": "string",
              "format": "date-time",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
            },
            "last_comment_at": {
              "type": "string",
              "format": "date-time",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
            },
            "last_capture_at": {
              "anyOf": [
                {
                  "type": "string",
                  "format": "date-time",
                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                },
                {
                  "type": "null"
                }
              ]
            },
            "stop_reason": {
              "type": [
                "string",
                "null"
              ]
            },
            "error_code": {
              "type": [
                "string",
                "null"
              ]
            }
          },
          "required": [
            "created_by",
            "started_at",
            "expires_at",
            "last_comment_at",
            "last_capture_at",
            "stop_reason"
          ],
          "additionalProperties": false
        },
        "created_at": {
          "type": "string",
          "format": "date-time",
          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
        },
        "updated_at": {
          "type": "string",
          "format": "date-time",
          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
        }
      },
      "required": [
        "signal_id",
        "name",
        "description",
        "kind",
        "status",
        "campaign_id",
        "account_id",
        "icp_id",
        "target",
        "created_at",
        "updated_at"
      ],
      "additionalProperties": false
    },
    "summary": {
      "type": "object",
      "properties": {
        "lead_magnet": {
          "type": "object",
          "properties": {
            "pending": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            "working": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            "waiting_connection": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            "completed": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            "review": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            "filtered": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            "expired": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            }
          },
          "required": [
            "pending",
            "working",
            "waiting_connection",
            "completed",
            "review",
            "filtered",
            "expired"
          ],
          "additionalProperties": false
        },
        "people_captured": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        },
        "people_processed": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        },
        "people_available": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        },
        "enrichment_pending": {
          "type": "boolean"
        },
        "as_of": {
          "type": "string",
          "format": "date-time",
          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
        }
      },
      "required": [
        "people_captured",
        "people_processed",
        "people_available",
        "enrichment_pending",
        "as_of"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "signal",
    "summary"
  ],
  "additionalProperties": false
}

Actualizar una señal

PATCH/api/v1/signals/{signalId}

update signal

REST: clave API o sesiónTool MCP update_signalPermiso writeReintentos con la misma claveRequiere revisión
ParámetroDescripción
signalIdpath · string · obligatorioAl menos 1 caracteres. Hasta 160 caracteres.
Idempotency-Keyheader · string · obligatorioAl menos 8 caracteres. Hasta 160 caracteres.
Originheader · "https://ai.zaly.app" · opcionalObligatoria en escrituras con cookie. No se requiere con Bearer.
namebody · string · opcionalAl menos 2 caracteres. Hasta 120 caracteres.
descriptionbody · string | null · opcionalContexto descriptivo del recurso para tu equipo y el asistente.
targetbody · object · opcionalConfiguración del origen de la señal. Depende del tipo de fuente seleccionado.
statusbody · "active" | "paused" | "deleted" · opcionalEstado del recurso. Comprueba los valores admitidos antes de filtrar o actualizar.

Petición

curl -X PATCH "https://ai.zaly.app/api/v1/signals/$SIGNAL_ID" \
  -H "Authorization: Bearer $ZALY_API_KEY" \
  -H "Idempotency-Key: $ZALY_IDEMPOTENCY_KEY" \
  -H "Content-Type: application/json" \
  --data @payload.json

Prepara payload.json con los campos del cuerpo. Sustituye los identificadores y conserva la clave al reintentar la misma intención.

Respuesta
CampoTipo y descripción
signalobject
summaryobject
Schemas completos de REST y MCP

Cuerpo REST

{
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "minLength": 2,
      "maxLength": 120
    },
    "description": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 6000
        },
        {
          "type": "null"
        }
      ]
    },
    "target": {
      "anyOf": [
        {
          "type": "object",
          "properties": {},
          "additionalProperties": false
        },
        {
          "oneOf": [
            {
              "type": "object",
              "properties": {
                "scope": {
                  "type": "string",
                  "const": "self"
                }
              },
              "required": [
                "scope"
              ],
              "additionalProperties": false
            },
            {
              "type": "object",
              "properties": {
                "scope": {
                  "type": "string",
                  "const": "profile"
                },
                "profile_url": {
                  "type": "string",
                  "maxLength": 2000,
                  "format": "uri"
                }
              },
              "required": [
                "scope",
                "profile_url"
              ],
              "additionalProperties": false
            },
            {
              "type": "object",
              "properties": {
                "scope": {
                  "type": "string",
                  "const": "company"
                },
                "company_url": {
                  "type": "string",
                  "maxLength": 2000,
                  "format": "uri"
                }
              },
              "required": [
                "scope",
                "company_url"
              ],
              "additionalProperties": false
            }
          ]
        },
        {
          "type": "object",
          "properties": {
            "post_url": {
              "type": "string",
              "maxLength": 2000,
              "format": "uri"
            }
          },
          "required": [
            "post_url"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "urls": {
              "minItems": 1,
              "maxItems": 20,
              "type": "array",
              "items": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 2000,
                    "format": "uri"
                  },
                  {
                    "type": "string",
                    "maxLength": 2000,
                    "format": "uri"
                  }
                ]
              }
            }
          },
          "required": [
            "urls"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "queries": {
              "minItems": 1,
              "maxItems": 20,
              "type": "array",
              "items": {
                "type": "string",
                "minLength": 1,
                "maxLength": 300
              }
            }
          },
          "required": [
            "queries"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "post_url": {
              "type": "string",
              "maxLength": 2000,
              "format": "uri"
            },
            "recipient_member_id": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200
            },
            "keywords": {
              "minItems": 1,
              "maxItems": 30,
              "type": "array",
              "items": {
                "type": "string",
                "minLength": 1,
                "maxLength": 100
              }
            },
            "resource_url": {
              "type": "string",
              "maxLength": 2000,
              "format": "uri"
            },
            "templates": {
              "type": "object",
              "properties": {
                "dm": {
                  "minItems": 1,
                  "maxItems": 50,
                  "type": "array",
                  "items": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 6000
                  }
                },
                "confirmation": {
                  "minItems": 1,
                  "maxItems": 50,
                  "type": "array",
                  "items": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 3000
                  }
                },
                "connection_request": {
                  "minItems": 1,
                  "maxItems": 50,
                  "type": "array",
                  "items": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 3000
                  }
                }
              },
              "required": [
                "dm",
                "confirmation",
                "connection_request"
              ],
              "additionalProperties": false
            },
            "duration_days": {
              "type": "integer",
              "minimum": 1,
              "maximum": 90
            },
            "inactivity_hours": {
              "type": "integer",
              "minimum": 1,
              "maximum": 168
            },
            "filter_by_icp": {
              "default": false,
              "type": "boolean"
            }
          },
          "required": [
            "post_url",
            "keywords",
            "resource_url",
            "templates",
            "duration_days",
            "inactivity_hours"
          ],
          "additionalProperties": false
        }
      ]
    },
    "status": {
      "type": "string",
      "enum": [
        "active",
        "paused",
        "deleted"
      ]
    }
  },
  "additionalProperties": false
}

Entrada MCP

{
  "type": "object",
  "properties": {
    "signal_id": {
      "type": "string",
      "minLength": 1,
      "maxLength": 160
    },
    "name": {
      "type": "string",
      "minLength": 2,
      "maxLength": 120
    },
    "description": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 6000
        },
        {
          "type": "null"
        }
      ]
    },
    "target": {
      "anyOf": [
        {
          "type": "object",
          "properties": {},
          "additionalProperties": false
        },
        {
          "oneOf": [
            {
              "type": "object",
              "properties": {
                "scope": {
                  "type": "string",
                  "const": "self"
                }
              },
              "required": [
                "scope"
              ],
              "additionalProperties": false
            },
            {
              "type": "object",
              "properties": {
                "scope": {
                  "type": "string",
                  "const": "profile"
                },
                "profile_url": {
                  "type": "string",
                  "maxLength": 2000,
                  "format": "uri"
                }
              },
              "required": [
                "scope",
                "profile_url"
              ],
              "additionalProperties": false
            },
            {
              "type": "object",
              "properties": {
                "scope": {
                  "type": "string",
                  "const": "company"
                },
                "company_url": {
                  "type": "string",
                  "maxLength": 2000,
                  "format": "uri"
                }
              },
              "required": [
                "scope",
                "company_url"
              ],
              "additionalProperties": false
            }
          ]
        },
        {
          "type": "object",
          "properties": {
            "post_url": {
              "type": "string",
              "maxLength": 2000,
              "format": "uri"
            }
          },
          "required": [
            "post_url"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "urls": {
              "minItems": 1,
              "maxItems": 20,
              "type": "array",
              "items": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 2000,
                    "format": "uri"
                  },
                  {
                    "type": "string",
                    "maxLength": 2000,
                    "format": "uri"
                  }
                ]
              }
            }
          },
          "required": [
            "urls"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "queries": {
              "minItems": 1,
              "maxItems": 20,
              "type": "array",
              "items": {
                "type": "string",
                "minLength": 1,
                "maxLength": 300
              }
            }
          },
          "required": [
            "queries"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "post_url": {
              "type": "string",
              "maxLength": 2000,
              "format": "uri"
            },
            "recipient_member_id": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200
            },
            "keywords": {
              "minItems": 1,
              "maxItems": 30,
              "type": "array",
              "items": {
                "type": "string",
                "minLength": 1,
                "maxLength": 100
              }
            },
            "resource_url": {
              "type": "string",
              "maxLength": 2000,
              "format": "uri"
            },
            "templates": {
              "type": "object",
              "properties": {
                "dm": {
                  "minItems": 1,
                  "maxItems": 50,
                  "type": "array",
                  "items": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 6000
                  }
                },
                "confirmation": {
                  "minItems": 1,
                  "maxItems": 50,
                  "type": "array",
                  "items": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 3000
                  }
                },
                "connection_request": {
                  "minItems": 1,
                  "maxItems": 50,
                  "type": "array",
                  "items": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 3000
                  }
                }
              },
              "required": [
                "dm",
                "confirmation",
                "connection_request"
              ],
              "additionalProperties": false
            },
            "duration_days": {
              "type": "integer",
              "minimum": 1,
              "maximum": 90
            },
            "inactivity_hours": {
              "type": "integer",
              "minimum": 1,
              "maximum": 168
            },
            "filter_by_icp": {
              "default": false,
              "type": "boolean"
            }
          },
          "required": [
            "post_url",
            "keywords",
            "resource_url",
            "templates",
            "duration_days",
            "inactivity_hours"
          ],
          "additionalProperties": false
        }
      ]
    },
    "status": {
      "type": "string",
      "enum": [
        "active",
        "paused",
        "deleted"
      ]
    },
    "idempotency_key": {
      "type": "string",
      "minLength": 8,
      "maxLength": 160
    }
  },
  "required": [
    "signal_id",
    "idempotency_key"
  ],
  "additionalProperties": false
}

Respuesta JSON

{
  "type": "object",
  "properties": {
    "signal": {
      "type": "object",
      "properties": {
        "signal_id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "description": {
          "type": [
            "string",
            "null"
          ]
        },
        "kind": {
          "type": "string",
          "enum": [
            "profile_visitors",
            "received_invitations",
            "followers",
            "post_people",
            "lead_magnet",
            "watched_accounts",
            "people_search",
            "keyword_posts"
          ]
        },
        "status": {
          "type": "string",
          "enum": [
            "active",
            "paused",
            "completed",
            "deleted"
          ]
        },
        "campaign_id": {
          "type": "string"
        },
        "account_id": {
          "type": "string"
        },
        "icp_id": {
          "type": "string"
        },
        "target": {
          "anyOf": [
            {
              "type": "object",
              "properties": {},
              "additionalProperties": false
            },
            {
              "oneOf": [
                {
                  "type": "object",
                  "properties": {
                    "scope": {
                      "type": "string",
                      "const": "self"
                    }
                  },
                  "required": [
                    "scope"
                  ],
                  "additionalProperties": false
                },
                {
                  "type": "object",
                  "properties": {
                    "scope": {
                      "type": "string",
                      "const": "profile"
                    },
                    "profile_url": {
                      "type": "string",
                      "maxLength": 2000,
                      "format": "uri"
                    }
                  },
                  "required": [
                    "scope",
                    "profile_url"
                  ],
                  "additionalProperties": false
                },
                {
                  "type": "object",
                  "properties": {
                    "scope": {
                      "type": "string",
                      "const": "company"
                    },
                    "company_url": {
                      "type": "string",
                      "maxLength": 2000,
                      "format": "uri"
                    }
                  },
                  "required": [
                    "scope",
                    "company_url"
                  ],
                  "additionalProperties": false
                }
              ]
            },
            {
              "type": "object",
              "properties": {
                "post_url": {
                  "type": "string",
                  "maxLength": 2000,
                  "format": "uri"
                }
              },
              "required": [
                "post_url"
              ],
              "additionalProperties": false
            },
            {
              "type": "object",
              "properties": {
                "urls": {
                  "minItems": 1,
                  "maxItems": 20,
                  "type": "array",
                  "items": {
                    "anyOf": [
                      {
                        "type": "string",
                        "maxLength": 2000,
                        "format": "uri"
                      },
                      {
                        "type": "string",
                        "maxLength": 2000,
                        "format": "uri"
                      }
                    ]
                  }
                }
              },
              "required": [
                "urls"
              ],
              "additionalProperties": false
            },
            {
              "type": "object",
              "properties": {
                "queries": {
                  "minItems": 1,
                  "maxItems": 20,
                  "type": "array",
                  "items": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 300
                  }
                }
              },
              "required": [
                "queries"
              ],
              "additionalProperties": false
            },
            {
              "type": "object",
              "properties": {
                "post_url": {
                  "type": "string",
                  "maxLength": 2000,
                  "format": "uri"
                },
                "recipient_member_id": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 200
                },
                "keywords": {
                  "minItems": 1,
                  "maxItems": 30,
                  "type": "array",
                  "items": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 100
                  }
                },
                "resource_url": {
                  "type": "string",
                  "maxLength": 2000,
                  "format": "uri"
                },
                "templates": {
                  "type": "object",
                  "properties": {
                    "dm": {
                      "minItems": 1,
                      "maxItems": 50,
                      "type": "array",
                      "items": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 6000
                      }
                    },
                    "confirmation": {
                      "minItems": 1,
                      "maxItems": 50,
                      "type": "array",
                      "items": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 3000
                      }
                    },
                    "connection_request": {
                      "minItems": 1,
                      "maxItems": 50,
                      "type": "array",
                      "items": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 3000
                      }
                    }
                  },
                  "required": [
                    "dm",
                    "confirmation",
                    "connection_request"
                  ],
                  "additionalProperties": false
                },
                "duration_days": {
                  "type": "integer",
                  "minimum": 1,
                  "maximum": 90
                },
                "inactivity_hours": {
                  "type": "integer",
                  "minimum": 1,
                  "maximum": 168
                },
                "filter_by_icp": {
                  "default": false,
                  "type": "boolean"
                }
              },
              "required": [
                "post_url",
                "keywords",
                "resource_url",
                "templates",
                "duration_days",
                "inactivity_hours",
                "filter_by_icp"
              ],
              "additionalProperties": false
            }
          ]
        },
        "lead_magnet": {
          "type": "object",
          "properties": {
            "capture_state": {
              "type": "string",
              "enum": [
                "pending",
                "partial",
                "complete"
              ]
            },
            "created_by": {
              "type": "string",
              "minLength": 1
            },
            "started_at": {
              "type": "string",
              "format": "date-time",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
            },
            "expires_at": {
              "type": "string",
              "format": "date-time",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
            },
            "last_comment_at": {
              "type": "string",
              "format": "date-time",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
            },
            "last_capture_at": {
              "anyOf": [
                {
                  "type": "string",
                  "format": "date-time",
                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                },
                {
                  "type": "null"
                }
              ]
            },
            "stop_reason": {
              "type": [
                "string",
                "null"
              ]
            },
            "error_code": {
              "type": [
                "string",
                "null"
              ]
            }
          },
          "required": [
            "created_by",
            "started_at",
            "expires_at",
            "last_comment_at",
            "last_capture_at",
            "stop_reason"
          ],
          "additionalProperties": false
        },
        "created_at": {
          "type": "string",
          "format": "date-time",
          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
        },
        "updated_at": {
          "type": "string",
          "format": "date-time",
          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
        }
      },
      "required": [
        "signal_id",
        "name",
        "description",
        "kind",
        "status",
        "campaign_id",
        "account_id",
        "icp_id",
        "target",
        "created_at",
        "updated_at"
      ],
      "additionalProperties": false
    },
    "summary": {
      "type": "object",
      "properties": {
        "lead_magnet": {
          "type": "object",
          "properties": {
            "pending": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            "working": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            "waiting_connection": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            "completed": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            "review": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            "filtered": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            "expired": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            }
          },
          "required": [
            "pending",
            "working",
            "waiting_connection",
            "completed",
            "review",
            "filtered",
            "expired"
          ],
          "additionalProperties": false
        },
        "people_captured": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        },
        "people_processed": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        },
        "people_available": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        },
        "enrichment_pending": {
          "type": "boolean"
        },
        "as_of": {
          "type": "string",
          "format": "date-time",
          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
        }
      },
      "required": [
        "people_captured",
        "people_processed",
        "people_available",
        "enrichment_pending",
        "as_of"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "signal",
    "summary"
  ],
  "additionalProperties": false
}

Personas

Perfiles disponibles y solicitudes de datos de contacto.

Buscar personas

GET/api/v1/people

list people

REST: clave API o sesiónTool MCP list_peoplePermiso readSolo lecturaReintentos con la misma clave
ParámetroDescripción
campaign_idquery · string · opcionalAl menos 1 caracteres. Hasta 160 caracteres.
signal_idquery · string · opcionalAl menos 1 caracteres. Hasta 160 caracteres.
queryquery · string · opcionalAl menos 1 caracteres. Hasta 2048 caracteres.
limitquery · integer · opcionalPor defecto: 25. Mínimo: 1. Máximo: 50.
cursorquery · string | null · opcionalCursor devuelto por la página anterior. Omítelo en la primera consulta.

Petición

curl -X GET "https://ai.zaly.app/api/v1/people" \
  -H "Authorization: Bearer $ZALY_API_KEY"
Respuesta
CampoTipo y descripción
itemsarray de object
returned_countintegerMínimo: 0. Máximo: 9007199254740991.
has_moreboolean
next_cursorstring | null
as_ofstring · date-time
Schemas completos de REST y MCP

Entrada MCP

{
  "type": "object",
  "properties": {
    "campaign_id": {
      "type": "string",
      "minLength": 1,
      "maxLength": 160
    },
    "signal_id": {
      "type": "string",
      "minLength": 1,
      "maxLength": 160
    },
    "query": {
      "type": "string",
      "minLength": 1,
      "maxLength": 2048
    },
    "limit": {
      "default": 25,
      "type": "integer",
      "minimum": 1,
      "maximum": 50
    },
    "cursor": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 2000
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "additionalProperties": false
}

Respuesta JSON

{
  "type": "object",
  "properties": {
    "items": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "contact_details": {
            "type": "object",
            "properties": {
              "emails": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "phones": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "requests": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "person_id": {
                      "type": "string"
                    },
                    "kind": {
                      "type": "string",
                      "enum": [
                        "email",
                        "phone"
                      ]
                    },
                    "state": {
                      "type": "string",
                      "enum": [
                        "queued",
                        "pending",
                        "waiting_balance",
                        "found",
                        "not_found",
                        "failed",
                        "cancelled"
                      ]
                    },
                    "verified": {
                      "type": "boolean"
                    },
                    "error_code": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "updated_at": {
                      "type": "string",
                      "format": "date-time",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                    },
                    "synthetic": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "person_id",
                    "kind",
                    "state",
                    "verified",
                    "error_code",
                    "updated_at",
                    "synthetic"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "required": [
              "emails",
              "phones",
              "requests"
            ],
            "additionalProperties": false
          },
          "person_id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "company": {
            "type": "string"
          },
          "linkedin_url": {
            "type": "string"
          },
          "contexts": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "campaign_id": {
                  "type": "string"
                },
                "campaign_name": {
                  "type": "string"
                },
                "last_linkedin_outbound": {
                  "anyOf": [
                    {
                      "type": "object",
                      "properties": {
                        "message_id": {
                          "type": "string"
                        },
                        "account_id": {
                          "type": "string"
                        },
                        "occurred_at": {
                          "type": "string",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                        },
                        "read_receipt": {
                          "oneOf": [
                            {
                              "type": "object",
                              "properties": {
                                "status": {
                                  "type": "string",
                                  "const": "not_applicable"
                                }
                              },
                              "required": [
                                "status"
                              ],
                              "additionalProperties": false
                            },
                            {
                              "type": "object",
                              "properties": {
                                "status": {
                                  "type": "string",
                                  "const": "unknown"
                                }
                              },
                              "required": [
                                "status"
                              ],
                              "additionalProperties": false
                            },
                            {
                              "type": "object",
                              "properties": {
                                "status": {
                                  "type": "string",
                                  "const": "read"
                                },
                                "read_at": {
                                  "type": "string",
                                  "format": "date-time",
                                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                                }
                              },
                              "required": [
                                "status",
                                "read_at"
                              ],
                              "additionalProperties": false
                            }
                          ]
                        },
                        "reply_status": {
                          "type": "string",
                          "enum": [
                            "reply_observed",
                            "no_reply_observed"
                          ]
                        }
                      },
                      "required": [
                        "message_id",
                        "account_id",
                        "occurred_at",
                        "read_receipt",
                        "reply_status"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "account_id": {
                  "type": "string"
                },
                "icp_id": {
                  "type": "string"
                },
                "initial_scoring_policy": {
                  "type": "string",
                  "enum": [
                    "icp_gate",
                    "contact_all_after_enrichment"
                  ]
                },
                "participation": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "status"
                  ],
                  "additionalProperties": false
                },
                "evaluation": {
                  "type": "object",
                  "properties": {
                    "decision": {
                      "anyOf": [
                        {
                          "type": "string",
                          "enum": [
                            "retained",
                            "rejected"
                          ]
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "professional_score": {
                      "type": [
                        "number",
                        "null"
                      ]
                    },
                    "coverage": {
                      "type": "number"
                    },
                    "evaluated_at": {
                      "type": "string",
                      "format": "date-time",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                    },
                    "synthetic": {
                      "type": "boolean"
                    },
                    "employments": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "employment_ref": {
                            "type": "string"
                          },
                          "company_ref": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "selected": {
                            "type": "boolean"
                          },
                          "decision": {
                            "type": "string",
                            "enum": [
                              "retained",
                              "rejected"
                            ]
                          },
                          "vetoes": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          },
                          "dimensions": {
                            "type": "object",
                            "properties": {
                              "role": {
                                "type": "object",
                                "properties": {
                                  "points": {
                                    "type": [
                                      "string",
                                      "null"
                                    ]
                                  },
                                  "maximum": {
                                    "type": "integer",
                                    "minimum": -9007199254740991,
                                    "maximum": 9007199254740991
                                  }
                                },
                                "required": [
                                  "points",
                                  "maximum"
                                ],
                                "additionalProperties": false
                              },
                              "scope": {
                                "type": "object",
                                "properties": {
                                  "points": {
                                    "type": [
                                      "string",
                                      "null"
                                    ]
                                  },
                                  "maximum": {
                                    "type": "integer",
                                    "minimum": -9007199254740991,
                                    "maximum": 9007199254740991
                                  }
                                },
                                "required": [
                                  "points",
                                  "maximum"
                                ],
                                "additionalProperties": false
                              },
                              "activity": {
                                "type": "object",
                                "properties": {
                                  "points": {
                                    "type": [
                                      "string",
                                      "null"
                                    ]
                                  },
                                  "maximum": {
                                    "type": "integer",
                                    "minimum": -9007199254740991,
                                    "maximum": 9007199254740991
                                  }
                                },
                                "required": [
                                  "points",
                                  "maximum"
                                ],
                                "additionalProperties": false
                              },
                              "size": {
                                "type": "object",
                                "properties": {
                                  "points": {
                                    "type": [
                                      "string",
                                      "null"
                                    ]
                                  },
                                  "maximum": {
                                    "type": "integer",
                                    "minimum": -9007199254740991,
                                    "maximum": 9007199254740991
                                  },
                                  "state": {
                                    "type": "string",
                                    "enum": [
                                      "compatible",
                                      "incompatible",
                                      "unknown",
                                      "not_applicable"
                                    ]
                                  }
                                },
                                "required": [
                                  "points",
                                  "maximum",
                                  "state"
                                ],
                                "additionalProperties": false
                              },
                              "location": {
                                "type": "object",
                                "properties": {
                                  "points": {
                                    "type": [
                                      "string",
                                      "null"
                                    ]
                                  },
                                  "maximum": {
                                    "type": "integer",
                                    "minimum": -9007199254740991,
                                    "maximum": 9007199254740991
                                  },
                                  "state": {
                                    "type": "string",
                                    "enum": [
                                      "compatible",
                                      "incompatible",
                                      "unknown",
                                      "not_applicable"
                                    ]
                                  }
                                },
                                "required": [
                                  "points",
                                  "maximum",
                                  "state"
                                ],
                                "additionalProperties": false
                              }
                            },
                            "required": [
                              "role",
                              "scope",
                              "activity",
                              "size",
                              "location"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "required": [
                          "employment_ref",
                          "company_ref",
                          "selected",
                          "decision",
                          "vetoes",
                          "dimensions"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "decision",
                    "professional_score",
                    "coverage",
                    "evaluated_at",
                    "synthetic"
                  ],
                  "additionalProperties": false
                },
                "relationship": {
                  "type": "object",
                  "properties": {
                    "state": {
                      "type": "string",
                      "enum": [
                        "connected",
                        "not_connected",
                        "unknown"
                      ]
                    },
                    "reason": {
                      "type": "string"
                    },
                    "observed_at": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "account_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "state",
                    "reason",
                    "observed_at",
                    "account_id"
                  ],
                  "additionalProperties": false
                },
                "scores": {
                  "type": "object",
                  "properties": {
                    "professional_score": {
                      "type": [
                        "number",
                        "null"
                      ]
                    },
                    "conversation_score": {
                      "type": "number"
                    },
                    "lead_score": {
                      "type": [
                        "number",
                        "null"
                      ]
                    }
                  },
                  "required": [
                    "professional_score",
                    "conversation_score",
                    "lead_score"
                  ],
                  "additionalProperties": false
                }
              },
              "required": [
                "campaign_id",
                "campaign_name",
                "last_linkedin_outbound",
                "account_id",
                "icp_id",
                "initial_scoring_policy",
                "participation",
                "evaluation",
                "relationship",
                "scores"
              ],
              "additionalProperties": false
            }
          }
        },
        "required": [
          "person_id",
          "name",
          "title",
          "company",
          "linkedin_url",
          "contexts"
        ],
        "additionalProperties": false
      }
    },
    "returned_count": {
      "type": "integer",
      "minimum": 0,
      "maximum": 9007199254740991
    },
    "has_more": {
      "type": "boolean"
    },
    "next_cursor": {
      "type": [
        "string",
        "null"
      ]
    },
    "as_of": {
      "type": "string",
      "format": "date-time",
      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
    }
  },
  "required": [
    "items",
    "returned_count",
    "has_more",
    "next_cursor",
    "as_of"
  ],
  "additionalProperties": false
}

Consultar una persona

GET/api/v1/people/lookup

get person

REST: clave API o sesiónTool MCP get_personPermiso readSolo lecturaReintentos con la misma clave
ParámetroDescripción
campaign_idquery · string · opcionalAl menos 1 caracteres. Hasta 160 caracteres.
signal_idquery · string · opcionalAl menos 1 caracteres. Hasta 160 caracteres.
person_idquery · string · opcionalAl menos 1 caracteres. Hasta 160 caracteres.
linkedin_urlquery · string · opcionalHasta 2048 caracteres.

Petición

curl -X GET "https://ai.zaly.app/api/v1/people/lookup" \
  -H "Authorization: Bearer $ZALY_API_KEY"
Respuesta
CampoTipo y descripción
personobject
Schemas completos de REST y MCP

Entrada MCP

{
  "type": "object",
  "properties": {
    "campaign_id": {
      "type": "string",
      "minLength": 1,
      "maxLength": 160
    },
    "signal_id": {
      "type": "string",
      "minLength": 1,
      "maxLength": 160
    },
    "person_id": {
      "type": "string",
      "minLength": 1,
      "maxLength": 160
    },
    "linkedin_url": {
      "type": "string",
      "maxLength": 2048
    }
  },
  "additionalProperties": false
}

Respuesta JSON

{
  "type": "object",
  "properties": {
    "person": {
      "type": "object",
      "properties": {
        "contact_details": {
          "type": "object",
          "properties": {
            "emails": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "phones": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "requests": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "person_id": {
                    "type": "string"
                  },
                  "kind": {
                    "type": "string",
                    "enum": [
                      "email",
                      "phone"
                    ]
                  },
                  "state": {
                    "type": "string",
                    "enum": [
                      "queued",
                      "pending",
                      "waiting_balance",
                      "found",
                      "not_found",
                      "failed",
                      "cancelled"
                    ]
                  },
                  "verified": {
                    "type": "boolean"
                  },
                  "error_code": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "updated_at": {
                    "type": "string",
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                  },
                  "synthetic": {
                    "type": "boolean"
                  }
                },
                "required": [
                  "person_id",
                  "kind",
                  "state",
                  "verified",
                  "error_code",
                  "updated_at",
                  "synthetic"
                ],
                "additionalProperties": false
              }
            }
          },
          "required": [
            "emails",
            "phones",
            "requests"
          ],
          "additionalProperties": false
        },
        "person_id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "title": {
          "type": "string"
        },
        "company": {
          "type": "string"
        },
        "linkedin_url": {
          "type": "string"
        },
        "contexts": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "campaign_id": {
                "type": "string"
              },
              "campaign_name": {
                "type": "string"
              },
              "last_linkedin_outbound": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "message_id": {
                        "type": "string"
                      },
                      "account_id": {
                        "type": "string"
                      },
                      "occurred_at": {
                        "type": "string",
                        "format": "date-time",
                        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                      },
                      "read_receipt": {
                        "oneOf": [
                          {
                            "type": "object",
                            "properties": {
                              "status": {
                                "type": "string",
                                "const": "not_applicable"
                              }
                            },
                            "required": [
                              "status"
                            ],
                            "additionalProperties": false
                          },
                          {
                            "type": "object",
                            "properties": {
                              "status": {
                                "type": "string",
                                "const": "unknown"
                              }
                            },
                            "required": [
                              "status"
                            ],
                            "additionalProperties": false
                          },
                          {
                            "type": "object",
                            "properties": {
                              "status": {
                                "type": "string",
                                "const": "read"
                              },
                              "read_at": {
                                "type": "string",
                                "format": "date-time",
                                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                              }
                            },
                            "required": [
                              "status",
                              "read_at"
                            ],
                            "additionalProperties": false
                          }
                        ]
                      },
                      "reply_status": {
                        "type": "string",
                        "enum": [
                          "reply_observed",
                          "no_reply_observed"
                        ]
                      }
                    },
                    "required": [
                      "message_id",
                      "account_id",
                      "occurred_at",
                      "read_receipt",
                      "reply_status"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "account_id": {
                "type": "string"
              },
              "icp_id": {
                "type": "string"
              },
              "initial_scoring_policy": {
                "type": "string",
                "enum": [
                  "icp_gate",
                  "contact_all_after_enrichment"
                ]
              },
              "participation": {
                "type": "object",
                "properties": {
                  "status": {
                    "type": "string"
                  }
                },
                "required": [
                  "status"
                ],
                "additionalProperties": false
              },
              "evaluation": {
                "type": "object",
                "properties": {
                  "decision": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "retained",
                          "rejected"
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "professional_score": {
                    "type": [
                      "number",
                      "null"
                    ]
                  },
                  "coverage": {
                    "type": "number"
                  },
                  "evaluated_at": {
                    "type": "string",
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                  },
                  "synthetic": {
                    "type": "boolean"
                  },
                  "employments": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "employment_ref": {
                          "type": "string"
                        },
                        "company_ref": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "selected": {
                          "type": "boolean"
                        },
                        "decision": {
                          "type": "string",
                          "enum": [
                            "retained",
                            "rejected"
                          ]
                        },
                        "vetoes": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        },
                        "dimensions": {
                          "type": "object",
                          "properties": {
                            "role": {
                              "type": "object",
                              "properties": {
                                "points": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "maximum": {
                                  "type": "integer",
                                  "minimum": -9007199254740991,
                                  "maximum": 9007199254740991
                                }
                              },
                              "required": [
                                "points",
                                "maximum"
                              ],
                              "additionalProperties": false
                            },
                            "scope": {
                              "type": "object",
                              "properties": {
                                "points": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "maximum": {
                                  "type": "integer",
                                  "minimum": -9007199254740991,
                                  "maximum": 9007199254740991
                                }
                              },
                              "required": [
                                "points",
                                "maximum"
                              ],
                              "additionalProperties": false
                            },
                            "activity": {
                              "type": "object",
                              "properties": {
                                "points": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "maximum": {
                                  "type": "integer",
                                  "minimum": -9007199254740991,
                                  "maximum": 9007199254740991
                                }
                              },
                              "required": [
                                "points",
                                "maximum"
                              ],
                              "additionalProperties": false
                            },
                            "size": {
                              "type": "object",
                              "properties": {
                                "points": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "maximum": {
                                  "type": "integer",
                                  "minimum": -9007199254740991,
                                  "maximum": 9007199254740991
                                },
                                "state": {
                                  "type": "string",
                                  "enum": [
                                    "compatible",
                                    "incompatible",
                                    "unknown",
                                    "not_applicable"
                                  ]
                                }
                              },
                              "required": [
                                "points",
                                "maximum",
                                "state"
                              ],
                              "additionalProperties": false
                            },
                            "location": {
                              "type": "object",
                              "properties": {
                                "points": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "maximum": {
                                  "type": "integer",
                                  "minimum": -9007199254740991,
                                  "maximum": 9007199254740991
                                },
                                "state": {
                                  "type": "string",
                                  "enum": [
                                    "compatible",
                                    "incompatible",
                                    "unknown",
                                    "not_applicable"
                                  ]
                                }
                              },
                              "required": [
                                "points",
                                "maximum",
                                "state"
                              ],
                              "additionalProperties": false
                            }
                          },
                          "required": [
                            "role",
                            "scope",
                            "activity",
                            "size",
                            "location"
                          ],
                          "additionalProperties": false
                        }
                      },
                      "required": [
                        "employment_ref",
                        "company_ref",
                        "selected",
                        "decision",
                        "vetoes",
                        "dimensions"
                      ],
                      "additionalProperties": false
                    }
                  }
                },
                "required": [
                  "decision",
                  "professional_score",
                  "coverage",
                  "evaluated_at",
                  "synthetic"
                ],
                "additionalProperties": false
              },
              "relationship": {
                "type": "object",
                "properties": {
                  "state": {
                    "type": "string",
                    "enum": [
                      "connected",
                      "not_connected",
                      "unknown"
                    ]
                  },
                  "reason": {
                    "type": "string"
                  },
                  "observed_at": {
                    "anyOf": [
                      {
                        "type": "string",
                        "format": "date-time",
                        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "account_id": {
                    "type": "string"
                  }
                },
                "required": [
                  "state",
                  "reason",
                  "observed_at",
                  "account_id"
                ],
                "additionalProperties": false
              },
              "scores": {
                "type": "object",
                "properties": {
                  "professional_score": {
                    "type": [
                      "number",
                      "null"
                    ]
                  },
                  "conversation_score": {
                    "type": "number"
                  },
                  "lead_score": {
                    "type": [
                      "number",
                      "null"
                    ]
                  }
                },
                "required": [
                  "professional_score",
                  "conversation_score",
                  "lead_score"
                ],
                "additionalProperties": false
              }
            },
            "required": [
              "campaign_id",
              "campaign_name",
              "last_linkedin_outbound",
              "account_id",
              "icp_id",
              "initial_scoring_policy",
              "participation",
              "evaluation",
              "relationship",
              "scores"
            ],
            "additionalProperties": false
          }
        },
        "created_at": {
          "type": "string",
          "format": "date-time",
          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
        },
        "updated_at": {
          "type": "string",
          "format": "date-time",
          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
        },
        "profile": {
          "anyOf": [
            {
              "type": "object",
              "properties": {
                "headline": {
                  "default": "",
                  "type": "string"
                },
                "description": {
                  "default": "",
                  "type": "string"
                },
                "location": {
                  "default": null,
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "country": {
                  "default": null,
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "photo_url": {
                  "default": null,
                  "anyOf": [
                    {
                      "type": "string",
                      "format": "uri"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "experience": {
                  "default": [],
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "ref": {
                        "type": "string"
                      },
                      "title": {
                        "type": "string"
                      },
                      "company_name": {
                        "type": "string"
                      },
                      "company_id": {
                        "default": null,
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "description": {
                        "type": "string"
                      },
                      "start": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "end": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "start_precision": {
                        "default": null,
                        "anyOf": [
                          {
                            "type": "string",
                            "enum": [
                              "year",
                              "month",
                              "day"
                            ]
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "end_precision": {
                        "default": null,
                        "anyOf": [
                          {
                            "type": "string",
                            "enum": [
                              "year",
                              "month",
                              "day"
                            ]
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "location": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "current": {
                        "type": "boolean"
                      }
                    },
                    "required": [
                      "ref",
                      "title",
                      "company_name",
                      "company_id",
                      "description",
                      "start",
                      "end",
                      "start_precision",
                      "end_precision",
                      "location",
                      "current"
                    ],
                    "additionalProperties": false
                  }
                },
                "experience_limited": {
                  "default": false,
                  "type": "boolean"
                },
                "known_experience_count": {
                  "default": null,
                  "anyOf": [
                    {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "company": {
                  "anyOf": [
                    {
                      "type": "object",
                      "properties": {
                        "company_id": {
                          "type": "string"
                        },
                        "ref": {
                          "type": "string"
                        },
                        "account_id": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "name": {
                          "type": "string"
                        },
                        "description": {
                          "type": "string"
                        },
                        "industry": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "employee_count": {
                          "type": [
                            "number",
                            "null"
                          ]
                        },
                        "employee_range": {
                          "default": null,
                          "anyOf": [
                            {
                              "type": "array",
                              "prefixItems": [
                                {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                {
                                  "anyOf": [
                                    {
                                      "type": "integer",
                                      "minimum": 0,
                                      "maximum": 9007199254740991
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                }
                              ],
                              "items": false,
                              "minItems": 2,
                              "maxItems": 2
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "website": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "city": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "country": {
                          "type": [
                            "string",
                            "null"
                          ]
                        }
                      },
                      "required": [
                        "company_id",
                        "ref",
                        "account_id",
                        "name",
                        "description",
                        "industry",
                        "employee_count",
                        "employee_range",
                        "website",
                        "city",
                        "country"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "companies": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "company_id": {
                        "type": "string"
                      },
                      "ref": {
                        "type": "string"
                      },
                      "account_id": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "name": {
                        "type": "string"
                      },
                      "description": {
                        "type": "string"
                      },
                      "industry": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "employee_count": {
                        "type": [
                          "number",
                          "null"
                        ]
                      },
                      "employee_range": {
                        "default": null,
                        "anyOf": [
                          {
                            "type": "array",
                            "prefixItems": [
                              {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              {
                                "anyOf": [
                                  {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 9007199254740991
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              }
                            ],
                            "items": false,
                            "minItems": 2,
                            "maxItems": 2
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "website": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "city": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "country": {
                        "type": [
                          "string",
                          "null"
                        ]
                      }
                    },
                    "required": [
                      "company_id",
                      "ref",
                      "account_id",
                      "name",
                      "description",
                      "industry",
                      "employee_count",
                      "employee_range",
                      "website",
                      "city",
                      "country"
                    ],
                    "additionalProperties": false
                  }
                },
                "current_jobs": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "position": {
                        "type": "string"
                      },
                      "company_name": {
                        "type": "string"
                      },
                      "start": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "description": {
                        "default": "",
                        "type": "string"
                      },
                      "location": {
                        "default": null,
                        "type": [
                          "string",
                          "null"
                        ]
                      }
                    },
                    "required": [
                      "position",
                      "company_name",
                      "start",
                      "description",
                      "location"
                    ],
                    "additionalProperties": false
                  }
                }
              },
              "required": [
                "headline",
                "description",
                "location",
                "country",
                "photo_url",
                "experience",
                "experience_limited",
                "known_experience_count",
                "company",
                "companies",
                "current_jobs"
              ],
              "additionalProperties": false
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "person_id",
        "name",
        "title",
        "company",
        "linkedin_url",
        "contexts",
        "created_at",
        "updated_at",
        "profile"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "person"
  ],
  "additionalProperties": false
}

Solicitar datos de contacto

POST/api/v1/leads/contact-details

Solicita email o teléfono para uno o varios leads ya enriquecidos. Reutiliza datos y búsquedas, sin cambiar los ticks de campaña. Máximo acumulado 25 créditos por dato y 2.000 créditos por cliente/mes. No envía mensajes. Las campañas pausadas admiten esta petición explícita; conserva ICP, política y cuenta habilitada.

REST: clave API o sesiónTool MCP request_lead_contact_detailsPermiso writeReintentos con la misma clave
ParámetroDescripción
Idempotency-Keyheader · string · obligatorioAl menos 8 caracteres. Hasta 160 caracteres.
Originheader · "https://ai.zaly.app" · opcionalObligatoria en escrituras con cookie. No se requiere con Bearer.
leadsbody · array de object · obligatorioPersonas que quieres incorporar a la campaña. Respeta la estructura y el límite del contrato.
contact_detailsbody · object · obligatorioValor de este campo. Consulta el tipo, los límites y el esquema completo para preparar la petición.

Petición

curl -X POST "https://ai.zaly.app/api/v1/leads/contact-details" \
  -H "Authorization: Bearer $ZALY_API_KEY" \
  -H "Idempotency-Key: $ZALY_IDEMPOTENCY_KEY" \
  -H "Content-Type: application/json" \
  --data @payload.json

Prepara payload.json con los campos del cuerpo. Sustituye los identificadores y conserva la clave al reintentar la misma intención.

Respuesta
CampoTipo y descripción
itemsarray de object
Schemas completos de REST y MCP

Cuerpo REST

{
  "type": "object",
  "properties": {
    "leads": {
      "minItems": 1,
      "maxItems": 100,
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "campaign_id": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160
          },
          "person_id": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160
          }
        },
        "required": [
          "campaign_id",
          "person_id"
        ],
        "additionalProperties": false
      }
    },
    "contact_details": {
      "type": "object",
      "properties": {
        "email": {
          "type": "boolean"
        },
        "phone": {
          "type": "boolean"
        }
      },
      "required": [
        "email",
        "phone"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "leads",
    "contact_details"
  ],
  "additionalProperties": false
}

Entrada MCP

{
  "type": "object",
  "properties": {
    "leads": {
      "minItems": 1,
      "maxItems": 100,
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "campaign_id": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160
          },
          "person_id": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160
          }
        },
        "required": [
          "campaign_id",
          "person_id"
        ],
        "additionalProperties": false
      }
    },
    "contact_details": {
      "type": "object",
      "properties": {
        "email": {
          "type": "boolean"
        },
        "phone": {
          "type": "boolean"
        }
      },
      "required": [
        "email",
        "phone"
      ],
      "additionalProperties": false
    },
    "idempotency_key": {
      "type": "string",
      "minLength": 8,
      "maxLength": 160
    }
  },
  "required": [
    "leads",
    "contact_details",
    "idempotency_key"
  ],
  "additionalProperties": false
}

Respuesta JSON

{
  "type": "object",
  "properties": {
    "items": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "campaign_id": {
            "type": "string"
          },
          "person_id": {
            "type": "string"
          },
          "kind": {
            "type": "string",
            "enum": [
              "email",
              "phone"
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "queued",
              "pending",
              "waiting_balance",
              "found",
              "not_found",
              "failed",
              "cancelled",
              "available",
              "not_eligible",
              "provider_unavailable"
            ]
          }
        },
        "required": [
          "campaign_id",
          "person_id",
          "kind",
          "status"
        ],
        "additionalProperties": false
      }
    }
  },
  "required": [
    "items"
  ],
  "additionalProperties": false
}

Campañas

Configuración, importación y participación de personas.

Listar campañas

GET/api/v1/campaigns

list campaigns

REST: clave API o sesiónTool MCP list_campaignsPermiso readSolo lecturaReintentos con la misma clave
ParámetroDescripción
namequery · string · opcionalAl menos 1 caracteres. Hasta 120 caracteres.
statusquery · "active" | "paused" | "archived" · opcionalEstado del recurso. Comprueba los valores admitidos antes de filtrar o actualizar.
limitquery · integer · opcionalPor defecto: 25. Mínimo: 1. Máximo: 50.
cursorquery · string | null · opcionalCursor devuelto por la página anterior. Omítelo en la primera consulta.

Petición

curl -X GET "https://ai.zaly.app/api/v1/campaigns" \
  -H "Authorization: Bearer $ZALY_API_KEY"
Respuesta
CampoTipo y descripción
itemsarray de object
returned_countintegerMínimo: 0. Máximo: 9007199254740991.
has_moreboolean
next_cursorstring | null
Schemas completos de REST y MCP

Entrada MCP

{
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "minLength": 1,
      "maxLength": 120
    },
    "status": {
      "type": "string",
      "enum": [
        "active",
        "paused",
        "archived"
      ]
    },
    "limit": {
      "default": 25,
      "type": "integer",
      "minimum": 1,
      "maximum": 50
    },
    "cursor": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 2000
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "additionalProperties": false
}

Respuesta JSON

{
  "type": "object",
  "properties": {
    "items": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "campaign_id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "active",
              "paused",
              "archived"
            ]
          },
          "service": {
            "type": "object",
            "properties": {
              "service_id": {
                "type": "string"
              },
              "name": {
                "type": "string"
              }
            },
            "required": [
              "service_id",
              "name"
            ],
            "additionalProperties": false
          },
          "icp": {
            "type": "object",
            "properties": {
              "icp_id": {
                "type": "string"
              },
              "name": {
                "type": "string"
              }
            },
            "required": [
              "icp_id",
              "name"
            ],
            "additionalProperties": false
          },
          "accounts": {
            "type": "object",
            "properties": {
              "linkedin": {
                "type": "object",
                "properties": {
                  "account_id": {
                    "type": "string"
                  },
                  "name": {
                    "type": "string"
                  }
                },
                "required": [
                  "account_id",
                  "name"
                ],
                "additionalProperties": false
              },
              "email": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "account_id": {
                        "type": "string"
                      },
                      "name": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "account_id",
                      "name"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "linkedin",
              "email"
            ],
            "additionalProperties": false
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
          }
        },
        "required": [
          "campaign_id",
          "name",
          "description",
          "status",
          "service",
          "icp",
          "accounts",
          "created_at",
          "updated_at"
        ],
        "additionalProperties": false
      }
    },
    "returned_count": {
      "type": "integer",
      "minimum": 0,
      "maximum": 9007199254740991
    },
    "has_more": {
      "type": "boolean"
    },
    "next_cursor": {
      "type": [
        "string",
        "null"
      ]
    }
  },
  "required": [
    "items",
    "returned_count",
    "has_more",
    "next_cursor"
  ],
  "additionalProperties": false
}

Consultar una campaña

GET/api/v1/campaigns/{campaignId}

get campaign

REST: clave API o sesiónTool MCP get_campaignPermiso readSolo lecturaReintentos con la misma clave
ParámetroDescripción
campaignIdpath · string · obligatorioAl menos 1 caracteres. Hasta 160 caracteres.
import_idquery · string · opcionalAl menos 1 caracteres. Hasta 160 caracteres.

Petición

curl -X GET "https://ai.zaly.app/api/v1/campaigns/$CAMPAIGN_ID" \
  -H "Authorization: Bearer $ZALY_API_KEY"
Respuesta
CampoTipo y descripción
campaignobject
summaryobject
importobject
Schemas completos de REST y MCP

Entrada MCP

{
  "type": "object",
  "properties": {
    "campaign_id": {
      "type": "string",
      "minLength": 1,
      "maxLength": 160
    },
    "import_id": {
      "type": "string",
      "minLength": 1,
      "maxLength": 160
    }
  },
  "required": [
    "campaign_id"
  ],
  "additionalProperties": false
}

Respuesta JSON

{
  "type": "object",
  "properties": {
    "campaign": {
      "type": "object",
      "properties": {
        "campaign_id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "description": {
          "type": [
            "string",
            "null"
          ]
        },
        "status": {
          "type": "string",
          "enum": [
            "active",
            "paused",
            "archived"
          ]
        },
        "service": {
          "type": "object",
          "properties": {
            "service_id": {
              "type": "string"
            },
            "name": {
              "type": "string"
            }
          },
          "required": [
            "service_id",
            "name"
          ],
          "additionalProperties": false
        },
        "icp": {
          "type": "object",
          "properties": {
            "icp_id": {
              "type": "string"
            },
            "name": {
              "type": "string"
            }
          },
          "required": [
            "icp_id",
            "name"
          ],
          "additionalProperties": false
        },
        "accounts": {
          "type": "object",
          "properties": {
            "linkedin": {
              "type": "object",
              "properties": {
                "account_id": {
                  "type": "string"
                },
                "name": {
                  "type": "string"
                }
              },
              "required": [
                "account_id",
                "name"
              ],
              "additionalProperties": false
            },
            "email": {
              "anyOf": [
                {
                  "type": "object",
                  "properties": {
                    "account_id": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "account_id",
                    "name"
                  ],
                  "additionalProperties": false
                },
                {
                  "type": "null"
                }
              ]
            }
          },
          "required": [
            "linkedin",
            "email"
          ],
          "additionalProperties": false
        },
        "created_at": {
          "type": "string",
          "format": "date-time",
          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
        },
        "updated_at": {
          "type": "string",
          "format": "date-time",
          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
        },
        "email_from": {
          "type": [
            "string",
            "null"
          ]
        },
        "contact_details": {
          "type": "object",
          "properties": {
            "email": {
              "type": "boolean"
            },
            "phone": {
              "type": "boolean"
            }
          },
          "required": [
            "email",
            "phone"
          ],
          "additionalProperties": false
        },
        "review_required_default": {
          "type": "string",
          "enum": [
            "human_review",
            "auto"
          ]
        },
        "initial_scoring_policy": {
          "type": "string",
          "enum": [
            "icp_gate",
            "contact_all_after_enrichment"
          ]
        },
        "allowed_actions": {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "dm",
              "invite",
              "invite_without_notification",
              "comment",
              "reaction",
              "email_send",
              "email_reply"
            ]
          }
        },
        "availability": {
          "anyOf": [
            {
              "type": "object",
              "properties": {
                "start_working": {
                  "type": "string",
                  "pattern": "^([01]\\d|2[0-3]):[0-5]\\d$"
                },
                "end_working": {
                  "type": "string",
                  "pattern": "^([01]\\d|2[0-3]):[0-5]\\d$"
                },
                "weekend_work": {
                  "type": "boolean"
                },
                "timezone": {
                  "type": "string",
                  "minLength": 1
                }
              },
              "required": [
                "start_working",
                "end_working",
                "weekend_work",
                "timezone"
              ],
              "additionalProperties": false
            },
            {
              "type": "null"
            }
          ]
        },
        "lead_magnet": {
          "anyOf": [
            {
              "type": "object",
              "properties": {
                "name": {
                  "type": "string",
                  "minLength": 2,
                  "maxLength": 120
                },
                "url": {
                  "type": "string",
                  "format": "uri"
                },
                "description": {
                  "type": "string",
                  "maxLength": 6000
                },
                "content_type": {
                  "type": "string",
                  "enum": [
                    "pdf",
                    "doc",
                    "docx",
                    "video",
                    "image",
                    "webpage",
                    "ebook"
                  ]
                }
              },
              "required": [
                "name",
                "url"
              ],
              "additionalProperties": false
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "campaign_id",
        "name",
        "description",
        "status",
        "service",
        "icp",
        "accounts",
        "created_at",
        "updated_at",
        "email_from",
        "contact_details",
        "review_required_default",
        "initial_scoring_policy",
        "allowed_actions",
        "availability",
        "lead_magnet"
      ],
      "additionalProperties": false
    },
    "summary": {
      "type": "object",
      "properties": {
        "lead_magnet": {
          "type": "object",
          "properties": {
            "pending": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            "working": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            "waiting_connection": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            "completed": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            "review": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            "filtered": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            "expired": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            }
          },
          "required": [
            "pending",
            "working",
            "waiting_connection",
            "completed",
            "review",
            "filtered",
            "expired"
          ],
          "additionalProperties": false
        },
        "people_captured": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        },
        "people_processed": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        },
        "people_available": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        },
        "enrichment_pending": {
          "type": "boolean"
        },
        "as_of": {
          "type": "string",
          "format": "date-time",
          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
        },
        "signals_count": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        },
        "pending_approvals": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        },
        "people_contacted": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        },
        "people_replied": {
          "anyOf": [
            {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            {
              "type": "null"
            }
          ]
        },
        "meetings_scheduled": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        }
      },
      "required": [
        "people_captured",
        "people_processed",
        "people_available",
        "enrichment_pending",
        "as_of",
        "signals_count",
        "pending_approvals",
        "people_contacted",
        "people_replied",
        "meetings_scheduled"
      ],
      "additionalProperties": false
    },
    "import": {
      "type": "object",
      "properties": {
        "import_id": {
          "type": "string"
        },
        "campaign_id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "summary": {
          "type": "object",
          "properties": {
            "rows_received": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            "people_added": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            "people_already_in_campaign": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            "people_in_multiple_campaigns": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            "campaign_overlaps": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "person_id": {
                    "type": "string"
                  },
                  "name": {
                    "type": "string"
                  },
                  "campaigns": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "campaign_id": {
                          "type": "string"
                        },
                        "name": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "campaign_id",
                        "name"
                      ],
                      "additionalProperties": false
                    }
                  }
                },
                "required": [
                  "person_id",
                  "name",
                  "campaigns"
                ],
                "additionalProperties": false
              }
            },
            "duplicate_rows": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            "rejected_rows": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            "people_processed": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            "people_available": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            "people_pending": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            "enrichment_pending": {
              "type": "boolean"
            },
            "as_of": {
              "type": "string",
              "format": "date-time",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
            }
          },
          "required": [
            "rows_received",
            "people_added",
            "people_already_in_campaign",
            "people_in_multiple_campaigns",
            "campaign_overlaps",
            "duplicate_rows",
            "rejected_rows",
            "people_processed",
            "people_available",
            "people_pending",
            "enrichment_pending",
            "as_of"
          ],
          "additionalProperties": false
        }
      },
      "required": [
        "import_id",
        "campaign_id",
        "name",
        "summary"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "campaign",
    "summary"
  ],
  "additionalProperties": false
}

Crear una campaña

POST/api/v1/campaigns

create campaign

REST: clave API o sesiónTool MCP create_campaignPermiso writeReintentos con la misma clave
ParámetroDescripción
Idempotency-Keyheader · string · obligatorioAl menos 8 caracteres. Hasta 160 caracteres.
Originheader · "https://ai.zaly.app" · opcionalObligatoria en escrituras con cookie. No se requiere con Bearer.
contact_detailsbody · object · opcionalValor de este campo. Consulta el tipo, los límites y el esquema completo para preparar la petición.
namebody · string · obligatorioAl menos 2 caracteres. Hasta 120 caracteres.
descriptionbody · string · obligatorioAl menos 1 caracteres. Hasta 6000 caracteres.
email_provider_account_idbody · string · obligatorioAl menos 1 caracteres. Hasta 160 caracteres.
email_frombody · string · email | null · opcionalDirección remitente autorizada para la cuenta de correo seleccionada.
allowed_actionsbody · array de "dm" | "invite" | "invite_without_notification" | "comment" | "reaction" | "email_send" | "email_reply" · obligatorioAcciones que permites a la campaña. La aprobación no elimina las demás comprobaciones de envío.
review_required_defaultbody · "human_review" | "auto" · obligatorioIndica si las acciones de esta campaña deben pasar por revisión humana.
initial_scoring_policybody · "icp_gate" | "contact_all_after_enrichment" · opcionalSi el usuario pide contactar a todos, usa contact_all_after_enrichment: admite evaluaciones vigentes terminadas válidas aunque el ICP rechace a la persona o el score sea bajo o null. icp_gate exige retained y score profesional >=5/30. Ambos mantienen enrichment e ICP; pendientes y fallos técnicos quedan fuera. No amplíes el ICP para simular contacto total. Esta opción no envía mensajes ni cambia human_review. Por defecto: "icp_gate".
availabilitybody · object · obligatorioValor de este campo. Consulta el tipo, los límites y el esquema completo para preparar la petición.
lead_magnetbody · object | null · opcionalValor de este campo. Consulta el tipo, los límites y el esquema completo para preparar la petición.
service_idbody · string · obligatorioAl menos 1 caracteres. Hasta 160 caracteres.
icp_idbody · string · obligatorioAl menos 1 caracteres. Hasta 160 caracteres.
linkedin_provider_account_idbody · string · obligatorioAl menos 1 caracteres. Hasta 160 caracteres.

Petición

curl -X POST "https://ai.zaly.app/api/v1/campaigns" \
  -H "Authorization: Bearer $ZALY_API_KEY" \
  -H "Idempotency-Key: $ZALY_IDEMPOTENCY_KEY" \
  -H "Content-Type: application/json" \
  --data @payload.json

Prepara payload.json con los campos del cuerpo. Sustituye los identificadores y conserva la clave al reintentar la misma intención.

Respuesta
CampoTipo y descripción
campaignobject
summaryobject
effectsobject
Schemas completos de REST y MCP

Cuerpo REST

{
  "type": "object",
  "properties": {
    "contact_details": {
      "type": "object",
      "properties": {
        "email": {
          "type": "boolean"
        },
        "phone": {
          "type": "boolean"
        }
      },
      "required": [
        "email",
        "phone"
      ],
      "additionalProperties": false
    },
    "name": {
      "type": "string",
      "minLength": 2,
      "maxLength": 120
    },
    "description": {
      "type": "string",
      "minLength": 1,
      "maxLength": 6000
    },
    "email_provider_account_id": {
      "type": "string",
      "minLength": 1,
      "maxLength": 160
    },
    "email_from": {
      "anyOf": [
        {
          "type": "string",
          "format": "email",
          "pattern": "^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
        },
        {
          "type": "null"
        }
      ]
    },
    "allowed_actions": {
      "minItems": 1,
      "maxItems": 7,
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "dm",
          "invite",
          "invite_without_notification",
          "comment",
          "reaction",
          "email_send",
          "email_reply"
        ]
      }
    },
    "review_required_default": {
      "type": "string",
      "enum": [
        "human_review",
        "auto"
      ]
    },
    "initial_scoring_policy": {
      "default": "icp_gate",
      "type": "string",
      "enum": [
        "icp_gate",
        "contact_all_after_enrichment"
      ],
      "description": "Si el usuario pide contactar a todos, usa contact_all_after_enrichment: admite evaluaciones vigentes terminadas válidas aunque el ICP rechace a la persona o el score sea bajo o null. icp_gate exige retained y score profesional >=5/30. Ambos mantienen enrichment e ICP; pendientes y fallos técnicos quedan fuera. No amplíes el ICP para simular contacto total. Esta opción no envía mensajes ni cambia human_review."
    },
    "availability": {
      "type": "object",
      "properties": {
        "start_working": {
          "type": "string",
          "pattern": "^([01]\\d|2[0-3]):[0-5]\\d$"
        },
        "end_working": {
          "type": "string",
          "pattern": "^([01]\\d|2[0-3]):[0-5]\\d$"
        },
        "weekend_work": {
          "type": "boolean"
        },
        "timezone": {
          "type": "string",
          "minLength": 1
        }
      },
      "required": [
        "start_working",
        "end_working",
        "weekend_work",
        "timezone"
      ],
      "additionalProperties": false
    },
    "lead_magnet": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 2,
              "maxLength": 120
            },
            "url": {
              "type": "string",
              "format": "uri"
            },
            "description": {
              "type": "string",
              "maxLength": 6000
            },
            "content_type": {
              "type": "string",
              "enum": [
                "pdf",
                "doc",
                "docx",
                "video",
                "image",
                "webpage",
                "ebook"
              ]
            }
          },
          "required": [
            "name",
            "url"
          ],
          "additionalProperties": false
        },
        {
          "type": "null"
        }
      ]
    },
    "service_id": {
      "type": "string",
      "minLength": 1,
      "maxLength": 160
    },
    "icp_id": {
      "type": "string",
      "minLength": 1,
      "maxLength": 160
    },
    "linkedin_provider_account_id": {
      "type": "string",
      "minLength": 1,
      "maxLength": 160
    }
  },
  "required": [
    "name",
    "description",
    "email_provider_account_id",
    "allowed_actions",
    "review_required_default",
    "availability",
    "service_id",
    "icp_id",
    "linkedin_provider_account_id"
  ],
  "additionalProperties": false
}

Entrada MCP

{
  "type": "object",
  "properties": {
    "contact_details": {
      "type": "object",
      "properties": {
        "email": {
          "type": "boolean"
        },
        "phone": {
          "type": "boolean"
        }
      },
      "required": [
        "email",
        "phone"
      ],
      "additionalProperties": false
    },
    "name": {
      "type": "string",
      "minLength": 2,
      "maxLength": 120
    },
    "description": {
      "type": "string",
      "minLength": 1,
      "maxLength": 6000
    },
    "email_provider_account_id": {
      "type": "string",
      "minLength": 1,
      "maxLength": 160
    },
    "email_from": {
      "anyOf": [
        {
          "type": "string",
          "format": "email",
          "pattern": "^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
        },
        {
          "type": "null"
        }
      ]
    },
    "allowed_actions": {
      "minItems": 1,
      "maxItems": 7,
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "dm",
          "invite",
          "invite_without_notification",
          "comment",
          "reaction",
          "email_send",
          "email_reply"
        ]
      }
    },
    "review_required_default": {
      "type": "string",
      "enum": [
        "human_review",
        "auto"
      ]
    },
    "initial_scoring_policy": {
      "default": "icp_gate",
      "type": "string",
      "enum": [
        "icp_gate",
        "contact_all_after_enrichment"
      ],
      "description": "Si el usuario pide contactar a todos, usa contact_all_after_enrichment: admite evaluaciones vigentes terminadas válidas aunque el ICP rechace a la persona o el score sea bajo o null. icp_gate exige retained y score profesional >=5/30. Ambos mantienen enrichment e ICP; pendientes y fallos técnicos quedan fuera. No amplíes el ICP para simular contacto total. Esta opción no envía mensajes ni cambia human_review."
    },
    "availability": {
      "type": "object",
      "properties": {
        "start_working": {
          "type": "string",
          "pattern": "^([01]\\d|2[0-3]):[0-5]\\d$"
        },
        "end_working": {
          "type": "string",
          "pattern": "^([01]\\d|2[0-3]):[0-5]\\d$"
        },
        "weekend_work": {
          "type": "boolean"
        },
        "timezone": {
          "type": "string",
          "minLength": 1
        }
      },
      "required": [
        "start_working",
        "end_working",
        "weekend_work",
        "timezone"
      ],
      "additionalProperties": false
    },
    "lead_magnet": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 2,
              "maxLength": 120
            },
            "url": {
              "type": "string",
              "format": "uri"
            },
            "description": {
              "type": "string",
              "maxLength": 6000
            },
            "content_type": {
              "type": "string",
              "enum": [
                "pdf",
                "doc",
                "docx",
                "video",
                "image",
                "webpage",
                "ebook"
              ]
            }
          },
          "required": [
            "name",
            "url"
          ],
          "additionalProperties": false
        },
        {
          "type": "null"
        }
      ]
    },
    "service_id": {
      "type": "string",
      "minLength": 1,
      "maxLength": 160
    },
    "icp_id": {
      "type": "string",
      "minLength": 1,
      "maxLength": 160
    },
    "linkedin_provider_account_id": {
      "type": "string",
      "minLength": 1,
      "maxLength": 160
    },
    "idempotency_key": {
      "type": "string",
      "minLength": 8,
      "maxLength": 160
    }
  },
  "required": [
    "name",
    "description",
    "email_provider_account_id",
    "allowed_actions",
    "review_required_default",
    "availability",
    "service_id",
    "icp_id",
    "linkedin_provider_account_id",
    "idempotency_key"
  ],
  "additionalProperties": false
}

Respuesta JSON

{
  "type": "object",
  "properties": {
    "campaign": {
      "type": "object",
      "properties": {
        "campaign_id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "description": {
          "type": [
            "string",
            "null"
          ]
        },
        "status": {
          "type": "string",
          "enum": [
            "active",
            "paused",
            "archived"
          ]
        },
        "service": {
          "type": "object",
          "properties": {
            "service_id": {
              "type": "string"
            },
            "name": {
              "type": "string"
            }
          },
          "required": [
            "service_id",
            "name"
          ],
          "additionalProperties": false
        },
        "icp": {
          "type": "object",
          "properties": {
            "icp_id": {
              "type": "string"
            },
            "name": {
              "type": "string"
            }
          },
          "required": [
            "icp_id",
            "name"
          ],
          "additionalProperties": false
        },
        "accounts": {
          "type": "object",
          "properties": {
            "linkedin": {
              "type": "object",
              "properties": {
                "account_id": {
                  "type": "string"
                },
                "name": {
                  "type": "string"
                }
              },
              "required": [
                "account_id",
                "name"
              ],
              "additionalProperties": false
            },
            "email": {
              "anyOf": [
                {
                  "type": "object",
                  "properties": {
                    "account_id": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "account_id",
                    "name"
                  ],
                  "additionalProperties": false
                },
                {
                  "type": "null"
                }
              ]
            }
          },
          "required": [
            "linkedin",
            "email"
          ],
          "additionalProperties": false
        },
        "created_at": {
          "type": "string",
          "format": "date-time",
          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
        },
        "updated_at": {
          "type": "string",
          "format": "date-time",
          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
        },
        "email_from": {
          "type": [
            "string",
            "null"
          ]
        },
        "contact_details": {
          "type": "object",
          "properties": {
            "email": {
              "type": "boolean"
            },
            "phone": {
              "type": "boolean"
            }
          },
          "required": [
            "email",
            "phone"
          ],
          "additionalProperties": false
        },
        "review_required_default": {
          "type": "string",
          "enum": [
            "human_review",
            "auto"
          ]
        },
        "initial_scoring_policy": {
          "type": "string",
          "enum": [
            "icp_gate",
            "contact_all_after_enrichment"
          ]
        },
        "allowed_actions": {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "dm",
              "invite",
              "invite_without_notification",
              "comment",
              "reaction",
              "email_send",
              "email_reply"
            ]
          }
        },
        "availability": {
          "anyOf": [
            {
              "type": "object",
              "properties": {
                "start_working": {
                  "type": "string",
                  "pattern": "^([01]\\d|2[0-3]):[0-5]\\d$"
                },
                "end_working": {
                  "type": "string",
                  "pattern": "^([01]\\d|2[0-3]):[0-5]\\d$"
                },
                "weekend_work": {
                  "type": "boolean"
                },
                "timezone": {
                  "type": "string",
                  "minLength": 1
                }
              },
              "required": [
                "start_working",
                "end_working",
                "weekend_work",
                "timezone"
              ],
              "additionalProperties": false
            },
            {
              "type": "null"
            }
          ]
        },
        "lead_magnet": {
          "anyOf": [
            {
              "type": "object",
              "properties": {
                "name": {
                  "type": "string",
                  "minLength": 2,
                  "maxLength": 120
                },
                "url": {
                  "type": "string",
                  "format": "uri"
                },
                "description": {
                  "type": "string",
                  "maxLength": 6000
                },
                "content_type": {
                  "type": "string",
                  "enum": [
                    "pdf",
                    "doc",
                    "docx",
                    "video",
                    "image",
                    "webpage",
                    "ebook"
                  ]
                }
              },
              "required": [
                "name",
                "url"
              ],
              "additionalProperties": false
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "campaign_id",
        "name",
        "description",
        "status",
        "service",
        "icp",
        "accounts",
        "created_at",
        "updated_at",
        "email_from",
        "contact_details",
        "review_required_default",
        "initial_scoring_policy",
        "allowed_actions",
        "availability",
        "lead_magnet"
      ],
      "additionalProperties": false
    },
    "summary": {
      "type": "object",
      "properties": {
        "lead_magnet": {
          "type": "object",
          "properties": {
            "pending": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            "working": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            "waiting_connection": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            "completed": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            "review": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            "filtered": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            "expired": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            }
          },
          "required": [
            "pending",
            "working",
            "waiting_connection",
            "completed",
            "review",
            "filtered",
            "expired"
          ],
          "additionalProperties": false
        },
        "people_captured": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        },
        "people_processed": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        },
        "people_available": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        },
        "enrichment_pending": {
          "type": "boolean"
        },
        "as_of": {
          "type": "string",
          "format": "date-time",
          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
        },
        "signals_count": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        },
        "pending_approvals": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        },
        "people_contacted": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        },
        "people_replied": {
          "anyOf": [
            {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            {
              "type": "null"
            }
          ]
        },
        "meetings_scheduled": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        }
      },
      "required": [
        "people_captured",
        "people_processed",
        "people_available",
        "enrichment_pending",
        "as_of",
        "signals_count",
        "pending_approvals",
        "people_contacted",
        "people_replied",
        "meetings_scheduled"
      ],
      "additionalProperties": false
    },
    "effects": {
      "type": "object",
      "properties": {
        "actions_auto_approved": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        }
      },
      "required": [
        "actions_auto_approved"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "campaign",
    "summary",
    "effects"
  ],
  "additionalProperties": false
}

Actualizar una campaña

PATCH/api/v1/campaigns/{campaignId}

update campaign

REST: clave API o sesiónTool MCP update_campaignPermiso writeReintentos con la misma claveRequiere revisión
ParámetroDescripción
campaignIdpath · string · obligatorioAl menos 1 caracteres. Hasta 160 caracteres.
Idempotency-Keyheader · string · obligatorioAl menos 8 caracteres. Hasta 160 caracteres.
Originheader · "https://ai.zaly.app" · opcionalObligatoria en escrituras con cookie. No se requiere con Bearer.
contact_detailsbody · object · opcionalValor de este campo. Consulta el tipo, los límites y el esquema completo para preparar la petición.
namebody · string · opcionalAl menos 2 caracteres. Hasta 120 caracteres.
descriptionbody · string · opcionalAl menos 1 caracteres. Hasta 6000 caracteres.
email_frombody · string · email | null · opcionalDirección remitente autorizada para la cuenta de correo seleccionada.
allowed_actionsbody · array de "dm" | "invite" | "invite_without_notification" | "comment" | "reaction" | "email_send" | "email_reply" · opcionalAcciones que permites a la campaña. La aprobación no elimina las demás comprobaciones de envío.
review_required_defaultbody · "human_review" | "auto" · opcionalIndica si las acciones de esta campaña deben pasar por revisión humana.
initial_scoring_policybody · "icp_gate" | "contact_all_after_enrichment" · opcionalSi el usuario pide contactar a todos, usa contact_all_after_enrichment: admite evaluaciones vigentes terminadas válidas aunque el ICP rechace a la persona o el score sea bajo o null. icp_gate exige retained y score profesional >=5/30. Ambos mantienen enrichment e ICP; pendientes y fallos técnicos quedan fuera. No amplíes el ICP para simular contacto total. Esta opción no envía mensajes ni cambia human_review.
availabilitybody · object · opcionalValor de este campo. Consulta el tipo, los límites y el esquema completo para preparar la petición.
lead_magnetbody · object | null · opcionalValor de este campo. Consulta el tipo, los límites y el esquema completo para preparar la petición.
include_summarybody · boolean · opcionalValor de este campo. Consulta el tipo, los límites y el esquema completo para preparar la petición.
statusbody · "active" | "paused" | "archived" · opcionalEstado del recurso. Comprueba los valores admitidos antes de filtrar o actualizar.

Petición

curl -X PATCH "https://ai.zaly.app/api/v1/campaigns/$CAMPAIGN_ID" \
  -H "Authorization: Bearer $ZALY_API_KEY" \
  -H "Idempotency-Key: $ZALY_IDEMPOTENCY_KEY" \
  -H "Content-Type: application/json" \
  --data @payload.json

Prepara payload.json con los campos del cuerpo. Sustituye los identificadores y conserva la clave al reintentar la misma intención.

Respuesta
CampoTipo y descripción
campaignobject
summaryobject
effectsobject
Schemas completos de REST y MCP

Cuerpo REST

{
  "type": "object",
  "properties": {
    "contact_details": {
      "type": "object",
      "properties": {
        "email": {
          "type": "boolean"
        },
        "phone": {
          "type": "boolean"
        }
      },
      "additionalProperties": false
    },
    "name": {
      "type": "string",
      "minLength": 2,
      "maxLength": 120
    },
    "description": {
      "type": "string",
      "minLength": 1,
      "maxLength": 6000
    },
    "email_from": {
      "anyOf": [
        {
          "type": "string",
          "format": "email",
          "pattern": "^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
        },
        {
          "type": "null"
        }
      ]
    },
    "allowed_actions": {
      "minItems": 1,
      "maxItems": 7,
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "dm",
          "invite",
          "invite_without_notification",
          "comment",
          "reaction",
          "email_send",
          "email_reply"
        ]
      }
    },
    "review_required_default": {
      "type": "string",
      "enum": [
        "human_review",
        "auto"
      ]
    },
    "initial_scoring_policy": {
      "type": "string",
      "enum": [
        "icp_gate",
        "contact_all_after_enrichment"
      ],
      "description": "Si el usuario pide contactar a todos, usa contact_all_after_enrichment: admite evaluaciones vigentes terminadas válidas aunque el ICP rechace a la persona o el score sea bajo o null. icp_gate exige retained y score profesional >=5/30. Ambos mantienen enrichment e ICP; pendientes y fallos técnicos quedan fuera. No amplíes el ICP para simular contacto total. Esta opción no envía mensajes ni cambia human_review."
    },
    "availability": {
      "type": "object",
      "properties": {
        "start_working": {
          "type": "string",
          "pattern": "^([01]\\d|2[0-3]):[0-5]\\d$"
        },
        "end_working": {
          "type": "string",
          "pattern": "^([01]\\d|2[0-3]):[0-5]\\d$"
        },
        "weekend_work": {
          "type": "boolean"
        },
        "timezone": {
          "type": "string",
          "minLength": 1
        }
      },
      "required": [
        "start_working",
        "end_working",
        "weekend_work",
        "timezone"
      ],
      "additionalProperties": false
    },
    "lead_magnet": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 2,
              "maxLength": 120
            },
            "url": {
              "type": "string",
              "format": "uri"
            },
            "description": {
              "type": "string",
              "maxLength": 6000
            },
            "content_type": {
              "type": "string",
              "enum": [
                "pdf",
                "doc",
                "docx",
                "video",
                "image",
                "webpage",
                "ebook"
              ]
            }
          },
          "required": [
            "name",
            "url"
          ],
          "additionalProperties": false
        },
        {
          "type": "null"
        }
      ]
    },
    "include_summary": {
      "type": "boolean"
    },
    "status": {
      "type": "string",
      "enum": [
        "active",
        "paused",
        "archived"
      ]
    }
  },
  "additionalProperties": false
}

Entrada MCP

{
  "type": "object",
  "properties": {
    "contact_details": {
      "type": "object",
      "properties": {
        "email": {
          "type": "boolean"
        },
        "phone": {
          "type": "boolean"
        }
      },
      "additionalProperties": false
    },
    "name": {
      "type": "string",
      "minLength": 2,
      "maxLength": 120
    },
    "description": {
      "type": "string",
      "minLength": 1,
      "maxLength": 6000
    },
    "email_from": {
      "anyOf": [
        {
          "type": "string",
          "format": "email",
          "pattern": "^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
        },
        {
          "type": "null"
        }
      ]
    },
    "allowed_actions": {
      "minItems": 1,
      "maxItems": 7,
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "dm",
          "invite",
          "invite_without_notification",
          "comment",
          "reaction",
          "email_send",
          "email_reply"
        ]
      }
    },
    "review_required_default": {
      "type": "string",
      "enum": [
        "human_review",
        "auto"
      ]
    },
    "initial_scoring_policy": {
      "type": "string",
      "enum": [
        "icp_gate",
        "contact_all_after_enrichment"
      ],
      "description": "Si el usuario pide contactar a todos, usa contact_all_after_enrichment: admite evaluaciones vigentes terminadas válidas aunque el ICP rechace a la persona o el score sea bajo o null. icp_gate exige retained y score profesional >=5/30. Ambos mantienen enrichment e ICP; pendientes y fallos técnicos quedan fuera. No amplíes el ICP para simular contacto total. Esta opción no envía mensajes ni cambia human_review."
    },
    "availability": {
      "type": "object",
      "properties": {
        "start_working": {
          "type": "string",
          "pattern": "^([01]\\d|2[0-3]):[0-5]\\d$"
        },
        "end_working": {
          "type": "string",
          "pattern": "^([01]\\d|2[0-3]):[0-5]\\d$"
        },
        "weekend_work": {
          "type": "boolean"
        },
        "timezone": {
          "type": "string",
          "minLength": 1
        }
      },
      "required": [
        "start_working",
        "end_working",
        "weekend_work",
        "timezone"
      ],
      "additionalProperties": false
    },
    "lead_magnet": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 2,
              "maxLength": 120
            },
            "url": {
              "type": "string",
              "format": "uri"
            },
            "description": {
              "type": "string",
              "maxLength": 6000
            },
            "content_type": {
              "type": "string",
              "enum": [
                "pdf",
                "doc",
                "docx",
                "video",
                "image",
                "webpage",
                "ebook"
              ]
            }
          },
          "required": [
            "name",
            "url"
          ],
          "additionalProperties": false
        },
        {
          "type": "null"
        }
      ]
    },
    "campaign_id": {
      "type": "string",
      "minLength": 1,
      "maxLength": 160
    },
    "include_summary": {
      "type": "boolean"
    },
    "status": {
      "type": "string",
      "enum": [
        "active",
        "paused",
        "archived"
      ]
    },
    "idempotency_key": {
      "type": "string",
      "minLength": 8,
      "maxLength": 160
    }
  },
  "required": [
    "campaign_id",
    "idempotency_key"
  ],
  "additionalProperties": false
}

Respuesta JSON

{
  "type": "object",
  "properties": {
    "campaign": {
      "type": "object",
      "properties": {
        "campaign_id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "description": {
          "type": [
            "string",
            "null"
          ]
        },
        "status": {
          "type": "string",
          "enum": [
            "active",
            "paused",
            "archived"
          ]
        },
        "service": {
          "type": "object",
          "properties": {
            "service_id": {
              "type": "string"
            },
            "name": {
              "type": "string"
            }
          },
          "required": [
            "service_id",
            "name"
          ],
          "additionalProperties": false
        },
        "icp": {
          "type": "object",
          "properties": {
            "icp_id": {
              "type": "string"
            },
            "name": {
              "type": "string"
            }
          },
          "required": [
            "icp_id",
            "name"
          ],
          "additionalProperties": false
        },
        "accounts": {
          "type": "object",
          "properties": {
            "linkedin": {
              "type": "object",
              "properties": {
                "account_id": {
                  "type": "string"
                },
                "name": {
                  "type": "string"
                }
              },
              "required": [
                "account_id",
                "name"
              ],
              "additionalProperties": false
            },
            "email": {
              "anyOf": [
                {
                  "type": "object",
                  "properties": {
                    "account_id": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "account_id",
                    "name"
                  ],
                  "additionalProperties": false
                },
                {
                  "type": "null"
                }
              ]
            }
          },
          "required": [
            "linkedin",
            "email"
          ],
          "additionalProperties": false
        },
        "created_at": {
          "type": "string",
          "format": "date-time",
          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
        },
        "updated_at": {
          "type": "string",
          "format": "date-time",
          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
        },
        "email_from": {
          "type": [
            "string",
            "null"
          ]
        },
        "contact_details": {
          "type": "object",
          "properties": {
            "email": {
              "type": "boolean"
            },
            "phone": {
              "type": "boolean"
            }
          },
          "required": [
            "email",
            "phone"
          ],
          "additionalProperties": false
        },
        "review_required_default": {
          "type": "string",
          "enum": [
            "human_review",
            "auto"
          ]
        },
        "initial_scoring_policy": {
          "type": "string",
          "enum": [
            "icp_gate",
            "contact_all_after_enrichment"
          ]
        },
        "allowed_actions": {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "dm",
              "invite",
              "invite_without_notification",
              "comment",
              "reaction",
              "email_send",
              "email_reply"
            ]
          }
        },
        "availability": {
          "anyOf": [
            {
              "type": "object",
              "properties": {
                "start_working": {
                  "type": "string",
                  "pattern": "^([01]\\d|2[0-3]):[0-5]\\d$"
                },
                "end_working": {
                  "type": "string",
                  "pattern": "^([01]\\d|2[0-3]):[0-5]\\d$"
                },
                "weekend_work": {
                  "type": "boolean"
                },
                "timezone": {
                  "type": "string",
                  "minLength": 1
                }
              },
              "required": [
                "start_working",
                "end_working",
                "weekend_work",
                "timezone"
              ],
              "additionalProperties": false
            },
            {
              "type": "null"
            }
          ]
        },
        "lead_magnet": {
          "anyOf": [
            {
              "type": "object",
              "properties": {
                "name": {
                  "type": "string",
                  "minLength": 2,
                  "maxLength": 120
                },
                "url": {
                  "type": "string",
                  "format": "uri"
                },
                "description": {
                  "type": "string",
                  "maxLength": 6000
                },
                "content_type": {
                  "type": "string",
                  "enum": [
                    "pdf",
                    "doc",
                    "docx",
                    "video",
                    "image",
                    "webpage",
                    "ebook"
                  ]
                }
              },
              "required": [
                "name",
                "url"
              ],
              "additionalProperties": false
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "campaign_id",
        "name",
        "description",
        "status",
        "service",
        "icp",
        "accounts",
        "created_at",
        "updated_at",
        "email_from",
        "contact_details",
        "review_required_default",
        "initial_scoring_policy",
        "allowed_actions",
        "availability",
        "lead_magnet"
      ],
      "additionalProperties": false
    },
    "summary": {
      "type": "object",
      "properties": {
        "lead_magnet": {
          "type": "object",
          "properties": {
            "pending": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            "working": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            "waiting_connection": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            "completed": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            "review": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            "filtered": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            "expired": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            }
          },
          "required": [
            "pending",
            "working",
            "waiting_connection",
            "completed",
            "review",
            "filtered",
            "expired"
          ],
          "additionalProperties": false
        },
        "people_captured": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        },
        "people_processed": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        },
        "people_available": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        },
        "enrichment_pending": {
          "type": "boolean"
        },
        "as_of": {
          "type": "string",
          "format": "date-time",
          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
        },
        "signals_count": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        },
        "pending_approvals": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        },
        "people_contacted": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        },
        "people_replied": {
          "anyOf": [
            {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            {
              "type": "null"
            }
          ]
        },
        "meetings_scheduled": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        }
      },
      "required": [
        "people_captured",
        "people_processed",
        "people_available",
        "enrichment_pending",
        "as_of",
        "signals_count",
        "pending_approvals",
        "people_contacted",
        "people_replied",
        "meetings_scheduled"
      ],
      "additionalProperties": false
    },
    "effects": {
      "type": "object",
      "properties": {
        "actions_auto_approved": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        }
      },
      "required": [
        "actions_auto_approved"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "campaign",
    "effects"
  ],
  "additionalProperties": false
}

Importar personas a una campaña

POST/api/v1/campaigns/{campaignId}/leads

add campaign leads

REST: clave API o sesiónTool MCP add_campaign_leadsPermiso writeReintentos con la misma clave
ParámetroDescripción
campaignIdpath · string · obligatorioAl menos 1 caracteres. Hasta 160 caracteres.
Idempotency-Keyheader · string · obligatorioAl menos 8 caracteres. Hasta 160 caracteres.
Originheader · "https://ai.zaly.app" · opcionalObligatoria en escrituras con cookie. No se requiere con Bearer.
import_namebody · string · opcionalPor defecto: "Importación de contactos". Al menos 1 caracteres. Hasta 120 caracteres.
import_sourcebody · string · opcionalHasta 120 caracteres.
leadsbody · array de object · opcionalPersonas que quieres incorporar a la campaña. Respeta la estructura y el límite del contrato.
csv_textbody · string · opcionalAl menos 1 caracteres. Hasta 2000000 caracteres.

Petición

curl -X POST "https://ai.zaly.app/api/v1/campaigns/$CAMPAIGN_ID/leads" \
  -H "Authorization: Bearer $ZALY_API_KEY" \
  -H "Idempotency-Key: $ZALY_IDEMPOTENCY_KEY" \
  -H "Content-Type: application/json" \
  --data @payload.json

Prepara payload.json con los campos del cuerpo. Sustituye los identificadores y conserva la clave al reintentar la misma intención.

Respuesta
CampoTipo y descripción
importobject
summaryobject
rejected_itemsarray de object
Schemas completos de REST y MCP

Cuerpo REST

{
  "type": "object",
  "properties": {
    "import_name": {
      "default": "Importación de contactos",
      "type": "string",
      "minLength": 1,
      "maxLength": 120
    },
    "import_source": {
      "type": "string",
      "maxLength": 120
    },
    "leads": {
      "minItems": 1,
      "maxItems": 100,
      "type": "array",
      "items": {
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "person_id": {
                "type": "string",
                "minLength": 1,
                "maxLength": 160
              },
              "external_id": {
                "type": "string",
                "minLength": 1,
                "maxLength": 200
              },
              "lead_specific_brief": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 4000
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "person_id"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "full_name": {
                "type": "string",
                "minLength": 1,
                "maxLength": 200
              },
              "linkedin_url": {
                "type": "string",
                "maxLength": 2048
              },
              "email": {
                "type": "string",
                "maxLength": 320,
                "format": "email",
                "pattern": "^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
              },
              "company": {
                "type": "string",
                "maxLength": 300
              },
              "locale": {
                "type": "string",
                "maxLength": 40
              },
              "timezone": {
                "type": "string",
                "maxLength": 100
              },
              "external_id": {
                "type": "string",
                "minLength": 1,
                "maxLength": 200
              },
              "lead_specific_brief": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 4000
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "full_name",
              "linkedin_url"
            ],
            "additionalProperties": false
          }
        ]
      }
    },
    "csv_text": {
      "type": "string",
      "minLength": 1,
      "maxLength": 2000000
    }
  },
  "additionalProperties": false
}

Entrada MCP

{
  "type": "object",
  "properties": {
    "campaign_id": {
      "type": "string",
      "minLength": 1,
      "maxLength": 160
    },
    "import_name": {
      "default": "Importación de contactos",
      "type": "string",
      "minLength": 1,
      "maxLength": 120
    },
    "import_source": {
      "type": "string",
      "maxLength": 120
    },
    "leads": {
      "minItems": 1,
      "maxItems": 100,
      "type": "array",
      "items": {
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "person_id": {
                "type": "string",
                "minLength": 1,
                "maxLength": 160
              },
              "external_id": {
                "type": "string",
                "minLength": 1,
                "maxLength": 200
              },
              "lead_specific_brief": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 4000
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "person_id"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "full_name": {
                "type": "string",
                "minLength": 1,
                "maxLength": 200
              },
              "linkedin_url": {
                "type": "string",
                "maxLength": 2048
              },
              "email": {
                "type": "string",
                "maxLength": 320,
                "format": "email",
                "pattern": "^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
              },
              "company": {
                "type": "string",
                "maxLength": 300
              },
              "locale": {
                "type": "string",
                "maxLength": 40
              },
              "timezone": {
                "type": "string",
                "maxLength": 100
              },
              "external_id": {
                "type": "string",
                "minLength": 1,
                "maxLength": 200
              },
              "lead_specific_brief": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 4000
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "full_name",
              "linkedin_url"
            ],
            "additionalProperties": false
          }
        ]
      }
    },
    "csv_text": {
      "type": "string",
      "minLength": 1,
      "maxLength": 2000000
    },
    "idempotency_key": {
      "type": "string",
      "minLength": 8,
      "maxLength": 160
    }
  },
  "required": [
    "campaign_id",
    "idempotency_key"
  ],
  "additionalProperties": false
}

Respuesta JSON

{
  "type": "object",
  "properties": {
    "import": {
      "type": "object",
      "properties": {
        "import_id": {
          "type": "string"
        },
        "campaign_id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        }
      },
      "required": [
        "import_id",
        "campaign_id",
        "name"
      ],
      "additionalProperties": false
    },
    "summary": {
      "type": "object",
      "properties": {
        "rows_received": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        },
        "people_added": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        },
        "people_already_in_campaign": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        },
        "people_in_multiple_campaigns": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        },
        "campaign_overlaps": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "person_id": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "campaigns": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "campaign_id": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "campaign_id",
                    "name"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "required": [
              "person_id",
              "name",
              "campaigns"
            ],
            "additionalProperties": false
          }
        },
        "duplicate_rows": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        },
        "rejected_rows": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        },
        "people_processed": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        },
        "people_available": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        },
        "people_pending": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        },
        "enrichment_pending": {
          "type": "boolean"
        },
        "as_of": {
          "type": "string",
          "format": "date-time",
          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
        }
      },
      "required": [
        "rows_received",
        "people_added",
        "people_already_in_campaign",
        "people_in_multiple_campaigns",
        "campaign_overlaps",
        "duplicate_rows",
        "rejected_rows",
        "people_processed",
        "people_available",
        "people_pending",
        "enrichment_pending",
        "as_of"
      ],
      "additionalProperties": false
    },
    "rejected_items": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "row_number": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "code": {
            "type": "string"
          },
          "message": {
            "type": "string"
          }
        },
        "required": [
          "row_number",
          "code",
          "message"
        ],
        "additionalProperties": false
      }
    }
  },
  "required": [
    "import",
    "summary",
    "rejected_items"
  ],
  "additionalProperties": false
}

Cambiar la participación de una persona

PATCH/api/v1/campaigns/{campaignId}/people/{personId}

set campaign lead status

REST: clave API o sesiónTool MCP set_campaign_lead_statusPermiso writeReintentos con la misma claveRequiere revisión
ParámetroDescripción
campaignIdpath · string · obligatorioAl menos 1 caracteres. Hasta 160 caracteres.
personIdpath · string · obligatorioAl menos 1 caracteres. Hasta 160 caracteres.
Idempotency-Keyheader · string · obligatorioAl menos 8 caracteres. Hasta 160 caracteres.
Originheader · "https://ai.zaly.app" · opcionalObligatoria en escrituras con cookie. No se requiere con Bearer.
statusbody · "active" | "ended" | "meeting_scheduled" · obligatorioEstado del recurso. Comprueba los valores admitidos antes de filtrar o actualizar.

Petición

curl -X PATCH "https://ai.zaly.app/api/v1/campaigns/$CAMPAIGN_ID/people/$PERSON_ID" \
  -H "Authorization: Bearer $ZALY_API_KEY" \
  -H "Idempotency-Key: $ZALY_IDEMPOTENCY_KEY" \
  -H "Content-Type: application/json" \
  --data @payload.json

Prepara payload.json con los campos del cuerpo. Sustituye los identificadores y conserva la clave al reintentar la misma intención.

Respuesta
CampoTipo y descripción
campaign_idstring
person_idstring
participationobject
Schemas completos de REST y MCP

Cuerpo REST

{
  "type": "object",
  "properties": {
    "status": {
      "type": "string",
      "enum": [
        "active",
        "ended",
        "meeting_scheduled"
      ]
    }
  },
  "required": [
    "status"
  ],
  "additionalProperties": false
}

Entrada MCP

{
  "type": "object",
  "properties": {
    "campaign_id": {
      "type": "string",
      "minLength": 1,
      "maxLength": 160
    },
    "person_id": {
      "type": "string",
      "minLength": 1,
      "maxLength": 160
    },
    "status": {
      "type": "string",
      "enum": [
        "active",
        "ended",
        "meeting_scheduled"
      ]
    },
    "idempotency_key": {
      "type": "string",
      "minLength": 8,
      "maxLength": 160
    }
  },
  "required": [
    "campaign_id",
    "person_id",
    "status",
    "idempotency_key"
  ],
  "additionalProperties": false
}

Respuesta JSON

{
  "type": "object",
  "properties": {
    "campaign_id": {
      "type": "string"
    },
    "person_id": {
      "type": "string"
    },
    "participation": {
      "type": "object",
      "properties": {
        "previous_status": {
          "type": "string"
        },
        "status": {
          "type": "string"
        },
        "updated_at": {
          "type": "string",
          "format": "date-time",
          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
        }
      },
      "required": [
        "previous_status",
        "status",
        "updated_at"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "campaign_id",
    "person_id",
    "participation"
  ],
  "additionalProperties": false
}

Calendario

Disponibilidad, reservas y reuniones externas.

Actualizar el calendario de una cuenta

POST/api/v1/accounts/{accountId}/calendar/refresh

refresh account calendar

REST: clave API o sesiónTool MCP refresh_account_calendarPermiso writeReintentos con la misma clave
ParámetroDescripción
accountIdpath · string · obligatorioAl menos 1 caracteres. Hasta 160 caracteres.
Idempotency-Keyheader · string · obligatorioAl menos 8 caracteres. Hasta 160 caracteres.
Originheader · "https://ai.zaly.app" · opcionalObligatoria en escrituras con cookie. No se requiere con Bearer.

Petición

curl -X POST "https://ai.zaly.app/api/v1/accounts/$ACCOUNT_ID/calendar/refresh" \
  -H "Authorization: Bearer $ZALY_API_KEY" \
  -H "Idempotency-Key: $ZALY_IDEMPOTENCY_KEY" \
  -H "Content-Type: application/json" \
  --data @payload.json

Prepara payload.json con los campos del cuerpo. Sustituye los identificadores y conserva la clave al reintentar la misma intención.

Respuesta
CampoTipo y descripción
account_idstring
calendarobject
Schemas completos de REST y MCP

Cuerpo REST

{
  "type": "object",
  "properties": {},
  "additionalProperties": false
}

Entrada MCP

{
  "type": "object",
  "properties": {
    "account_id": {
      "type": "string",
      "minLength": 1,
      "maxLength": 160
    },
    "idempotency_key": {
      "type": "string",
      "minLength": 8,
      "maxLength": 160
    }
  },
  "required": [
    "account_id",
    "idempotency_key"
  ],
  "additionalProperties": false
}

Respuesta JSON

{
  "type": "object",
  "properties": {
    "account_id": {
      "type": "string"
    },
    "calendar": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string"
        },
        "can_read": {
          "type": "boolean"
        },
        "can_write": {
          "type": "boolean"
        },
        "checked_at": {
          "type": "string",
          "format": "date-time",
          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
        }
      },
      "required": [
        "name",
        "can_read",
        "can_write",
        "checked_at"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "account_id",
    "calendar"
  ],
  "additionalProperties": false
}

Consultar disponibilidad

GET/api/v1/campaigns/{campaignId}/calendar/availability

get calendar availability

REST: clave API o sesiónTool MCP get_calendar_availabilityPermiso readSolo lecturaReintentos con la misma clave
ParámetroDescripción
campaignIdpath · string · obligatorioAl menos 1 caracteres. Hasta 160 caracteres.
starts_atquery · string · date-time · obligatorioInicio solicitado de la reunión, en formato ISO 8601 con zona horaria.
ends_atquery · string · date-time · obligatorioFinal solicitado de la reunión, en formato ISO 8601 con zona horaria.
duration_minutesquery · integer · obligatorioMínimo: 15. Máximo: 120.

Petición

curl -X GET "https://ai.zaly.app/api/v1/campaigns/$CAMPAIGN_ID/calendar/availability?starts_at=<starts_at>&ends_at=<ends_at>&duration_minutes=<duration_minutes>" \
  -H "Authorization: Bearer $ZALY_API_KEY"
Respuesta
CampoTipo y descripción
campaign_idstring
timezonestring
starts_atstring · date-time
ends_atstring · date-time
duration_minutesintegerMínimo: -9007199254740991. Máximo: 9007199254740991.
slotsarray de object
as_ofstring · date-time
Schemas completos de REST y MCP

Entrada MCP

{
  "type": "object",
  "properties": {
    "campaign_id": {
      "type": "string",
      "minLength": 1,
      "maxLength": 160
    },
    "starts_at": {
      "type": "string",
      "format": "date-time",
      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
    },
    "ends_at": {
      "type": "string",
      "format": "date-time",
      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
    },
    "duration_minutes": {
      "type": "integer",
      "minimum": 15,
      "maximum": 120
    }
  },
  "required": [
    "campaign_id",
    "starts_at",
    "ends_at",
    "duration_minutes"
  ],
  "additionalProperties": false
}

Respuesta JSON

{
  "type": "object",
  "properties": {
    "campaign_id": {
      "type": "string"
    },
    "timezone": {
      "type": "string"
    },
    "starts_at": {
      "type": "string",
      "format": "date-time",
      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
    },
    "ends_at": {
      "type": "string",
      "format": "date-time",
      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
    },
    "duration_minutes": {
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991
    },
    "slots": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "starts_at": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
          },
          "ends_at": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
          }
        },
        "required": [
          "starts_at",
          "ends_at"
        ],
        "additionalProperties": false
      }
    },
    "as_of": {
      "type": "string",
      "format": "date-time",
      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
    }
  },
  "required": [
    "campaign_id",
    "timezone",
    "starts_at",
    "ends_at",
    "duration_minutes",
    "slots",
    "as_of"
  ],
  "additionalProperties": false
}

Agendar una reunión

POST/api/v1/campaigns/{campaignId}/people/{personId}/meetings

schedule meeting

REST: clave API o sesiónTool MCP schedule_meetingPermiso sendReintentos con la misma claveRequiere revisión
ParámetroDescripción
campaignIdpath · string · obligatorioAl menos 1 caracteres. Hasta 160 caracteres.
personIdpath · string · obligatorioAl menos 1 caracteres. Hasta 160 caracteres.
Idempotency-Keyheader · string · obligatorioAl menos 8 caracteres. Hasta 160 caracteres.
Originheader · "https://ai.zaly.app" · opcionalObligatoria en escrituras con cookie. No se requiere con Bearer.
attendee_emailbody · string · email · obligatorioValor de este campo. Consulta el tipo, los límites y el esquema completo para preparar la petición.
starts_atbody · string · date-time · obligatorioInicio solicitado de la reunión, en formato ISO 8601 con zona horaria.
duration_minutesbody · integer · obligatorioMínimo: 15. Máximo: 120.

Petición

curl -X POST "https://ai.zaly.app/api/v1/campaigns/$CAMPAIGN_ID/people/$PERSON_ID/meetings" \
  -H "Authorization: Bearer $ZALY_API_KEY" \
  -H "Idempotency-Key: $ZALY_IDEMPOTENCY_KEY" \
  -H "Content-Type: application/json" \
  --data @payload.json

Prepara payload.json con los campos del cuerpo. Sustituye los identificadores y conserva la clave al reintentar la misma intención.

Respuesta
CampoTipo y descripción
meetingobject
participationobject
Schemas completos de REST y MCP

Cuerpo REST

{
  "type": "object",
  "properties": {
    "attendee_email": {
      "type": "string",
      "format": "email",
      "pattern": "^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
    },
    "starts_at": {
      "type": "string",
      "format": "date-time",
      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
    },
    "duration_minutes": {
      "type": "integer",
      "minimum": 15,
      "maximum": 120
    }
  },
  "required": [
    "attendee_email",
    "starts_at",
    "duration_minutes"
  ],
  "additionalProperties": false
}

Entrada MCP

{
  "type": "object",
  "properties": {
    "campaign_id": {
      "type": "string",
      "minLength": 1,
      "maxLength": 160
    },
    "person_id": {
      "type": "string",
      "minLength": 1,
      "maxLength": 160
    },
    "attendee_email": {
      "type": "string",
      "format": "email",
      "pattern": "^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
    },
    "starts_at": {
      "type": "string",
      "format": "date-time",
      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
    },
    "duration_minutes": {
      "type": "integer",
      "minimum": 15,
      "maximum": 120
    },
    "idempotency_key": {
      "type": "string",
      "minLength": 8,
      "maxLength": 160
    }
  },
  "required": [
    "campaign_id",
    "person_id",
    "attendee_email",
    "starts_at",
    "duration_minutes",
    "idempotency_key"
  ],
  "additionalProperties": false
}

Respuesta JSON

{
  "type": "object",
  "properties": {
    "meeting": {
      "type": "object",
      "properties": {
        "meeting_id": {
          "type": "string"
        },
        "campaign_id": {
          "type": "string"
        },
        "person_id": {
          "type": "string"
        },
        "status": {
          "type": "string",
          "const": "scheduled"
        },
        "title": {
          "type": "string"
        },
        "organizer_email": {
          "type": "string"
        },
        "attendee_email": {
          "type": "string"
        },
        "starts_at": {
          "type": "string",
          "format": "date-time",
          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
        },
        "ends_at": {
          "type": "string",
          "format": "date-time",
          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
        },
        "timezone": {
          "type": "string"
        },
        "calendar_url": {
          "type": [
            "string",
            "null"
          ]
        },
        "join_url": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "required": [
        "meeting_id",
        "campaign_id",
        "person_id",
        "status",
        "title",
        "organizer_email",
        "attendee_email",
        "starts_at",
        "ends_at",
        "timezone",
        "calendar_url",
        "join_url"
      ],
      "additionalProperties": false
    },
    "participation": {
      "type": "object",
      "properties": {
        "previous_status": {
          "type": "string"
        },
        "status": {
          "type": "string"
        },
        "updated_at": {
          "type": "string",
          "format": "date-time",
          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
        }
      },
      "required": [
        "previous_status",
        "status",
        "updated_at"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "meeting",
    "participation"
  ],
  "additionalProperties": false
}

Listar reuniones

GET/api/v1/campaigns/{campaignId}/people/{personId}/meetings

list meetings

REST: clave API o sesiónTool MCP list_meetingsPermiso readSolo lecturaReintentos con la misma clave
ParámetroDescripción
campaignIdpath · string · obligatorioAl menos 1 caracteres. Hasta 160 caracteres.
personIdpath · string · obligatorioAl menos 1 caracteres. Hasta 160 caracteres.
limitquery · integer · opcionalPor defecto: 25. Mínimo: 1. Máximo: 50.
cursorquery · string · opcionalAl menos 1 caracteres. Hasta 160 caracteres.

Petición

curl -X GET "https://ai.zaly.app/api/v1/campaigns/$CAMPAIGN_ID/people/$PERSON_ID/meetings" \
  -H "Authorization: Bearer $ZALY_API_KEY"
Respuesta
CampoTipo y descripción
itemsarray de object
next_cursorstring | null
Schemas completos de REST y MCP

Entrada MCP

{
  "type": "object",
  "properties": {
    "campaign_id": {
      "type": "string",
      "minLength": 1,
      "maxLength": 160
    },
    "person_id": {
      "type": "string",
      "minLength": 1,
      "maxLength": 160
    },
    "limit": {
      "default": 25,
      "type": "integer",
      "minimum": 1,
      "maximum": 50
    },
    "cursor": {
      "type": "string",
      "minLength": 1,
      "maxLength": 160
    }
  },
  "required": [
    "campaign_id",
    "person_id"
  ],
  "additionalProperties": false
}

Respuesta JSON

{
  "type": "object",
  "properties": {
    "items": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "meeting_id": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160
          },
          "campaign_id": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160
          },
          "person_id": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160
          },
          "source": {
            "type": "string",
            "enum": [
              "external",
              "calendar"
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "pending",
              "scheduled",
              "completed",
              "cancelled",
              "failed"
            ]
          },
          "starts_at": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
          },
          "ends_at": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
          },
          "timezone": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "join_url": {
            "anyOf": [
              {
                "type": "string",
                "format": "uri"
              },
              {
                "type": "null"
              }
            ]
          },
          "calendar_url": {
            "anyOf": [
              {
                "type": "string",
                "format": "uri"
              },
              {
                "type": "null"
              }
            ]
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
          }
        },
        "required": [
          "meeting_id",
          "campaign_id",
          "person_id",
          "source",
          "status",
          "starts_at",
          "ends_at",
          "timezone",
          "title",
          "join_url",
          "calendar_url",
          "updated_at"
        ],
        "additionalProperties": false
      }
    },
    "next_cursor": {
      "type": [
        "string",
        "null"
      ]
    }
  },
  "required": [
    "items",
    "next_cursor"
  ],
  "additionalProperties": false
}

Registrar una reunión externa

POST/api/v1/campaigns/{campaignId}/people/{personId}/meetings/external

Registra una reunión ya acordada fuera de Zaly, sin crear evento ni enviar invitaciones.

REST: clave API o sesiónTool MCP record_meetingPermiso writeReintentos con la misma claveRequiere revisión
ParámetroDescripción
campaignIdpath · string · obligatorioAl menos 1 caracteres. Hasta 160 caracteres.
personIdpath · string · obligatorioAl menos 1 caracteres. Hasta 160 caracteres.
Idempotency-Keyheader · string · obligatorioAl menos 8 caracteres. Hasta 160 caracteres.
Originheader · "https://ai.zaly.app" · opcionalObligatoria en escrituras con cookie. No se requiere con Bearer.
starts_atbody · string · date-time · obligatorioInicio solicitado de la reunión, en formato ISO 8601 con zona horaria.
duration_minutesbody · integer · obligatorioMínimo: 15. Máximo: 120.
timezonebody · string · obligatorioAl menos 1 caracteres. Hasta 100 caracteres.
join_urlbody · string · uri | null · opcionalPor defecto: null.

Petición

curl -X POST "https://ai.zaly.app/api/v1/campaigns/$CAMPAIGN_ID/people/$PERSON_ID/meetings/external" \
  -H "Authorization: Bearer $ZALY_API_KEY" \
  -H "Idempotency-Key: $ZALY_IDEMPOTENCY_KEY" \
  -H "Content-Type: application/json" \
  --data @payload.json

Prepara payload.json con los campos del cuerpo. Sustituye los identificadores y conserva la clave al reintentar la misma intención.

Respuesta
CampoTipo y descripción
meetingobject
Schemas completos de REST y MCP

Cuerpo REST

{
  "type": "object",
  "properties": {
    "starts_at": {
      "type": "string",
      "format": "date-time",
      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
    },
    "duration_minutes": {
      "type": "integer",
      "minimum": 15,
      "maximum": 120
    },
    "timezone": {
      "type": "string",
      "minLength": 1,
      "maxLength": 100
    },
    "join_url": {
      "default": null,
      "anyOf": [
        {
          "type": "string",
          "maxLength": 2000,
          "format": "uri"
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "required": [
    "starts_at",
    "duration_minutes",
    "timezone"
  ],
  "additionalProperties": false
}

Entrada MCP

{
  "type": "object",
  "properties": {
    "campaign_id": {
      "type": "string",
      "minLength": 1,
      "maxLength": 160
    },
    "person_id": {
      "type": "string",
      "minLength": 1,
      "maxLength": 160
    },
    "starts_at": {
      "type": "string",
      "format": "date-time",
      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
    },
    "duration_minutes": {
      "type": "integer",
      "minimum": 15,
      "maximum": 120
    },
    "timezone": {
      "type": "string",
      "minLength": 1,
      "maxLength": 100
    },
    "join_url": {
      "default": null,
      "anyOf": [
        {
          "type": "string",
          "maxLength": 2000,
          "format": "uri"
        },
        {
          "type": "null"
        }
      ]
    },
    "idempotency_key": {
      "type": "string",
      "minLength": 8,
      "maxLength": 160
    }
  },
  "required": [
    "campaign_id",
    "person_id",
    "starts_at",
    "duration_minutes",
    "timezone",
    "idempotency_key"
  ],
  "additionalProperties": false
}

Respuesta JSON

{
  "type": "object",
  "properties": {
    "meeting": {
      "type": "object",
      "properties": {
        "meeting_id": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "campaign_id": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "person_id": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "source": {
          "type": "string",
          "enum": [
            "external",
            "calendar"
          ]
        },
        "status": {
          "type": "string",
          "enum": [
            "pending",
            "scheduled",
            "completed",
            "cancelled",
            "failed"
          ]
        },
        "starts_at": {
          "type": "string",
          "format": "date-time",
          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
        },
        "ends_at": {
          "type": "string",
          "format": "date-time",
          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
        },
        "timezone": {
          "type": "string"
        },
        "title": {
          "type": "string"
        },
        "join_url": {
          "anyOf": [
            {
              "type": "string",
              "format": "uri"
            },
            {
              "type": "null"
            }
          ]
        },
        "calendar_url": {
          "anyOf": [
            {
              "type": "string",
              "format": "uri"
            },
            {
              "type": "null"
            }
          ]
        },
        "updated_at": {
          "type": "string",
          "format": "date-time",
          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
        }
      },
      "required": [
        "meeting_id",
        "campaign_id",
        "person_id",
        "source",
        "status",
        "starts_at",
        "ends_at",
        "timezone",
        "title",
        "join_url",
        "calendar_url",
        "updated_at"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "meeting"
  ],
  "additionalProperties": false
}

Actualizar una reunión

PATCH/api/v1/campaigns/{campaignId}/people/{personId}/meetings/{meetingId}

Modifica una reunión, la cancela o la marca celebrada. Si procede de calendario, cambiar fecha o cancelar modifica el evento y requiere permiso de envío. No reanuda mensajes.

REST: clave API o sesiónTool MCP update_meetingPermiso writeReintentos con la misma claveRequiere revisión
ParámetroDescripción
campaignIdpath · string · obligatorioAl menos 1 caracteres. Hasta 160 caracteres.
personIdpath · string · obligatorioAl menos 1 caracteres. Hasta 160 caracteres.
meetingIdpath · string · obligatorioAl menos 1 caracteres. Hasta 160 caracteres.
Idempotency-Keyheader · string · obligatorioAl menos 8 caracteres. Hasta 160 caracteres.
Originheader · "https://ai.zaly.app" · opcionalObligatoria en escrituras con cookie. No se requiere con Bearer.
starts_atbody · string · date-time · opcionalInicio solicitado de la reunión, en formato ISO 8601 con zona horaria.
duration_minutesbody · integer · opcionalMínimo: 15. Máximo: 120.
join_urlbody · string · uri | null · opcionalValor de este campo. Consulta el tipo, los límites y el esquema completo para preparar la petición.
statusbody · "scheduled" | "completed" | "cancelled" · opcionalEstado del recurso. Comprueba los valores admitidos antes de filtrar o actualizar.

Petición

curl -X PATCH "https://ai.zaly.app/api/v1/campaigns/$CAMPAIGN_ID/people/$PERSON_ID/meetings/$MEETING_ID" \
  -H "Authorization: Bearer $ZALY_API_KEY" \
  -H "Idempotency-Key: $ZALY_IDEMPOTENCY_KEY" \
  -H "Content-Type: application/json" \
  --data @payload.json

Prepara payload.json con los campos del cuerpo. Sustituye los identificadores y conserva la clave al reintentar la misma intención.

Respuesta
CampoTipo y descripción
meetingobject
Schemas completos de REST y MCP

Cuerpo REST

{
  "type": "object",
  "properties": {
    "starts_at": {
      "type": "string",
      "format": "date-time",
      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
    },
    "duration_minutes": {
      "type": "integer",
      "minimum": 15,
      "maximum": 120
    },
    "join_url": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 2000,
          "format": "uri"
        },
        {
          "type": "null"
        }
      ]
    },
    "status": {
      "type": "string",
      "enum": [
        "scheduled",
        "completed",
        "cancelled"
      ]
    }
  },
  "additionalProperties": false
}

Entrada MCP

{
  "type": "object",
  "properties": {
    "campaign_id": {
      "type": "string",
      "minLength": 1,
      "maxLength": 160
    },
    "person_id": {
      "type": "string",
      "minLength": 1,
      "maxLength": 160
    },
    "meeting_id": {
      "type": "string",
      "minLength": 1,
      "maxLength": 160
    },
    "starts_at": {
      "type": "string",
      "format": "date-time",
      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
    },
    "duration_minutes": {
      "type": "integer",
      "minimum": 15,
      "maximum": 120
    },
    "join_url": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 2000,
          "format": "uri"
        },
        {
          "type": "null"
        }
      ]
    },
    "status": {
      "type": "string",
      "enum": [
        "scheduled",
        "completed",
        "cancelled"
      ]
    },
    "idempotency_key": {
      "type": "string",
      "minLength": 8,
      "maxLength": 160
    }
  },
  "required": [
    "campaign_id",
    "person_id",
    "meeting_id",
    "idempotency_key"
  ],
  "additionalProperties": false
}

Respuesta JSON

{
  "type": "object",
  "properties": {
    "meeting": {
      "type": "object",
      "properties": {
        "meeting_id": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "campaign_id": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "person_id": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "source": {
          "type": "string",
          "enum": [
            "external",
            "calendar"
          ]
        },
        "status": {
          "type": "string",
          "enum": [
            "pending",
            "scheduled",
            "completed",
            "cancelled",
            "failed"
          ]
        },
        "starts_at": {
          "type": "string",
          "format": "date-time",
          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
        },
        "ends_at": {
          "type": "string",
          "format": "date-time",
          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
        },
        "timezone": {
          "type": "string"
        },
        "title": {
          "type": "string"
        },
        "join_url": {
          "anyOf": [
            {
              "type": "string",
              "format": "uri"
            },
            {
              "type": "null"
            }
          ]
        },
        "calendar_url": {
          "anyOf": [
            {
              "type": "string",
              "format": "uri"
            },
            {
              "type": "null"
            }
          ]
        },
        "updated_at": {
          "type": "string",
          "format": "date-time",
          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
        }
      },
      "required": [
        "meeting_id",
        "campaign_id",
        "person_id",
        "source",
        "status",
        "starts_at",
        "ends_at",
        "timezone",
        "title",
        "join_url",
        "calendar_url",
        "updated_at"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "meeting"
  ],
  "additionalProperties": false
}

Conversaciones

Historial, borradores, aprobaciones y seguimiento de acciones.

Consultar una conversación

GET/api/v1/campaigns/{campaignId}/people/{personId}/conversation

get conversation

REST: clave API o sesiónTool MCP get_conversationPermiso readSolo lecturaReintentos con la misma clave
ParámetroDescripción
campaignIdpath · string · obligatorioAl menos 1 caracteres. Hasta 160 caracteres.
personIdpath · string · obligatorioAl menos 1 caracteres. Hasta 160 caracteres.
limitquery · integer · opcionalPor defecto: 50. Mínimo: 1. Máximo: 100.
cursorquery · string | null · opcionalCursor devuelto por la página anterior. Omítelo en la primera consulta.

Petición

curl -X GET "https://ai.zaly.app/api/v1/campaigns/$CAMPAIGN_ID/people/$PERSON_ID/conversation" \
  -H "Authorization: Bearer $ZALY_API_KEY"
Respuesta
CampoTipo y descripción
campaign_idstring
last_linkedin_outboundobject | null
evaluationobject
personobject
messagesarray de object
historyarray de object
returned_countintegerMínimo: 0. Máximo: 9007199254740991.
has_moreboolean
next_cursorstring | null
Schemas completos de REST y MCP

Entrada MCP

{
  "type": "object",
  "properties": {
    "campaign_id": {
      "type": "string",
      "minLength": 1,
      "maxLength": 160
    },
    "person_id": {
      "type": "string",
      "minLength": 1,
      "maxLength": 160
    },
    "limit": {
      "default": 50,
      "type": "integer",
      "minimum": 1,
      "maximum": 100
    },
    "cursor": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 2000
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "required": [
    "campaign_id",
    "person_id"
  ],
  "additionalProperties": false
}

Respuesta JSON

{
  "type": "object",
  "properties": {
    "campaign_id": {
      "type": "string"
    },
    "last_linkedin_outbound": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "message_id": {
              "type": "string"
            },
            "account_id": {
              "type": "string"
            },
            "occurred_at": {
              "type": "string",
              "format": "date-time",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
            },
            "read_receipt": {
              "oneOf": [
                {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "string",
                      "const": "not_applicable"
                    }
                  },
                  "required": [
                    "status"
                  ],
                  "additionalProperties": false
                },
                {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "string",
                      "const": "unknown"
                    }
                  },
                  "required": [
                    "status"
                  ],
                  "additionalProperties": false
                },
                {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "string",
                      "const": "read"
                    },
                    "read_at": {
                      "type": "string",
                      "format": "date-time",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                    }
                  },
                  "required": [
                    "status",
                    "read_at"
                  ],
                  "additionalProperties": false
                }
              ]
            },
            "reply_status": {
              "type": "string",
              "enum": [
                "reply_observed",
                "no_reply_observed"
              ]
            }
          },
          "required": [
            "message_id",
            "account_id",
            "occurred_at",
            "read_receipt",
            "reply_status"
          ],
          "additionalProperties": false
        },
        {
          "type": "null"
        }
      ]
    },
    "evaluation": {
      "type": "object",
      "properties": {
        "request": {
          "anyOf": [
            {
              "type": "object",
              "properties": {
                "status": {
                  "type": "string",
                  "enum": [
                    "pending",
                    "applied",
                    "invalid",
                    "not_ready",
                    "ignored"
                  ]
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "updated_at": {
                  "type": "string",
                  "format": "date-time",
                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                }
              },
              "required": [
                "status",
                "updated_at"
              ],
              "additionalProperties": false
            },
            {
              "type": "null"
            }
          ]
        },
        "restriction": {
          "anyOf": [
            {
              "type": "object",
              "properties": {
                "commercial_state": {
                  "type": "string",
                  "const": "do_not_contact"
                },
                "evaluated_at": {
                  "type": "string",
                  "format": "date-time",
                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                }
              },
              "required": [
                "commercial_state",
                "evaluated_at"
              ],
              "additionalProperties": false
            },
            {
              "type": "null"
            }
          ]
        },
        "result": {
          "anyOf": [
            {
              "type": "object",
              "properties": {
                "score": {
                  "type": "number"
                },
                "commercial_state": {
                  "type": "string",
                  "enum": [
                    "open",
                    "meeting_agreed",
                    "closed_not_interested",
                    "closed_deferred",
                    "wrong_person",
                    "do_not_contact"
                  ]
                },
                "dimensions": {
                  "type": "object",
                  "properties": {
                    "participation_level": {
                      "type": "string",
                      "enum": [
                        "none",
                        "polite",
                        "engaged",
                        "active",
                        "driving"
                      ]
                    },
                    "problem_level": {
                      "type": "string",
                      "enum": [
                        "none",
                        "vague",
                        "clear",
                        "urgent"
                      ]
                    },
                    "service_interest_level": {
                      "type": "string",
                      "enum": [
                        "none",
                        "vague",
                        "clear",
                        "strong"
                      ]
                    },
                    "timing_level": {
                      "type": "string",
                      "enum": [
                        "none",
                        "someday",
                        "evaluating",
                        "soon",
                        "now"
                      ]
                    },
                    "meeting_readiness_level": {
                      "type": "string",
                      "enum": [
                        "none",
                        "open",
                        "considering",
                        "proposed",
                        "arranging",
                        "agreed"
                      ]
                    }
                  },
                  "required": [
                    "participation_level",
                    "problem_level",
                    "service_interest_level",
                    "timing_level",
                    "meeting_readiness_level"
                  ],
                  "additionalProperties": false
                },
                "evidence_message_ids": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "evidence_snippets": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "reason": {
                  "type": "string"
                },
                "evaluated_at": {
                  "type": "string",
                  "format": "date-time",
                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                },
                "synthetic": {
                  "type": "boolean"
                }
              },
              "required": [
                "score",
                "commercial_state",
                "dimensions",
                "evidence_message_ids",
                "evidence_snippets",
                "reason",
                "evaluated_at",
                "synthetic"
              ],
              "additionalProperties": false
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "request",
        "restriction",
        "result"
      ],
      "additionalProperties": false
    },
    "person": {
      "type": "object",
      "properties": {
        "person_id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        }
      },
      "required": [
        "person_id",
        "name"
      ],
      "additionalProperties": false
    },
    "messages": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "message_id": {
            "type": "string"
          },
          "gif_id": {
            "type": "string"
          },
          "channel": {
            "type": "string",
            "enum": [
              "linkedin",
              "email"
            ]
          },
          "account_id": {
            "type": "string"
          },
          "thread_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "direction": {
            "type": "string",
            "enum": [
              "inbound",
              "outbound"
            ]
          },
          "subject": {
            "type": [
              "string",
              "null"
            ]
          },
          "text": {
            "type": "string"
          },
          "attachments": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string"
                },
                "type": {
                  "type": "string"
                },
                "mimetype": {
                  "type": "string"
                },
                "name": {
                  "type": "string"
                }
              },
              "required": [
                "id"
              ],
              "additionalProperties": false
            }
          },
          "occurred_at": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
          },
          "read_receipt": {
            "oneOf": [
              {
                "type": "object",
                "properties": {
                  "status": {
                    "type": "string",
                    "const": "not_applicable"
                  }
                },
                "required": [
                  "status"
                ],
                "additionalProperties": false
              },
              {
                "type": "object",
                "properties": {
                  "status": {
                    "type": "string",
                    "const": "unknown"
                  }
                },
                "required": [
                  "status"
                ],
                "additionalProperties": false
              },
              {
                "type": "object",
                "properties": {
                  "status": {
                    "type": "string",
                    "const": "read"
                  },
                  "read_at": {
                    "type": "string",
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                  }
                },
                "required": [
                  "status",
                  "read_at"
                ],
                "additionalProperties": false
              }
            ]
          },
          "origin_campaign_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "source": {
            "type": "string",
            "enum": [
              "synthetic_history",
              "synthetic_send",
              "webhook",
              "unipile_history",
              "unipile_send"
            ]
          }
        },
        "required": [
          "message_id",
          "channel",
          "account_id",
          "thread_id",
          "direction",
          "subject",
          "text",
          "attachments",
          "occurred_at",
          "read_receipt",
          "origin_campaign_id",
          "source"
        ],
        "additionalProperties": false
      }
    },
    "history": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "account_id": {
            "type": "string"
          },
          "channel": {
            "type": "string",
            "enum": [
              "linkedin",
              "email"
            ]
          },
          "coverage": {
            "type": "string",
            "enum": [
              "unknown",
              "partial",
              "complete"
            ]
          },
          "last_synced_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "account_id",
          "channel",
          "coverage",
          "last_synced_at"
        ],
        "additionalProperties": false
      }
    },
    "returned_count": {
      "type": "integer",
      "minimum": 0,
      "maximum": 9007199254740991
    },
    "has_more": {
      "type": "boolean"
    },
    "next_cursor": {
      "type": [
        "string",
        "null"
      ]
    }
  },
  "required": [
    "campaign_id",
    "last_linkedin_outbound",
    "evaluation",
    "person",
    "messages",
    "history",
    "returned_count",
    "has_more",
    "next_cursor"
  ],
  "additionalProperties": false
}

Listar acciones

GET/api/v1/campaigns/{campaignId}/people/{personId}/actions

list lead actions

REST: clave API o sesiónTool MCP list_lead_actionsPermiso readSolo lecturaReintentos con la misma clave
ParámetroDescripción
campaignIdpath · string · obligatorioAl menos 1 caracteres. Hasta 160 caracteres.
personIdpath · string · obligatorioAl menos 1 caracteres. Hasta 160 caracteres.
statequery · "draft" | "approved" | "queued" | "sending" | "sent" | "uncertain" | "cancelled" | "failed" · opcionalEstado que quieres consultar o establecer. Usa uno de los valores admitidos indicados.
limitquery · integer · opcionalPor defecto: 25. Mínimo: 1. Máximo: 50.
cursorquery · string | null · opcionalCursor devuelto por la página anterior. Omítelo en la primera consulta.

Petición

curl -X GET "https://ai.zaly.app/api/v1/campaigns/$CAMPAIGN_ID/people/$PERSON_ID/actions" \
  -H "Authorization: Bearer $ZALY_API_KEY"
Respuesta
CampoTipo y descripción
itemsarray de object
returned_countintegerMínimo: 0. Máximo: 9007199254740991.
has_moreboolean
next_cursorstring | null
campaign_idstring
person_idstring
Schemas completos de REST y MCP

Entrada MCP

{
  "type": "object",
  "properties": {
    "campaign_id": {
      "type": "string",
      "minLength": 1,
      "maxLength": 160
    },
    "person_id": {
      "type": "string",
      "minLength": 1,
      "maxLength": 160
    },
    "state": {
      "type": "string",
      "enum": [
        "draft",
        "approved",
        "queued",
        "sending",
        "sent",
        "uncertain",
        "cancelled",
        "failed"
      ]
    },
    "limit": {
      "default": 25,
      "type": "integer",
      "minimum": 1,
      "maximum": 50
    },
    "cursor": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 2000
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "required": [
    "campaign_id",
    "person_id"
  ],
  "additionalProperties": false
}

Respuesta JSON

{
  "type": "object",
  "properties": {
    "items": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "action_id": {
            "type": "string"
          },
          "campaign_id": {
            "type": "string"
          },
          "person_id": {
            "type": "string"
          },
          "kind": {
            "type": "string",
            "enum": [
              "gif",
              "message",
              "invitation",
              "invitation_without_notification",
              "comment",
              "reaction",
              "email",
              "email_reply"
            ]
          },
          "channel": {
            "type": "string",
            "enum": [
              "linkedin",
              "email"
            ]
          },
          "email_from": {
            "type": [
              "string",
              "null"
            ]
          },
          "content": {
            "oneOf": [
              {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string",
                    "const": "gif"
                  },
                  "gif_id": {
                    "type": "string"
                  },
                  "text": {
                    "type": "string"
                  }
                },
                "required": [
                  "kind",
                  "gif_id"
                ],
                "additionalProperties": false
              },
              {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string",
                    "const": "message"
                  },
                  "text": {
                    "type": "string"
                  }
                },
                "required": [
                  "kind",
                  "text"
                ],
                "additionalProperties": false
              },
              {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string",
                    "const": "invitation"
                  },
                  "note": {
                    "type": "string"
                  }
                },
                "required": [
                  "kind"
                ],
                "additionalProperties": false
              },
              {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string",
                    "const": "invitation_without_notification"
                  }
                },
                "required": [
                  "kind"
                ],
                "additionalProperties": false
              },
              {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string",
                    "const": "comment"
                  },
                  "post_url": {
                    "type": "string"
                  },
                  "comment_id": {
                    "type": "string"
                  },
                  "text": {
                    "type": "string"
                  }
                },
                "required": [
                  "kind"
                ],
                "additionalProperties": false
              },
              {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string",
                    "const": "reaction"
                  },
                  "post_url": {
                    "type": "string"
                  },
                  "reaction": {
                    "type": "string",
                    "enum": [
                      "like",
                      "celebrate",
                      "support",
                      "love",
                      "insightful",
                      "funny"
                    ]
                  }
                },
                "required": [
                  "kind"
                ],
                "additionalProperties": false
              },
              {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string",
                    "const": "email"
                  },
                  "subject": {
                    "type": "string"
                  },
                  "text": {
                    "type": "string"
                  }
                },
                "required": [
                  "kind",
                  "subject",
                  "text"
                ],
                "additionalProperties": false
              },
              {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string",
                    "const": "email_reply"
                  },
                  "in_reply_to_message_id": {
                    "type": "string"
                  },
                  "text": {
                    "type": "string"
                  }
                },
                "required": [
                  "kind"
                ],
                "additionalProperties": false
              }
            ]
          },
          "subject": {
            "type": [
              "string",
              "null"
            ]
          },
          "text": {
            "type": [
              "string",
              "null"
            ]
          },
          "state": {
            "type": "string",
            "enum": [
              "draft",
              "approved",
              "queued",
              "sending",
              "sent",
              "uncertain",
              "cancelled",
              "failed"
            ]
          },
          "issue": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "message": {
                    "type": "string"
                  },
                  "can_retry": {
                    "type": "boolean"
                  }
                },
                "required": [
                  "message",
                  "can_retry"
                ],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "scheduled_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
              },
              {
                "type": "null"
              }
            ]
          },
          "approved_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
              },
              {
                "type": "null"
              }
            ]
          },
          "sent_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
              },
              {
                "type": "null"
              }
            ]
          },
          "cancelled_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
              },
              {
                "type": "null"
              }
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
          }
        },
        "required": [
          "action_id",
          "campaign_id",
          "person_id",
          "kind",
          "channel",
          "email_from",
          "content",
          "subject",
          "text",
          "state",
          "issue",
          "scheduled_at",
          "approved_at",
          "sent_at",
          "cancelled_at",
          "created_at",
          "updated_at"
        ],
        "additionalProperties": false
      }
    },
    "returned_count": {
      "type": "integer",
      "minimum": 0,
      "maximum": 9007199254740991
    },
    "has_more": {
      "type": "boolean"
    },
    "next_cursor": {
      "type": [
        "string",
        "null"
      ]
    },
    "campaign_id": {
      "type": "string"
    },
    "person_id": {
      "type": "string"
    }
  },
  "required": [
    "items",
    "returned_count",
    "has_more",
    "next_cursor",
    "campaign_id",
    "person_id"
  ],
  "additionalProperties": false
}

Preparar una acción

POST/api/v1/campaigns/{campaignId}/people/{personId}/actions

create lead action

REST: clave API o sesiónTool MCP create_lead_actionPermiso writeReintentos con la misma clave
ParámetroDescripción
campaignIdpath · string · obligatorioAl menos 1 caracteres. Hasta 160 caracteres.
personIdpath · string · obligatorioAl menos 1 caracteres. Hasta 160 caracteres.
Idempotency-Keyheader · string · obligatorioAl menos 8 caracteres. Hasta 160 caracteres.
Originheader · "https://ai.zaly.app" · opcionalObligatoria en escrituras con cookie. No se requiere con Bearer.
contentbody · object · obligatorioContenido de la acción. Respeta la estructura correspondiente a su tipo y canal.
scheduled_atbody · string · date-time | null · opcionalFecha y hora de ejecución solicitadas. Incluye la zona horaria en el valor ISO 8601.

Petición

curl -X POST "https://ai.zaly.app/api/v1/campaigns/$CAMPAIGN_ID/people/$PERSON_ID/actions" \
  -H "Authorization: Bearer $ZALY_API_KEY" \
  -H "Idempotency-Key: $ZALY_IDEMPOTENCY_KEY" \
  -H "Content-Type: application/json" \
  --data @payload.json

Prepara payload.json con los campos del cuerpo. Sustituye los identificadores y conserva la clave al reintentar la misma intención.

Respuesta
CampoTipo y descripción
actionobject
Schemas completos de REST y MCP

Cuerpo REST

{
  "type": "object",
  "properties": {
    "content": {
      "oneOf": [
        {
          "type": "object",
          "properties": {
            "kind": {
              "type": "string",
              "const": "gif"
            },
            "gif_id": {
              "type": "string",
              "minLength": 1,
              "maxLength": 160
            },
            "text": {
              "type": "string",
              "maxLength": 6000
            }
          },
          "required": [
            "kind",
            "gif_id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "kind": {
              "type": "string",
              "const": "message"
            },
            "text": {
              "type": "string",
              "minLength": 1,
              "maxLength": 6000
            }
          },
          "required": [
            "kind",
            "text"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "kind": {
              "type": "string",
              "const": "invitation"
            },
            "note": {
              "type": "string",
              "minLength": 1,
              "maxLength": 300
            }
          },
          "required": [
            "kind"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "kind": {
              "type": "string",
              "const": "invitation_without_notification"
            }
          },
          "required": [
            "kind"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "kind": {
              "type": "string",
              "const": "comment"
            },
            "post_url": {
              "type": "string",
              "format": "uri"
            },
            "comment_id": {
              "type": "string",
              "minLength": 1,
              "maxLength": 500
            },
            "text": {
              "type": "string",
              "minLength": 1,
              "maxLength": 3000
            }
          },
          "required": [
            "kind",
            "post_url",
            "text"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "kind": {
              "type": "string",
              "const": "reaction"
            },
            "post_url": {
              "type": "string",
              "format": "uri"
            },
            "reaction": {
              "type": "string",
              "enum": [
                "like",
                "celebrate",
                "support",
                "love",
                "insightful",
                "funny"
              ]
            }
          },
          "required": [
            "kind",
            "post_url",
            "reaction"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "kind": {
              "type": "string",
              "const": "email"
            },
            "subject": {
              "type": "string",
              "minLength": 1,
              "maxLength": 998
            },
            "text": {
              "type": "string",
              "minLength": 1,
              "maxLength": 6000
            }
          },
          "required": [
            "kind",
            "subject",
            "text"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "kind": {
              "type": "string",
              "const": "email_reply"
            },
            "in_reply_to_message_id": {
              "type": "string",
              "minLength": 1,
              "maxLength": 160
            },
            "text": {
              "type": "string",
              "minLength": 1,
              "maxLength": 6000
            }
          },
          "required": [
            "kind",
            "in_reply_to_message_id",
            "text"
          ],
          "additionalProperties": false
        }
      ]
    },
    "scheduled_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time",
          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "required": [
    "content"
  ],
  "additionalProperties": false
}

Entrada MCP

{
  "type": "object",
  "properties": {
    "campaign_id": {
      "type": "string",
      "minLength": 1,
      "maxLength": 160
    },
    "person_id": {
      "type": "string",
      "minLength": 1,
      "maxLength": 160
    },
    "content": {
      "oneOf": [
        {
          "type": "object",
          "properties": {
            "kind": {
              "type": "string",
              "const": "gif"
            },
            "gif_id": {
              "type": "string",
              "minLength": 1,
              "maxLength": 160
            },
            "text": {
              "type": "string",
              "maxLength": 6000
            }
          },
          "required": [
            "kind",
            "gif_id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "kind": {
              "type": "string",
              "const": "message"
            },
            "text": {
              "type": "string",
              "minLength": 1,
              "maxLength": 6000
            }
          },
          "required": [
            "kind",
            "text"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "kind": {
              "type": "string",
              "const": "invitation"
            },
            "note": {
              "type": "string",
              "minLength": 1,
              "maxLength": 300
            }
          },
          "required": [
            "kind"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "kind": {
              "type": "string",
              "const": "invitation_without_notification"
            }
          },
          "required": [
            "kind"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "kind": {
              "type": "string",
              "const": "comment"
            },
            "post_url": {
              "type": "string",
              "format": "uri"
            },
            "comment_id": {
              "type": "string",
              "minLength": 1,
              "maxLength": 500
            },
            "text": {
              "type": "string",
              "minLength": 1,
              "maxLength": 3000
            }
          },
          "required": [
            "kind",
            "post_url",
            "text"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "kind": {
              "type": "string",
              "const": "reaction"
            },
            "post_url": {
              "type": "string",
              "format": "uri"
            },
            "reaction": {
              "type": "string",
              "enum": [
                "like",
                "celebrate",
                "support",
                "love",
                "insightful",
                "funny"
              ]
            }
          },
          "required": [
            "kind",
            "post_url",
            "reaction"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "kind": {
              "type": "string",
              "const": "email"
            },
            "subject": {
              "type": "string",
              "minLength": 1,
              "maxLength": 998
            },
            "text": {
              "type": "string",
              "minLength": 1,
              "maxLength": 6000
            }
          },
          "required": [
            "kind",
            "subject",
            "text"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "kind": {
              "type": "string",
              "const": "email_reply"
            },
            "in_reply_to_message_id": {
              "type": "string",
              "minLength": 1,
              "maxLength": 160
            },
            "text": {
              "type": "string",
              "minLength": 1,
              "maxLength": 6000
            }
          },
          "required": [
            "kind",
            "in_reply_to_message_id",
            "text"
          ],
          "additionalProperties": false
        }
      ]
    },
    "scheduled_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time",
          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
        },
        {
          "type": "null"
        }
      ]
    },
    "idempotency_key": {
      "type": "string",
      "minLength": 8,
      "maxLength": 160
    }
  },
  "required": [
    "campaign_id",
    "person_id",
    "content",
    "idempotency_key"
  ],
  "additionalProperties": false
}

Respuesta JSON

{
  "type": "object",
  "properties": {
    "action": {
      "type": "object",
      "properties": {
        "action_id": {
          "type": "string"
        },
        "campaign_id": {
          "type": "string"
        },
        "person_id": {
          "type": "string"
        },
        "kind": {
          "type": "string",
          "enum": [
            "gif",
            "message",
            "invitation",
            "invitation_without_notification",
            "comment",
            "reaction",
            "email",
            "email_reply"
          ]
        },
        "channel": {
          "type": "string",
          "enum": [
            "linkedin",
            "email"
          ]
        },
        "email_from": {
          "type": [
            "string",
            "null"
          ]
        },
        "content": {
          "oneOf": [
            {
              "type": "object",
              "properties": {
                "kind": {
                  "type": "string",
                  "const": "gif"
                },
                "gif_id": {
                  "type": "string"
                },
                "text": {
                  "type": "string"
                }
              },
              "required": [
                "kind",
                "gif_id"
              ],
              "additionalProperties": false
            },
            {
              "type": "object",
              "properties": {
                "kind": {
                  "type": "string",
                  "const": "message"
                },
                "text": {
                  "type": "string"
                }
              },
              "required": [
                "kind",
                "text"
              ],
              "additionalProperties": false
            },
            {
              "type": "object",
              "properties": {
                "kind": {
                  "type": "string",
                  "const": "invitation"
                },
                "note": {
                  "type": "string"
                }
              },
              "required": [
                "kind"
              ],
              "additionalProperties": false
            },
            {
              "type": "object",
              "properties": {
                "kind": {
                  "type": "string",
                  "const": "invitation_without_notification"
                }
              },
              "required": [
                "kind"
              ],
              "additionalProperties": false
            },
            {
              "type": "object",
              "properties": {
                "kind": {
                  "type": "string",
                  "const": "comment"
                },
                "post_url": {
                  "type": "string"
                },
                "comment_id": {
                  "type": "string"
                },
                "text": {
                  "type": "string"
                }
              },
              "required": [
                "kind"
              ],
              "additionalProperties": false
            },
            {
              "type": "object",
              "properties": {
                "kind": {
                  "type": "string",
                  "const": "reaction"
                },
                "post_url": {
                  "type": "string"
                },
                "reaction": {
                  "type": "string",
                  "enum": [
                    "like",
                    "celebrate",
                    "support",
                    "love",
                    "insightful",
                    "funny"
                  ]
                }
              },
              "required": [
                "kind"
              ],
              "additionalProperties": false
            },
            {
              "type": "object",
              "properties": {
                "kind": {
                  "type": "string",
                  "const": "email"
                },
                "subject": {
                  "type": "string"
                },
                "text": {
                  "type": "string"
                }
              },
              "required": [
                "kind",
                "subject",
                "text"
              ],
              "additionalProperties": false
            },
            {
              "type": "object",
              "properties": {
                "kind": {
                  "type": "string",
                  "const": "email_reply"
                },
                "in_reply_to_message_id": {
                  "type": "string"
                },
                "text": {
                  "type": "string"
                }
              },
              "required": [
                "kind"
              ],
              "additionalProperties": false
            }
          ]
        },
        "subject": {
          "type": [
            "string",
            "null"
          ]
        },
        "text": {
          "type": [
            "string",
            "null"
          ]
        },
        "state": {
          "type": "string",
          "enum": [
            "draft",
            "approved",
            "queued",
            "sending",
            "sent",
            "uncertain",
            "cancelled",
            "failed"
          ]
        },
        "issue": {
          "anyOf": [
            {
              "type": "object",
              "properties": {
                "message": {
                  "type": "string"
                },
                "can_retry": {
                  "type": "boolean"
                }
              },
              "required": [
                "message",
                "can_retry"
              ],
              "additionalProperties": false
            },
            {
              "type": "null"
            }
          ]
        },
        "scheduled_at": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
            },
            {
              "type": "null"
            }
          ]
        },
        "approved_at": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
            },
            {
              "type": "null"
            }
          ]
        },
        "sent_at": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
            },
            {
              "type": "null"
            }
          ]
        },
        "cancelled_at": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
            },
            {
              "type": "null"
            }
          ]
        },
        "created_at": {
          "type": "string",
          "format": "date-time",
          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
        },
        "updated_at": {
          "type": "string",
          "format": "date-time",
          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
        }
      },
      "required": [
        "action_id",
        "campaign_id",
        "person_id",
        "kind",
        "channel",
        "email_from",
        "content",
        "subject",
        "text",
        "state",
        "issue",
        "scheduled_at",
        "approved_at",
        "sent_at",
        "cancelled_at",
        "created_at",
        "updated_at"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "action"
  ],
  "additionalProperties": false
}

Actualizar una acción

PATCH/api/v1/campaigns/{campaignId}/people/{personId}/actions/{actionId}

update lead action

REST: clave API o sesiónTool MCP update_lead_actionPermiso writeReintentos con la misma claveRequiere revisión
ParámetroDescripción
campaignIdpath · string · obligatorioAl menos 1 caracteres. Hasta 160 caracteres.
personIdpath · string · obligatorioAl menos 1 caracteres. Hasta 160 caracteres.
actionIdpath · string · obligatorioAl menos 1 caracteres. Hasta 160 caracteres.
Idempotency-Keyheader · string · obligatorioAl menos 8 caracteres. Hasta 160 caracteres.
Originheader · "https://ai.zaly.app" · opcionalObligatoria en escrituras con cookie. No se requiere con Bearer.
contentbody · object · opcionalContenido de la acción. Respeta la estructura correspondiente a su tipo y canal.
scheduled_atbody · string · date-time | null · opcionalFecha y hora de ejecución solicitadas. Incluye la zona horaria en el valor ISO 8601.

Petición

curl -X PATCH "https://ai.zaly.app/api/v1/campaigns/$CAMPAIGN_ID/people/$PERSON_ID/actions/$ACTION_ID" \
  -H "Authorization: Bearer $ZALY_API_KEY" \
  -H "Idempotency-Key: $ZALY_IDEMPOTENCY_KEY" \
  -H "Content-Type: application/json" \
  --data @payload.json

Prepara payload.json con los campos del cuerpo. Sustituye los identificadores y conserva la clave al reintentar la misma intención.

Respuesta
CampoTipo y descripción
actionobject
Schemas completos de REST y MCP

Cuerpo REST

{
  "type": "object",
  "properties": {
    "content": {
      "oneOf": [
        {
          "type": "object",
          "properties": {
            "kind": {
              "type": "string",
              "const": "gif"
            },
            "gif_id": {
              "type": "string",
              "minLength": 1,
              "maxLength": 160
            },
            "text": {
              "type": "string",
              "maxLength": 6000
            }
          },
          "required": [
            "kind",
            "gif_id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "kind": {
              "type": "string",
              "const": "message"
            },
            "text": {
              "type": "string",
              "minLength": 1,
              "maxLength": 6000
            }
          },
          "required": [
            "kind",
            "text"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "kind": {
              "type": "string",
              "const": "invitation"
            },
            "note": {
              "type": "string",
              "minLength": 1,
              "maxLength": 300
            }
          },
          "required": [
            "kind"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "kind": {
              "type": "string",
              "const": "invitation_without_notification"
            }
          },
          "required": [
            "kind"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "kind": {
              "type": "string",
              "const": "comment"
            },
            "post_url": {
              "type": "string",
              "format": "uri"
            },
            "comment_id": {
              "type": "string",
              "minLength": 1,
              "maxLength": 500
            },
            "text": {
              "type": "string",
              "minLength": 1,
              "maxLength": 3000
            }
          },
          "required": [
            "kind",
            "post_url",
            "text"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "kind": {
              "type": "string",
              "const": "reaction"
            },
            "post_url": {
              "type": "string",
              "format": "uri"
            },
            "reaction": {
              "type": "string",
              "enum": [
                "like",
                "celebrate",
                "support",
                "love",
                "insightful",
                "funny"
              ]
            }
          },
          "required": [
            "kind",
            "post_url",
            "reaction"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "kind": {
              "type": "string",
              "const": "email"
            },
            "subject": {
              "type": "string",
              "minLength": 1,
              "maxLength": 998
            },
            "text": {
              "type": "string",
              "minLength": 1,
              "maxLength": 6000
            }
          },
          "required": [
            "kind",
            "subject",
            "text"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "kind": {
              "type": "string",
              "const": "email_reply"
            },
            "in_reply_to_message_id": {
              "type": "string",
              "minLength": 1,
              "maxLength": 160
            },
            "text": {
              "type": "string",
              "minLength": 1,
              "maxLength": 6000
            }
          },
          "required": [
            "kind",
            "in_reply_to_message_id",
            "text"
          ],
          "additionalProperties": false
        }
      ]
    },
    "scheduled_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time",
          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "additionalProperties": false
}

Entrada MCP

{
  "type": "object",
  "properties": {
    "campaign_id": {
      "type": "string",
      "minLength": 1,
      "maxLength": 160
    },
    "person_id": {
      "type": "string",
      "minLength": 1,
      "maxLength": 160
    },
    "action_id": {
      "type": "string",
      "minLength": 1,
      "maxLength": 160
    },
    "content": {
      "oneOf": [
        {
          "type": "object",
          "properties": {
            "kind": {
              "type": "string",
              "const": "gif"
            },
            "gif_id": {
              "type": "string",
              "minLength": 1,
              "maxLength": 160
            },
            "text": {
              "type": "string",
              "maxLength": 6000
            }
          },
          "required": [
            "kind",
            "gif_id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "kind": {
              "type": "string",
              "const": "message"
            },
            "text": {
              "type": "string",
              "minLength": 1,
              "maxLength": 6000
            }
          },
          "required": [
            "kind",
            "text"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "kind": {
              "type": "string",
              "const": "invitation"
            },
            "note": {
              "type": "string",
              "minLength": 1,
              "maxLength": 300
            }
          },
          "required": [
            "kind"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "kind": {
              "type": "string",
              "const": "invitation_without_notification"
            }
          },
          "required": [
            "kind"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "kind": {
              "type": "string",
              "const": "comment"
            },
            "post_url": {
              "type": "string",
              "format": "uri"
            },
            "comment_id": {
              "type": "string",
              "minLength": 1,
              "maxLength": 500
            },
            "text": {
              "type": "string",
              "minLength": 1,
              "maxLength": 3000
            }
          },
          "required": [
            "kind",
            "post_url",
            "text"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "kind": {
              "type": "string",
              "const": "reaction"
            },
            "post_url": {
              "type": "string",
              "format": "uri"
            },
            "reaction": {
              "type": "string",
              "enum": [
                "like",
                "celebrate",
                "support",
                "love",
                "insightful",
                "funny"
              ]
            }
          },
          "required": [
            "kind",
            "post_url",
            "reaction"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "kind": {
              "type": "string",
              "const": "email"
            },
            "subject": {
              "type": "string",
              "minLength": 1,
              "maxLength": 998
            },
            "text": {
              "type": "string",
              "minLength": 1,
              "maxLength": 6000
            }
          },
          "required": [
            "kind",
            "subject",
            "text"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "kind": {
              "type": "string",
              "const": "email_reply"
            },
            "in_reply_to_message_id": {
              "type": "string",
              "minLength": 1,
              "maxLength": 160
            },
            "text": {
              "type": "string",
              "minLength": 1,
              "maxLength": 6000
            }
          },
          "required": [
            "kind",
            "in_reply_to_message_id",
            "text"
          ],
          "additionalProperties": false
        }
      ]
    },
    "scheduled_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time",
          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
        },
        {
          "type": "null"
        }
      ]
    },
    "idempotency_key": {
      "type": "string",
      "minLength": 8,
      "maxLength": 160
    }
  },
  "required": [
    "campaign_id",
    "person_id",
    "action_id",
    "idempotency_key"
  ],
  "additionalProperties": false
}

Respuesta JSON

{
  "type": "object",
  "properties": {
    "action": {
      "type": "object",
      "properties": {
        "action_id": {
          "type": "string"
        },
        "campaign_id": {
          "type": "string"
        },
        "person_id": {
          "type": "string"
        },
        "kind": {
          "type": "string",
          "enum": [
            "gif",
            "message",
            "invitation",
            "invitation_without_notification",
            "comment",
            "reaction",
            "email",
            "email_reply"
          ]
        },
        "channel": {
          "type": "string",
          "enum": [
            "linkedin",
            "email"
          ]
        },
        "email_from": {
          "type": [
            "string",
            "null"
          ]
        },
        "content": {
          "oneOf": [
            {
              "type": "object",
              "properties": {
                "kind": {
                  "type": "string",
                  "const": "gif"
                },
                "gif_id": {
                  "type": "string"
                },
                "text": {
                  "type": "string"
                }
              },
              "required": [
                "kind",
                "gif_id"
              ],
              "additionalProperties": false
            },
            {
              "type": "object",
              "properties": {
                "kind": {
                  "type": "string",
                  "const": "message"
                },
                "text": {
                  "type": "string"
                }
              },
              "required": [
                "kind",
                "text"
              ],
              "additionalProperties": false
            },
            {
              "type": "object",
              "properties": {
                "kind": {
                  "type": "string",
                  "const": "invitation"
                },
                "note": {
                  "type": "string"
                }
              },
              "required": [
                "kind"
              ],
              "additionalProperties": false
            },
            {
              "type": "object",
              "properties": {
                "kind": {
                  "type": "string",
                  "const": "invitation_without_notification"
                }
              },
              "required": [
                "kind"
              ],
              "additionalProperties": false
            },
            {
              "type": "object",
              "properties": {
                "kind": {
                  "type": "string",
                  "const": "comment"
                },
                "post_url": {
                  "type": "string"
                },
                "comment_id": {
                  "type": "string"
                },
                "text": {
                  "type": "string"
                }
              },
              "required": [
                "kind"
              ],
              "additionalProperties": false
            },
            {
              "type": "object",
              "properties": {
                "kind": {
                  "type": "string",
                  "const": "reaction"
                },
                "post_url": {
                  "type": "string"
                },
                "reaction": {
                  "type": "string",
                  "enum": [
                    "like",
                    "celebrate",
                    "support",
                    "love",
                    "insightful",
                    "funny"
                  ]
                }
              },
              "required": [
                "kind"
              ],
              "additionalProperties": false
            },
            {
              "type": "object",
              "properties": {
                "kind": {
                  "type": "string",
                  "const": "email"
                },
                "subject": {
                  "type": "string"
                },
                "text": {
                  "type": "string"
                }
              },
              "required": [
                "kind",
                "subject",
                "text"
              ],
              "additionalProperties": false
            },
            {
              "type": "object",
              "properties": {
                "kind": {
                  "type": "string",
                  "const": "email_reply"
                },
                "in_reply_to_message_id": {
                  "type": "string"
                },
                "text": {
                  "type": "string"
                }
              },
              "required": [
                "kind"
              ],
              "additionalProperties": false
            }
          ]
        },
        "subject": {
          "type": [
            "string",
            "null"
          ]
        },
        "text": {
          "type": [
            "string",
            "null"
          ]
        },
        "state": {
          "type": "string",
          "enum": [
            "draft",
            "approved",
            "queued",
            "sending",
            "sent",
            "uncertain",
            "cancelled",
            "failed"
          ]
        },
        "issue": {
          "anyOf": [
            {
              "type": "object",
              "properties": {
                "message": {
                  "type": "string"
                },
                "can_retry": {
                  "type": "boolean"
                }
              },
              "required": [
                "message",
                "can_retry"
              ],
              "additionalProperties": false
            },
            {
              "type": "null"
            }
          ]
        },
        "scheduled_at": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
            },
            {
              "type": "null"
            }
          ]
        },
        "approved_at": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
            },
            {
              "type": "null"
            }
          ]
        },
        "sent_at": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
            },
            {
              "type": "null"
            }
          ]
        },
        "cancelled_at": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
            },
            {
              "type": "null"
            }
          ]
        },
        "created_at": {
          "type": "string",
          "format": "date-time",
          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
        },
        "updated_at": {
          "type": "string",
          "format": "date-time",
          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
        }
      },
      "required": [
        "action_id",
        "campaign_id",
        "person_id",
        "kind",
        "channel",
        "email_from",
        "content",
        "subject",
        "text",
        "state",
        "issue",
        "scheduled_at",
        "approved_at",
        "sent_at",
        "cancelled_at",
        "created_at",
        "updated_at"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "action"
  ],
  "additionalProperties": false
}

Cancelar una acción

DELETE/api/v1/campaigns/{campaignId}/people/{personId}/actions/{actionId}

delete lead action

REST: clave API o sesiónTool MCP delete_lead_actionPermiso writeReintentos con la misma claveRequiere revisión
ParámetroDescripción
campaignIdpath · string · obligatorioAl menos 1 caracteres. Hasta 160 caracteres.
personIdpath · string · obligatorioAl menos 1 caracteres. Hasta 160 caracteres.
actionIdpath · string · obligatorioAl menos 1 caracteres. Hasta 160 caracteres.
Idempotency-Keyheader · string · obligatorioAl menos 8 caracteres. Hasta 160 caracteres.
Originheader · "https://ai.zaly.app" · opcionalObligatoria en escrituras con cookie. No se requiere con Bearer.

Petición

curl -X DELETE "https://ai.zaly.app/api/v1/campaigns/$CAMPAIGN_ID/people/$PERSON_ID/actions/$ACTION_ID" \
  -H "Authorization: Bearer $ZALY_API_KEY" \
  -H "Idempotency-Key: $ZALY_IDEMPOTENCY_KEY" \
  -H "Content-Type: application/json" \
  --data @payload.json

Prepara payload.json con los campos del cuerpo. Sustituye los identificadores y conserva la clave al reintentar la misma intención.

Respuesta
CampoTipo y descripción
actionobject
Schemas completos de REST y MCP

Cuerpo REST

{
  "type": "object",
  "properties": {},
  "additionalProperties": false
}

Entrada MCP

{
  "type": "object",
  "properties": {
    "campaign_id": {
      "type": "string",
      "minLength": 1,
      "maxLength": 160
    },
    "person_id": {
      "type": "string",
      "minLength": 1,
      "maxLength": 160
    },
    "action_id": {
      "type": "string",
      "minLength": 1,
      "maxLength": 160
    },
    "idempotency_key": {
      "type": "string",
      "minLength": 8,
      "maxLength": 160
    }
  },
  "required": [
    "campaign_id",
    "person_id",
    "action_id",
    "idempotency_key"
  ],
  "additionalProperties": false
}

Respuesta JSON

{
  "type": "object",
  "properties": {
    "action": {
      "type": "object",
      "properties": {
        "action_id": {
          "type": "string"
        },
        "campaign_id": {
          "type": "string"
        },
        "person_id": {
          "type": "string"
        },
        "kind": {
          "type": "string",
          "enum": [
            "gif",
            "message",
            "invitation",
            "invitation_without_notification",
            "comment",
            "reaction",
            "email",
            "email_reply"
          ]
        },
        "channel": {
          "type": "string",
          "enum": [
            "linkedin",
            "email"
          ]
        },
        "email_from": {
          "type": [
            "string",
            "null"
          ]
        },
        "content": {
          "oneOf": [
            {
              "type": "object",
              "properties": {
                "kind": {
                  "type": "string",
                  "const": "gif"
                },
                "gif_id": {
                  "type": "string"
                },
                "text": {
                  "type": "string"
                }
              },
              "required": [
                "kind",
                "gif_id"
              ],
              "additionalProperties": false
            },
            {
              "type": "object",
              "properties": {
                "kind": {
                  "type": "string",
                  "const": "message"
                },
                "text": {
                  "type": "string"
                }
              },
              "required": [
                "kind",
                "text"
              ],
              "additionalProperties": false
            },
            {
              "type": "object",
              "properties": {
                "kind": {
                  "type": "string",
                  "const": "invitation"
                },
                "note": {
                  "type": "string"
                }
              },
              "required": [
                "kind"
              ],
              "additionalProperties": false
            },
            {
              "type": "object",
              "properties": {
                "kind": {
                  "type": "string",
                  "const": "invitation_without_notification"
                }
              },
              "required": [
                "kind"
              ],
              "additionalProperties": false
            },
            {
              "type": "object",
              "properties": {
                "kind": {
                  "type": "string",
                  "const": "comment"
                },
                "post_url": {
                  "type": "string"
                },
                "comment_id": {
                  "type": "string"
                },
                "text": {
                  "type": "string"
                }
              },
              "required": [
                "kind"
              ],
              "additionalProperties": false
            },
            {
              "type": "object",
              "properties": {
                "kind": {
                  "type": "string",
                  "const": "reaction"
                },
                "post_url": {
                  "type": "string"
                },
                "reaction": {
                  "type": "string",
                  "enum": [
                    "like",
                    "celebrate",
                    "support",
                    "love",
                    "insightful",
                    "funny"
                  ]
                }
              },
              "required": [
                "kind"
              ],
              "additionalProperties": false
            },
            {
              "type": "object",
              "properties": {
                "kind": {
                  "type": "string",
                  "const": "email"
                },
                "subject": {
                  "type": "string"
                },
                "text": {
                  "type": "string"
                }
              },
              "required": [
                "kind",
                "subject",
                "text"
              ],
              "additionalProperties": false
            },
            {
              "type": "object",
              "properties": {
                "kind": {
                  "type": "string",
                  "const": "email_reply"
                },
                "in_reply_to_message_id": {
                  "type": "string"
                },
                "text": {
                  "type": "string"
                }
              },
              "required": [
                "kind"
              ],
              "additionalProperties": false
            }
          ]
        },
        "subject": {
          "type": [
            "string",
            "null"
          ]
        },
        "text": {
          "type": [
            "string",
            "null"
          ]
        },
        "state": {
          "type": "string",
          "enum": [
            "draft",
            "approved",
            "queued",
            "sending",
            "sent",
            "uncertain",
            "cancelled",
            "failed"
          ]
        },
        "issue": {
          "anyOf": [
            {
              "type": "object",
              "properties": {
                "message": {
                  "type": "string"
                },
                "can_retry": {
                  "type": "boolean"
                }
              },
              "required": [
                "message",
                "can_retry"
              ],
              "additionalProperties": false
            },
            {
              "type": "null"
            }
          ]
        },
        "scheduled_at": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
            },
            {
              "type": "null"
            }
          ]
        },
        "approved_at": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
            },
            {
              "type": "null"
            }
          ]
        },
        "sent_at": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
            },
            {
              "type": "null"
            }
          ]
        },
        "cancelled_at": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
            },
            {
              "type": "null"
            }
          ]
        },
        "created_at": {
          "type": "string",
          "format": "date-time",
          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
        },
        "updated_at": {
          "type": "string",
          "format": "date-time",
          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
        }
      },
      "required": [
        "action_id",
        "campaign_id",
        "person_id",
        "kind",
        "channel",
        "email_from",
        "content",
        "subject",
        "text",
        "state",
        "issue",
        "scheduled_at",
        "approved_at",
        "sent_at",
        "cancelled_at",
        "created_at",
        "updated_at"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "action"
  ],
  "additionalProperties": false
}

Aprobar una acción

POST/api/v1/campaigns/{campaignId}/people/{personId}/actions/{actionId}/approve

approve lead action

REST: clave API o sesiónTool MCP approve_lead_actionPermiso sendReintentos con la misma clave
ParámetroDescripción
campaignIdpath · string · obligatorioAl menos 1 caracteres. Hasta 160 caracteres.
personIdpath · string · obligatorioAl menos 1 caracteres. Hasta 160 caracteres.
actionIdpath · string · obligatorioAl menos 1 caracteres. Hasta 160 caracteres.
Idempotency-Keyheader · string · obligatorioAl menos 8 caracteres. Hasta 160 caracteres.
Originheader · "https://ai.zaly.app" · opcionalObligatoria en escrituras con cookie. No se requiere con Bearer.

Petición

curl -X POST "https://ai.zaly.app/api/v1/campaigns/$CAMPAIGN_ID/people/$PERSON_ID/actions/$ACTION_ID/approve" \
  -H "Authorization: Bearer $ZALY_API_KEY" \
  -H "Idempotency-Key: $ZALY_IDEMPOTENCY_KEY" \
  -H "Content-Type: application/json" \
  --data @payload.json

Prepara payload.json con los campos del cuerpo. Sustituye los identificadores y conserva la clave al reintentar la misma intención.

Respuesta
CampoTipo y descripción
actionobject
Schemas completos de REST y MCP

Cuerpo REST

{
  "type": "object",
  "properties": {},
  "additionalProperties": false
}

Entrada MCP

{
  "type": "object",
  "properties": {
    "campaign_id": {
      "type": "string",
      "minLength": 1,
      "maxLength": 160
    },
    "person_id": {
      "type": "string",
      "minLength": 1,
      "maxLength": 160
    },
    "action_id": {
      "type": "string",
      "minLength": 1,
      "maxLength": 160
    },
    "idempotency_key": {
      "type": "string",
      "minLength": 8,
      "maxLength": 160
    }
  },
  "required": [
    "campaign_id",
    "person_id",
    "action_id",
    "idempotency_key"
  ],
  "additionalProperties": false
}

Respuesta JSON

{
  "type": "object",
  "properties": {
    "action": {
      "type": "object",
      "properties": {
        "action_id": {
          "type": "string"
        },
        "campaign_id": {
          "type": "string"
        },
        "person_id": {
          "type": "string"
        },
        "kind": {
          "type": "string",
          "enum": [
            "gif",
            "message",
            "invitation",
            "invitation_without_notification",
            "comment",
            "reaction",
            "email",
            "email_reply"
          ]
        },
        "channel": {
          "type": "string",
          "enum": [
            "linkedin",
            "email"
          ]
        },
        "email_from": {
          "type": [
            "string",
            "null"
          ]
        },
        "content": {
          "oneOf": [
            {
              "type": "object",
              "properties": {
                "kind": {
                  "type": "string",
                  "const": "gif"
                },
                "gif_id": {
                  "type": "string"
                },
                "text": {
                  "type": "string"
                }
              },
              "required": [
                "kind",
                "gif_id"
              ],
              "additionalProperties": false
            },
            {
              "type": "object",
              "properties": {
                "kind": {
                  "type": "string",
                  "const": "message"
                },
                "text": {
                  "type": "string"
                }
              },
              "required": [
                "kind",
                "text"
              ],
              "additionalProperties": false
            },
            {
              "type": "object",
              "properties": {
                "kind": {
                  "type": "string",
                  "const": "invitation"
                },
                "note": {
                  "type": "string"
                }
              },
              "required": [
                "kind"
              ],
              "additionalProperties": false
            },
            {
              "type": "object",
              "properties": {
                "kind": {
                  "type": "string",
                  "const": "invitation_without_notification"
                }
              },
              "required": [
                "kind"
              ],
              "additionalProperties": false
            },
            {
              "type": "object",
              "properties": {
                "kind": {
                  "type": "string",
                  "const": "comment"
                },
                "post_url": {
                  "type": "string"
                },
                "comment_id": {
                  "type": "string"
                },
                "text": {
                  "type": "string"
                }
              },
              "required": [
                "kind"
              ],
              "additionalProperties": false
            },
            {
              "type": "object",
              "properties": {
                "kind": {
                  "type": "string",
                  "const": "reaction"
                },
                "post_url": {
                  "type": "string"
                },
                "reaction": {
                  "type": "string",
                  "enum": [
                    "like",
                    "celebrate",
                    "support",
                    "love",
                    "insightful",
                    "funny"
                  ]
                }
              },
              "required": [
                "kind"
              ],
              "additionalProperties": false
            },
            {
              "type": "object",
              "properties": {
                "kind": {
                  "type": "string",
                  "const": "email"
                },
                "subject": {
                  "type": "string"
                },
                "text": {
                  "type": "string"
                }
              },
              "required": [
                "kind",
                "subject",
                "text"
              ],
              "additionalProperties": false
            },
            {
              "type": "object",
              "properties": {
                "kind": {
                  "type": "string",
                  "const": "email_reply"
                },
                "in_reply_to_message_id": {
                  "type": "string"
                },
                "text": {
                  "type": "string"
                }
              },
              "required": [
                "kind"
              ],
              "additionalProperties": false
            }
          ]
        },
        "subject": {
          "type": [
            "string",
            "null"
          ]
        },
        "text": {
          "type": [
            "string",
            "null"
          ]
        },
        "state": {
          "type": "string",
          "enum": [
            "draft",
            "approved",
            "queued",
            "sending",
            "sent",
            "uncertain",
            "cancelled",
            "failed"
          ]
        },
        "issue": {
          "anyOf": [
            {
              "type": "object",
              "properties": {
                "message": {
                  "type": "string"
                },
                "can_retry": {
                  "type": "boolean"
                }
              },
              "required": [
                "message",
                "can_retry"
              ],
              "additionalProperties": false
            },
            {
              "type": "null"
            }
          ]
        },
        "scheduled_at": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
            },
            {
              "type": "null"
            }
          ]
        },
        "approved_at": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
            },
            {
              "type": "null"
            }
          ]
        },
        "sent_at": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
            },
            {
              "type": "null"
            }
          ]
        },
        "cancelled_at": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
            },
            {
              "type": "null"
            }
          ]
        },
        "created_at": {
          "type": "string",
          "format": "date-time",
          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
        },
        "updated_at": {
          "type": "string",
          "format": "date-time",
          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
        }
      },
      "required": [
        "action_id",
        "campaign_id",
        "person_id",
        "kind",
        "channel",
        "email_from",
        "content",
        "subject",
        "text",
        "state",
        "issue",
        "scheduled_at",
        "approved_at",
        "sent_at",
        "cancelled_at",
        "created_at",
        "updated_at"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "action"
  ],
  "additionalProperties": false
}

Conciliar una acción

POST/api/v1/campaigns/{campaignId}/people/{personId}/actions/{actionId}/reconcile

Comprueba el recibo guardado y recupera un envío confirmado. No envía ni permite forzar un resultado sin evidencia.

REST: clave API o sesiónTool MCP reconcile_lead_actionPermiso writeReintentos con la misma clave
ParámetroDescripción
campaignIdpath · string · obligatorioAl menos 1 caracteres. Hasta 160 caracteres.
personIdpath · string · obligatorioAl menos 1 caracteres. Hasta 160 caracteres.
actionIdpath · string · obligatorioAl menos 1 caracteres. Hasta 160 caracteres.
Idempotency-Keyheader · string · obligatorioAl menos 8 caracteres. Hasta 160 caracteres.
Originheader · "https://ai.zaly.app" · opcionalObligatoria en escrituras con cookie. No se requiere con Bearer.

Petición

curl -X POST "https://ai.zaly.app/api/v1/campaigns/$CAMPAIGN_ID/people/$PERSON_ID/actions/$ACTION_ID/reconcile" \
  -H "Authorization: Bearer $ZALY_API_KEY" \
  -H "Idempotency-Key: $ZALY_IDEMPOTENCY_KEY" \
  -H "Content-Type: application/json" \
  --data @payload.json

Prepara payload.json con los campos del cuerpo. Sustituye los identificadores y conserva la clave al reintentar la misma intención.

Respuesta
CampoTipo y descripción
actionobject
resolution"confirmed" | "pending" | "checking" | "not_required"
Schemas completos de REST y MCP

Cuerpo REST

{
  "type": "object",
  "properties": {},
  "additionalProperties": false
}

Entrada MCP

{
  "type": "object",
  "properties": {
    "campaign_id": {
      "type": "string",
      "minLength": 1,
      "maxLength": 160
    },
    "person_id": {
      "type": "string",
      "minLength": 1,
      "maxLength": 160
    },
    "action_id": {
      "type": "string",
      "minLength": 1,
      "maxLength": 160
    },
    "idempotency_key": {
      "type": "string",
      "minLength": 8,
      "maxLength": 160
    }
  },
  "required": [
    "campaign_id",
    "person_id",
    "action_id",
    "idempotency_key"
  ],
  "additionalProperties": false
}

Respuesta JSON

{
  "type": "object",
  "properties": {
    "action": {
      "type": "object",
      "properties": {
        "action_id": {
          "type": "string"
        },
        "campaign_id": {
          "type": "string"
        },
        "person_id": {
          "type": "string"
        },
        "kind": {
          "type": "string",
          "enum": [
            "gif",
            "message",
            "invitation",
            "invitation_without_notification",
            "comment",
            "reaction",
            "email",
            "email_reply"
          ]
        },
        "channel": {
          "type": "string",
          "enum": [
            "linkedin",
            "email"
          ]
        },
        "email_from": {
          "type": [
            "string",
            "null"
          ]
        },
        "content": {
          "oneOf": [
            {
              "type": "object",
              "properties": {
                "kind": {
                  "type": "string",
                  "const": "gif"
                },
                "gif_id": {
                  "type": "string"
                },
                "text": {
                  "type": "string"
                }
              },
              "required": [
                "kind",
                "gif_id"
              ],
              "additionalProperties": false
            },
            {
              "type": "object",
              "properties": {
                "kind": {
                  "type": "string",
                  "const": "message"
                },
                "text": {
                  "type": "string"
                }
              },
              "required": [
                "kind",
                "text"
              ],
              "additionalProperties": false
            },
            {
              "type": "object",
              "properties": {
                "kind": {
                  "type": "string",
                  "const": "invitation"
                },
                "note": {
                  "type": "string"
                }
              },
              "required": [
                "kind"
              ],
              "additionalProperties": false
            },
            {
              "type": "object",
              "properties": {
                "kind": {
                  "type": "string",
                  "const": "invitation_without_notification"
                }
              },
              "required": [
                "kind"
              ],
              "additionalProperties": false
            },
            {
              "type": "object",
              "properties": {
                "kind": {
                  "type": "string",
                  "const": "comment"
                },
                "post_url": {
                  "type": "string"
                },
                "comment_id": {
                  "type": "string"
                },
                "text": {
                  "type": "string"
                }
              },
              "required": [
                "kind"
              ],
              "additionalProperties": false
            },
            {
              "type": "object",
              "properties": {
                "kind": {
                  "type": "string",
                  "const": "reaction"
                },
                "post_url": {
                  "type": "string"
                },
                "reaction": {
                  "type": "string",
                  "enum": [
                    "like",
                    "celebrate",
                    "support",
                    "love",
                    "insightful",
                    "funny"
                  ]
                }
              },
              "required": [
                "kind"
              ],
              "additionalProperties": false
            },
            {
              "type": "object",
              "properties": {
                "kind": {
                  "type": "string",
                  "const": "email"
                },
                "subject": {
                  "type": "string"
                },
                "text": {
                  "type": "string"
                }
              },
              "required": [
                "kind",
                "subject",
                "text"
              ],
              "additionalProperties": false
            },
            {
              "type": "object",
              "properties": {
                "kind": {
                  "type": "string",
                  "const": "email_reply"
                },
                "in_reply_to_message_id": {
                  "type": "string"
                },
                "text": {
                  "type": "string"
                }
              },
              "required": [
                "kind"
              ],
              "additionalProperties": false
            }
          ]
        },
        "subject": {
          "type": [
            "string",
            "null"
          ]
        },
        "text": {
          "type": [
            "string",
            "null"
          ]
        },
        "state": {
          "type": "string",
          "enum": [
            "draft",
            "approved",
            "queued",
            "sending",
            "sent",
            "uncertain",
            "cancelled",
            "failed"
          ]
        },
        "issue": {
          "anyOf": [
            {
              "type": "object",
              "properties": {
                "message": {
                  "type": "string"
                },
                "can_retry": {
                  "type": "boolean"
                }
              },
              "required": [
                "message",
                "can_retry"
              ],
              "additionalProperties": false
            },
            {
              "type": "null"
            }
          ]
        },
        "scheduled_at": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
            },
            {
              "type": "null"
            }
          ]
        },
        "approved_at": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
            },
            {
              "type": "null"
            }
          ]
        },
        "sent_at": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
            },
            {
              "type": "null"
            }
          ]
        },
        "cancelled_at": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
            },
            {
              "type": "null"
            }
          ]
        },
        "created_at": {
          "type": "string",
          "format": "date-time",
          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
        },
        "updated_at": {
          "type": "string",
          "format": "date-time",
          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
        }
      },
      "required": [
        "action_id",
        "campaign_id",
        "person_id",
        "kind",
        "channel",
        "email_from",
        "content",
        "subject",
        "text",
        "state",
        "issue",
        "scheduled_at",
        "approved_at",
        "sent_at",
        "cancelled_at",
        "created_at",
        "updated_at"
      ],
      "additionalProperties": false
    },
    "resolution": {
      "type": "string",
      "enum": [
        "confirmed",
        "pending",
        "checking",
        "not_required"
      ]
    }
  },
  "required": [
    "action",
    "resolution"
  ],
  "additionalProperties": false
}

GIFs

Biblioteca compartida de recursos de tu organización.

Buscar GIFs

GET/api/v1/gifs

Buscar GIFs guardados por nombre, descripción o etiquetas. query es texto literal; conserva query al continuar con next_cursor. No descarga bytes ni envía.

REST: clave API o sesiónTool MCP list_gifsPermiso readSolo lecturaReintentos con la misma clave
ParámetroDescripción
queryquery · string · opcionalPor defecto: "". Hasta 200 caracteres.
limitquery · integer · opcionalPor defecto: 25. Mínimo: 1. Máximo: 50.
cursorquery · string · opcionalAl menos 1 caracteres. Hasta 160 caracteres.

Petición

curl -X GET "https://ai.zaly.app/api/v1/gifs" \
  -H "Authorization: Bearer $ZALY_API_KEY"
Respuesta
CampoTipo y descripción
itemsarray de object
returned_countintegerMínimo: 0. Máximo: 9007199254740991.
has_moreboolean
next_cursorstring | null
Schemas completos de REST y MCP

Entrada MCP

{
  "type": "object",
  "properties": {
    "query": {
      "default": "",
      "type": "string",
      "maxLength": 200
    },
    "limit": {
      "default": 25,
      "type": "integer",
      "minimum": 1,
      "maximum": 50
    },
    "cursor": {
      "type": "string",
      "minLength": 1,
      "maxLength": 160
    }
  },
  "additionalProperties": false
}

Respuesta JSON

{
  "type": "object",
  "properties": {
    "items": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "gif_id": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160
          },
          "name": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "tags": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "filename": {
            "type": "string"
          },
          "size_bytes": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          },
          "width": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          },
          "height": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          },
          "frames": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          },
          "sha256": {
            "type": "string"
          },
          "preview_path": {
            "type": "string"
          },
          "created_at": {
            "type": "string"
          }
        },
        "required": [
          "gif_id",
          "name",
          "description",
          "tags",
          "filename",
          "size_bytes",
          "width",
          "height",
          "frames",
          "sha256",
          "preview_path",
          "created_at"
        ],
        "additionalProperties": false
      }
    },
    "returned_count": {
      "type": "integer",
      "minimum": 0,
      "maximum": 9007199254740991
    },
    "has_more": {
      "type": "boolean"
    },
    "next_cursor": {
      "type": [
        "string",
        "null"
      ]
    }
  },
  "required": [
    "items",
    "returned_count",
    "has_more",
    "next_cursor"
  ],
  "additionalProperties": false
}

Consultar un GIF

GET/api/v1/gifs/{gifId}

Consultar un GIF disponible y su preview_path autenticado. No envía. Usa gif_id al crear content.kind=gif.

REST: clave API o sesiónTool MCP get_gifPermiso readSolo lecturaReintentos con la misma clave
ParámetroDescripción
gifIdpath · string · obligatorioAl menos 1 caracteres. Hasta 160 caracteres.

Petición

curl -X GET "https://ai.zaly.app/api/v1/gifs/$GIF_ID" \
  -H "Authorization: Bearer $ZALY_API_KEY"
Respuesta
CampoTipo y descripción
gifobject
Schemas completos de REST y MCP

Entrada MCP

{
  "type": "object",
  "properties": {
    "gif_id": {
      "type": "string",
      "minLength": 1,
      "maxLength": 160
    }
  },
  "required": [
    "gif_id"
  ],
  "additionalProperties": false
}

Respuesta JSON

{
  "type": "object",
  "properties": {
    "gif": {
      "type": "object",
      "properties": {
        "gif_id": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "name": {
          "type": "string"
        },
        "description": {
          "type": "string"
        },
        "tags": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "filename": {
          "type": "string"
        },
        "size_bytes": {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991
        },
        "width": {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991
        },
        "height": {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991
        },
        "frames": {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991
        },
        "sha256": {
          "type": "string"
        },
        "preview_path": {
          "type": "string"
        },
        "created_at": {
          "type": "string"
        }
      },
      "required": [
        "gif_id",
        "name",
        "description",
        "tags",
        "filename",
        "size_bytes",
        "width",
        "height",
        "frames",
        "sha256",
        "preview_path",
        "created_at"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "gif"
  ],
  "additionalProperties": false
}

Subir un GIF

POST/api/v1/gifs

Subir un GIF animado a la biblioteca de la organización. No crea acciones ni envía. Base64 canónico, máximo 2 MiB. Repetir los mismos bytes reutiliza el GIF y sus metadatos originales.

REST: clave API o sesiónTool MCP upload_gifPermiso writeReintentos con la misma clave
ParámetroDescripción
Idempotency-Keyheader · string · obligatorioAl menos 8 caracteres. Hasta 160 caracteres.
Originheader · "https://ai.zaly.app" · opcionalObligatoria en escrituras con cookie. No se requiere con Bearer.
namebody · string · obligatorioAl menos 1 caracteres. Hasta 100 caracteres.
descriptionbody · string · opcionalPor defecto: "". Hasta 1000 caracteres.
tagsbody · array de string · opcionalPor defecto: [].
filenamebody · string · obligatorioAl menos 5 caracteres. Hasta 120 caracteres.
content_base64body · string · obligatorioAl menos 4 caracteres. Hasta 2796204 caracteres.

Petición

curl -X POST "https://ai.zaly.app/api/v1/gifs" \
  -H "Authorization: Bearer $ZALY_API_KEY" \
  -H "Idempotency-Key: $ZALY_IDEMPOTENCY_KEY" \
  -H "Content-Type: application/json" \
  --data @payload.json

Prepara payload.json con los campos del cuerpo. Sustituye los identificadores y conserva la clave al reintentar la misma intención.

Respuesta
CampoTipo y descripción
gifobject
Schemas completos de REST y MCP

Cuerpo REST

{
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "minLength": 1,
      "maxLength": 100
    },
    "description": {
      "default": "",
      "type": "string",
      "maxLength": 1000
    },
    "tags": {
      "default": [],
      "maxItems": 20,
      "type": "array",
      "items": {
        "type": "string",
        "minLength": 1,
        "maxLength": 50
      }
    },
    "filename": {
      "type": "string",
      "minLength": 5,
      "maxLength": 120,
      "pattern": "^[^/\\\\\\u0000-\\u001f\\u007f]+\\.gif$"
    },
    "content_base64": {
      "type": "string",
      "minLength": 4,
      "maxLength": 2796204
    }
  },
  "required": [
    "name",
    "filename",
    "content_base64"
  ],
  "additionalProperties": false
}

Entrada MCP

{
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "minLength": 1,
      "maxLength": 100
    },
    "description": {
      "default": "",
      "type": "string",
      "maxLength": 1000
    },
    "tags": {
      "default": [],
      "maxItems": 20,
      "type": "array",
      "items": {
        "type": "string",
        "minLength": 1,
        "maxLength": 50
      }
    },
    "filename": {
      "type": "string",
      "minLength": 5,
      "maxLength": 120,
      "pattern": "^[^/\\\\\\u0000-\\u001f\\u007f]+\\.gif$"
    },
    "content_base64": {
      "type": "string",
      "minLength": 4,
      "maxLength": 2796204
    },
    "idempotency_key": {
      "type": "string",
      "minLength": 8,
      "maxLength": 160
    }
  },
  "required": [
    "name",
    "filename",
    "content_base64",
    "idempotency_key"
  ],
  "additionalProperties": false
}

Respuesta JSON

{
  "type": "object",
  "properties": {
    "gif": {
      "type": "object",
      "properties": {
        "gif_id": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "name": {
          "type": "string"
        },
        "description": {
          "type": "string"
        },
        "tags": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "filename": {
          "type": "string"
        },
        "size_bytes": {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991
        },
        "width": {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991
        },
        "height": {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991
        },
        "frames": {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991
        },
        "sha256": {
          "type": "string"
        },
        "preview_path": {
          "type": "string"
        },
        "created_at": {
          "type": "string"
        }
      },
      "required": [
        "gif_id",
        "name",
        "description",
        "tags",
        "filename",
        "size_bytes",
        "width",
        "height",
        "frames",
        "sha256",
        "preview_path",
        "created_at"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "gif"
  ],
  "additionalProperties": false
}

Esta web usa cookies. Medimos las visitas sin cookies, y cómo se navega por las páginas, para saber qué funciona y mejorar la web. Si aceptas, activamos también las cookies de análisis, que reconocen tu navegador en próximas visitas, y las de publicidad de LinkedIn y Meta. Puedes cambiar tu elección cuando quieras desde el botón Privacidad. Más información