Use TOKEN_MX and TOKEN_IO as environment variables.
The webhook expose three directions:
-
/: Create contact on datos.mx. Parameters:
- tel : Uuid of contact on io
- flow : Optional parameter, only if must to run a flow
- to : site to migrate contact (io,datos)
/?tel=@contact.tel&to=datos
-
/search_contact : Search contact on io. Parameters:
- tel :cellnumber of contact on io
/search_contact?tel=@contac.tel
-
/cancel : Remove contact from all groups and add it to AltoPd. Parameters:
- tel :cellnumber of contact
- to: site to remove from group (datos,io)
/cancel?tel=@contac.tel&to=io
-
/create_empty: Create new contact without variables and add it to Unconfirmed group. Parameters:
- tel :cellnumber of contact
/create_empty?tel=@contact.tel
-
/start_flow: Search a contact and begin a flow. Parameters:
- tel :cellnumber of contact
- to: site to start flow (datos,io)
- flow : Flow to run
/start_flow?tel=@contact.tel&to=datos&flow=flow_id
-
/migrate_fb: Search a contact with phone number to migrate on fb contact. Parameters:
- tel :cellnumber of contact
- uuid: contact uuid
/migrate_fb?tel=@contact.tel&uuid=@contact.uuid