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