POST
/
api
/
bot
/
domain-access
curl --request POST \
  --url https://backend.chatfly.co/api/bot/domain-access \
  --header 'Content-Type: application/json' \
  --data '{
  "bot_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "domain": [
    "<string>"
  ]
}'
{
  "message_code": 123,
  "message": "<string>",
  "data": "<any>"
}

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Body

application/json

Domain access schema.

bot_id
string
required

Unique identifier for the bot.

domain
string[]
required

List of domains associated with the bot.

Response

200
application/json
Successful Response

HTTP Response Schema.

message_code
integer
required

Numeric code indicating the type of message or response.

message
string
required

Human-readable message providing additional context about the response.

data
any

Optional data accompanying the response.