# Agent Onboarding
Trigger AI agent onboarding for a specific entity.
This endpoint triggers the onboarding flow for a Business AI agent on a specific entity. It creates the necessary entities and schedules async jobs for data preparation. An optional catalog can be linked during onboarding. This endpoint allows 1,000 requests per hour for each app and `entity_id` pair. Once that is exhausted, further requests return `429` until the limit resets.
## Base URL
| URL | Description |
|-----|-------------|
| https://api.facebook.com/{entity_id}/agent_onboarding | |
## Authorization
This API requires:
any of the following
- Capability: bizai_wa_enterprise_api_3p_access
- Capability: bizai_ig_enterprise_api_3p_access
- Permission: whatsapp_business_messaging
## APIs
| Method | Endpoint |
|--------|----------|
| POST | [/](#post) |
<jumplink id="post"></jumplink>
## POST /
Create an onboarding session
Trigger AI agent onboarding for the specified entity. Creates the necessary entities and schedules async jobs for data preparation. An optional catalog can be linked during onboarding.
### Header Parameters
| Name | Type | Required | Description |
|------|------|----------|-------------|
| X-API-Version | "2.0.0" | | |
### Path Parameters
| Name | Type | Required | Description |
|------|------|----------|-------------|
| entity_id | string | ✓ | The WhatsApp Business Phone Number ID, Instagram business account ID, or Instagram username for the Meta Business Agent. |
### Request Body (Required)
**Content Type**: `application/json`
**Schema**: [BizAIOmniChannelOnboardingRequest](#bizaiomnichannelonboardingrequest)
### Responses
**201**
Onboarding triggered successfully
**Content Type**: `application/json`
**Schema**: [BizAIOmniChannelOnboardingResponse](#bizaiomnichannelonboardingresponse)
**400**
Bad request
**Content Type**: `application/json`
**Schema**: [StandardError](#standarderror)
**401**
Unauthorized
**Content Type**: `application/json`
**Schema**: [StandardError](#standarderror)
**403**
Forbidden
**Content Type**: `application/json`
**Schema**: [StandardError](#standarderror)
**429**
Too many requests
**Content Type**: `application/json`
**Schema**: [StandardError](#standarderror)
**500**
Server error
**Content Type**: `application/json`
**Schema**: [StandardError](#standarderror)
# Components
## Schemas
<jumplink id="bizaiomnichannelonboardingrequest"></jumplink>
### BizAIOmniChannelOnboardingRequest
| Property | Type | Required | Description |
|----------|------|----------|-------------|
| catalog_id | string | | Canonical numeric catalog ID to link to the agent during onboarding. This is the ID shown in Commerce Manager and returned by the Marketing API. |
<jumplink id="bizaiomnichannelonboardingresponse"></jumplink>
### BizAIOmniChannelOnboardingResponse
| Property | Type | Required | Description |
|----------|------|----------|-------------|
| agent_id | string | ✓ | The ID of the agent settings entity |
<jumplink id="standarderror"></jumplink>
### StandardError
| Property | Type | Required | Description |
|----------|------|----------|-------------|
| detail | string | ✓ | |
| status | integer | | |
| title | string | ✓ | |
| type | string | | |
## Authentication
| Method | How to send it |
|--------|----------------|
| Authorization header | `Authorization: Bearer {access-token}` |
### Global Authentication Requirements
All endpoints require: `Authorization: Bearer {access-token}`