Users
The API Key can be generated within your account settings.
get
https://{sub-domain}.trustswiftly.com
/api/users
Get Users
cURL
curl --location --request GET 'https://{sub-domain}.trustswiftly.com/api/users' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer 1|GqRQaD0nMBmGkIKLiPuOPLAckxhupWyjVEZKjsj1' \
--header 'User-Agent: TrustSwiftly/1.0'
get
https://{sub-domain}.trustswiftly.com
/api/users/{id}
Get User
cURL
curl --location --request GET 'https://{sub-domain}.trustswiftly.com/api/users/2' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer 1|GqRQaD0nMBmGkIKLiPuOPLAckxhupWyjVEZKjsj1' \
--header 'User-Agent: TrustSwiftly/1.0'
post
https://{sub-domain}.trustswiftly.com
/api/users
Create User
cURL
curl --location --request POST 'https://{sub-domain}.trustswiftly.com/api/users' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer 1|GqRQaD0nMBmGkIKLiPuOPLAckxhupWyjVEZKjsj1' \
--header 'User-Agent: TrustSwiftly/1.0' \
--data-raw '{
"email": "[email protected]",
"template_id": "tmpl_MQ"
}'
patch
https://{sub-domain}.trustswiftly.com
/api/users/{id}
Update User
cURL
curl --location --request PATCH 'https://{sub-domain}.trustswiftly.com/api/users/1' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer 2|GM2loELoTfc8rXC0PoC4WagW2eEQzE1AxhsqQ8Sn' \
--header 'User-Agent: TrustSwiftly/1.0' \
--data-raw '{
"first_name": "New",
"last_name": "Name",
"template_id": "tmpl_MQ"
}'
patch
https://{sub-domain}.trustswiftly.com
/api/users/{id}/verifications
Update Verification
cURL
curl --location --request PATCH 'https://{sub-domain}.trustswiftly.com/api/users/1' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer 2|GM2loELoTfc8rXC0PoC4WagW2eEQzE1AxhsqQ8Sn' \
--header 'User-Agent: TrustSwiftly/1.0' \
--data-raw '{
"verification_id": "7",
"status": "2"
}
delete
https://{sub-domain}.trustswiftly.com
/api/users/{id}
Delete User
cURL
curl --location --request DELETE 'https://{sub-domain}.trustswiftly.com/api/users/1' \
--header 'Authorization: Bearer 1|GqRQaD0nMBmGkIKLiPuOPLAckxhupWyjVEZKjsj1' \
--header 'User-Agent: TrustSwiftly/1.0' \
--data-raw ''
cURL
curl --location --request POST 'https://{sub-domain}.trustswiftly.com/api/users/1/verify-url' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer 1|GM2loELoTfc8rXC0PoC4WagW2eEQzE1AxhsqQ8Sn' \
--header 'User-Agent: TrustSwiftly/1.0' \
--data-raw '{
"expiration_hours": 24
}'
Copy link
On this page
get
Get Users
get
Get User
post
Create User
patch
Update User
patch
Update Verification
delete
Delete User
post
Get Magic Link