Profiles
PATCH
external_id null removes it; one used by another profile: 409 external_id_taken.
Requires the write scope. Owner key or session only: a profile key gets 403 owner_key_required.
bearerheader
AuthorizationBearer <token>An API key (tb_live_...) from the dashboard, or an OAuth access token.
id*stringFormat
uuidapplication/json- body
name?stringLength
1 <= length <= 100external_id?|nullThe profile.
application/json- response
id*stringFormat
uuidname*stringexternal_id*|The client's id in your own system.
is_default*booleancreated_at*stringFormat
date-timecurl -X PATCH 'https://api.mulaichat.com/v1/profiles/497f6eca-6276-4993-bfeb-53cbbbba6f08' \ -H 'Content-Type: application/json' \ -d '{}'Example Response
{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "name": "string", "external_id": "string", "is_default": true, "created_at": "2019-08-24T14:15:22Z"}List profiles GET
Oldest first, so the default profile leads. Requires the read scope. Owner key or session only: a profile key gets 403 owner_key_required.
Create a webhook endpoint POST
At most 10. The URL must be https on port 443 and a public host (400 webhook_url_not_allowed). profile_id limits it to one profile. The signing secret is returned only here. Requires the write scope. Owner key or session only: a profile key gets 403 owner_key_required.