hello @diana @magp18
Run into some issue while configuring outbound connection for 4.x on textit …
I have used
curl -X PUT -H "Content-Type: text/plain" https://medic:<password>@<domain-name>/api/v1/credentials/M5W4UXMWT2JVPG7BZYNBGCVYYY3YQ5AXQH7EHNGN -d 'rapidpro.api'
to stored the credentials .
M5W4UXMWT2JVPG7BZYNBGCVYYY3YQ5AXQH7EHNGN
is the token i have tested the flow simulator in the textit webhook ie Authorization Token M5W4UXMWT2JVPG7BZYNBGCVYYY3YQ5AXQH7EHNGN
In CHT app settings i have “mark_for_outbound”: true, and the enrollment outbound config
"patient triggers enroll workflow in Textit": {
"relevant_to": "doc.type === 'person' && doc.tsis",
"destination": {
"base_url": "https://textit.com",
"auth": {
"type": "header",
"name": "Authorization",
"value_key": "rapidpro.app"
},
"path": "/api/v2/flow_starts.json"
},
"mapping": {
"flow": {
"expr": "'750317d6-6662-4c0e-9ea3-138798eba5ef'"
},
"urns": {
"expr": "['tel:' + doc.phone]"
}
}
How is the endpoint structured the store the credentials? coz am getting
sudo docker logs compose-sentinel-1 --tail 5
' at /service/shared-libs/outbound/src/outbound.js:29:13\n' +
' at process.processTicksAndRejections (node:internal/process/task_queues:95:5)',
[message]: "Credentials for 'rapidpro.app' have not been configured. See the Outbound documentation."
}