Developer
To get started, you will need your private Changefly ID.
Step 1 — Generate your Changefly API Private Key
Generate your Changefly API Private Key to access the Changefly API.
cURL example:
curl -X POST https://services.changeflyapi.com/v1/api/generate-private-key \
-H "Content-Type: application/json" \
-d '{
"admin_changefly_id": "YOUR CHANGEFLY ID"
}'
JSON reponse:
{
"status": "OK",
"response": {
"success": 1,
"api_private_key": "YOUR API PRIVATE KEY"
}
}
Step 2 — Generate your Changefly API Connection Key
The Changefly API Connection Key will be used to establish a unique Changefly Connection ID per user account on your system (step 3 below).
cURL example:
curl -X POST https://services.changeflyapi.com/v1/api/generate-connection-key \
-H "Content-Type: application/json" \
-d '{
"admin_changefly_id": "YOUR CHANGEFLY ID"
}'
JSON reponse:
{
"status": "OK",
"response": {
"success": 1,
"api_connection_key": "YOUR API CONNECTION KEY"
}
}
Step 3 — Verify Changefly ID’s
When verifying a user’s Changefly ID, a unique changefly_connection_id is returned in the API response. Attach the unique changefly_connection_id to the user’s account on your system, then use it to identify the user in future verifications. Do not use the changefly_connection_id as the account id on your system.
cURL example:
curl -X POST https://services.changeflyapi.com/v1/api/authenticate \
-H "Content-Type: application/json" \
-d '{
"api_private_key": "YOUR API PRIVATE KEY",
"api_connection_key": "YOUR API CONNECTION KEY",
"changefly_id": "USER CHANGEFLY ID"
}'
JSON reponse:
{
"status": "OK",
"response": {
"success": 1,
"changefly_connection_id": "UNIQUE ID ASSIGNED TO USER",
"identity": {
"type": "person",
"country": "US",
"age_verification": 18
}
}
}
Congratulations!
You just verified your first Changefly ID. If you have any questions or need assistance, we are here to help.
Contact our developer team for Changefly API support.
Contact our business team for advanced features, direct messaging, and dedicated support.
