Users
Users connect their payroll accounts using Link.
#The user object
- idstring (uuid)
Unique ID of the user.
- created_atstring (datetime)
Timestamp (ISO 8601) when the user object was created.
- items_connectedarray of strings
Items the user has connected through Link. Typically employers or payroll platforms.
- employers_connectedarray of strings
Individual employers associated with the connected Items.
- external_metadataJSON
Typically used for grouping users or internal matching of Argyle user IDs. Can be any valid JSON, such as a string or object.
Using
external_id
is recommended when the ability to filter users by an external value is needed. - external_idstring
Typically used for grouping users or internal matching of Argyle user IDs. Can be any string of 100 characters or less.
Users can be listed and filtered using
external_id
as a query parameter. Exact matches only are supported. Multiple users can have the sameexternal_id
.
1{
2 "id": "018051aa-f7a9-a0db-2f38-6cfa325e9d69",
3 "created_at": "2023-01-30T22:25:38.971210Z",
4 "items_connected": [
5 "item_123456789",
6 "item_987654321"
7 ],
8 "employers_connected": [
9 "Whole Goods",
10 "Bullseye"
11 ],
12 "external_metadata": {
13 "Internal ID Value": "05312",
14 "Internal Category": "Summer Initiative"
15 },
16 "external_id": "July_Connection"
17}
#Create a user
Creates a new user object.
Includes a new user token in the response.
- external_metadataJSONoptional
Any valid JSON.
- external_idstringoptional
Any string. Maximum 100 characters.
1curl --request POST \
2 --url https://api.argyle.com/v2/users \
3 --header 'accept: application/json' \
4 --header 'content-type: application/json'
1{
2 "user_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJjbGllbnRfaWQiOiIxNCRhMTRkNS04YzEzLTQzZGYtOTI4Ni01OWY4NjFkOWEyMDIiLCJleHAiOjE2NzgzNDExNDMsImZpZCI6ImIyYzY4YzUwLTc2MTQtNDAwNy1iMzNmLWZiMzlkMDFmMmM3MCIsImlhdCI6MTY3ODMzNzU0MywiaXNzIjoiYXJneWxlLWNvcmUtYXV0aC1kZXYiLCJqdGkiOiI3ZTU0ZTY1NS05YWN2LTRiZDctOWI3OC0xODMxMjVkYjM1MzMiLCJzdWIiOiIwMTg2YzRiNi04ZTgyLWQ5OWMtOGY4Mi1mNjMyMjgxMzk2ZTQiLCJ1c2VyX2lkIjoiMDE4NmM0YjYtOGU4Mi1kOTljLThmODItZjYzMjI4MTM5NmU0In0.q5bkZTFAohISOcjJDb2wSzKcHmwrOM4pp9imOVybaWk",
3 "id": "018051aa-f7a9-a0db-2f38-6cfa325e9d69"
4}
#Retrieve a user
Retrieves a user object.
- idstring (uuid)required
ID of the user object to be retrieved.
1curl --request GET \
2 --url https://api.argyle.com/v2/users/{id} \
3 --header 'accept: application/json' \
4 --header 'content-type: application/json'
1{
2 "id": "018051aa-f7a9-a0db-2f38-6cfa325e9d69",
3 "created_at": "2023-03-09T04:54:35.170468Z",
4 "items_connected": [
5 "item_123456789",
6 "item_987654321"
7 ],
8 "employers_connected": [
9 "Whole Goods",
10 "Bullseye"
11 ],
12 "external_metadata": {},
13 "external_id": null
14}
#Update a user
Updates the external_metadata
and/or external_id
of a user object.
- idstring (uuid)required
ID of the user object to be updated.
- external_metadataJSONoptional
Any valid JSON.
- external_idstringoptional
Any string. Maximum 100 characters.
1curl --request PATCH \
2 --url https://api.argyle.com/v2/users/{id} \
3 --header 'accept: application/json' \
4 --header 'content-type: application/json' \
5 --data '{"external_metadata": {}}'
1{
2 "id": "018051aa-f7a9-a0db-2f38-6cfa325e9d69",
3 "created_at": "2023-03-09T04:54:35.170468Z",
4 "items_connected": [
5 "item_123456789",
6 "item_987654321"
7 ],
8 "employers_connected": [
9 "Whole Goods",
10 "Bullseye"
11 ],
12 "external_metadata": {
13 "Internal ID Value": "05312",
14 "Internal Category": "Summer Initiative"
15 },
16 "external_id": "July_Connection"
17}
#Delete a user
Deletes a user object.
Caution — Deleting a user object will also delete all accounts and resources associated with the user.
- idstring (uuid)required
ID of the user object to be deleted.
1curl --request DELETE \
2 --url https://api.argyle.com/v2/users/{id} \
3 --header 'accept: application/json' \
4 --header 'content-type: application/json'
1"204 status code: No content."
#List all users
Returns an array of all user objects.
- limitintegeroptional
Number of user objects returned per page. Default: 10. Maximum: 200.
- external_idstringoptional
Filter users by
external_id
. Exact matches only.
1curl --request GET \
2 --url https://api.argyle.com/v2/users?limit=2 \
3 --header 'accept: application/json' \
4 --header 'content-type: application/json'
1[
2 {
3 "id": "018051aa-f7a9-a0db-2f38-6cfa325e9d69",
4 "created_at": "2023-01-30T22:25:38.971210Z",
5 "items_connected": [
6 "item_123456789",
7 "item_987654321"
8 ],
9 "employers_connected": [
10 "Whole Goods",
11 "Bullseye"
12 ],
13 "external_metadata": {
14 "Internal ID Value": "05312",
15 "Internal Category": "Summer Initiative"
16 },
17 "external_id": "July Connection"
18 },
19 {
20 "id": "0186c5b8-8fa1-67b3-39af-14b3e18da8a7",
21 "created_at": "2023-01-30T23:25:38.971210Z",
22 "items_connected": [
23 "item_000000001",
24 "item_000000002"
25 ],
26 "employers_connected": [
27 "Half Bads",
28 "Triple"
29 ],
30 "external_metadata": {
31 "Internal ID Value": "05313",
32 "Internal Category": "Summer Initiative"
33 },
34 "external_id": "August Connection"
35 }
36]