Create an agent

Create an AI agent on a linked WhatsApp number, then activate it with POST /v1/whatsapp/agents/{agent_id}/activate.

POST/v1/whatsapp/agents
  • Rate limit 120 / min
  • Returns 201 Created
  • Needs the WhatsApp permission · 1 credit per agent reply

Body parameters

  • subscription_idstringoptional

    The WhatsApp number it answers on.

  • namestringoptional

    Agent name.

  • system_promptstringoptional

    How it behaves and talks.

  • system_contextstringoptional

    Facts about your business.

  • greeting_messagestringoptional

    First message to new customers.

  • modelstringoptional

    From GET /v1/whatsapp/agents/models.

  • temperaturenumberoptional

    Lower is more predictable.

  • auto_respondbooleanoptional

    Reply automatically.

Response fields

  • id

    Agent ID

  • status

    active or inactive

  • conversation_count · message_count

    Usage

Errors

Tap one to see its response above.

Was this page helpful?
Powered by StdioX Labs