Authentication

All sensitive API endpoints require authentication using the Public ID & Private Key generated in the Fasten Connect dashboard.

This is done using Basic Authentication, where the Public ID is the username and the Private Key is the password.

Remember, when generating the Basic Auth header manually, the Public Id and Private Key must be concatenated with a colon : and then base64 encoded. The resulting string should be prefixed with Basic and included in the Authorization header of the request.

For example, if your Public ID is public_test_123456324234234 and your Private Key is private_test_9u2orjsd02lk3)i03423, then the field’s value is the Base64 encoding of public_test_123456324234234:private_test_9u2orjsd02lk3)i03423.

Then the Authorization header field will appear as:

Authorization: Basic cHVibGljX3Rlc3RfMTIzNDU2MzI0MjM0MjM0OnByaXZhdGVfdGVzdF85dTJvcmpzZDAybGszKWkwMzQyMwo=

Curl Example

curl -u 'public_test_123456324234234':'private_test_9u2orj....sd02lk3)i03423' \
-X POST \
--data '{"org_connection_id":"ebea708d-c5fa-4294-9051-da48ef08c78a"}' \
https://api.connect.fastenhealth.com/v1/bridge/fhir/ehi-export