Skip to content
Wazapin
Esc
navigateopen⌘Jpreview

Exchange FB embedded signup code for token and create progress

POST/v1/waba/exchange-code
Authorization
bearerAuthbearerAuthrequired
or
apiKeyAuthapiKeyAuthrequired
Request body
requiredapplication/json
channel_idstring
Existing channel ID to update (if already created before OAuth)
channel_namestringrequired
Display name for the new channel
min length 1
codestringrequired
Authorization code from FB SDK
min length 1
phone_number_idstring
Phone number ID from FB postMessage FINISH event (may be absent for FINISH_ONLY_WABA)
waba_idstringrequired
WABA ID from FB postMessage FINISH event
min length 1
Responses
200OK
channel_idstring | nullrequired
completed_stepsanyrequired
created_atstringrequired
current_stepstringrequired
errorstring | nullrequired
idstringrequired
organization_idstringrequired
phone_number_idstring | nullrequired
step_statusstringrequired
updated_atstringrequired
waba_idstring | nullrequired
400Bad Request
errorErrorBodyrequired
Show properties
codestringrequired
detailsErrorDetail[] | null
Show properties
Array of ErrorDetail
codestring
fieldstring
locationstring
messagestringrequired
messagestringrequired
request_idstring
401Unauthorized
errorErrorBodyrequired
Show properties
codestringrequired
detailsErrorDetail[] | null
Show properties
Array of ErrorDetail
codestring
fieldstring
locationstring
messagestringrequired
messagestringrequired
request_idstring
403Forbidden
errorErrorBodyrequired
Show properties
codestringrequired
detailsErrorDetail[] | null
Show properties
Array of ErrorDetail
codestring
fieldstring
locationstring
messagestringrequired
messagestringrequired
request_idstring
422Unprocessable Entity
errorErrorBodyrequired
Show properties
codestringrequired
detailsErrorDetail[] | null
Show properties
Array of ErrorDetail
codestring
fieldstring
locationstring
messagestringrequired
messagestringrequired
request_idstring
500Internal Server Error
errorErrorBodyrequired
Show properties
codestringrequired
detailsErrorDetail[] | null
Show properties
Array of ErrorDetail
codestring
fieldstring
locationstring
messagestringrequired
messagestringrequired
request_idstring
Request
curl -X POST "/v1/waba/exchange-code" \
  -H "Content-Type: application/json" \
  -d '{
  "channel_id": "string",
  "channel_name": "string",
  "code": "string",
  "phone_number_id": "string",
  "waba_id": "string"
}'
Response
{
  "channel_id": "string",
  "completed_steps": "string",
  "created_at": "string",
  "current_step": "string",
  "error": "string",
  "id": "string",
  "organization_id": "string",
  "phone_number_id": "string",
  "step_status": "string",
  "updated_at": "string",
  "waba_id": "string"
}