GETapi.synup.com/api/v4/users/{userId}/resources
List User Resources
This API retrieves a list of all resources (folders and locations) associated with a user.
It includes:
- Folders the user has access to.
- Locations assigned to the user.
- Access levels for each resource.
Requires an API key. Send it as
Authorization: API <your-key> — see Getting started.Parameters
Path
| Name | Type | Required | Description |
|---|---|---|---|
userId | string | required | Base64 encoded user ID |
Request
Request
curl -X GET 'https://api.synup.com/api/v4/users/:userId/resources' \
-H 'Authorization: API YOUR_API_KEY' \
-H 'Content-Type: application/json'const res = await fetch('https://api.synup.com/api/v4/users/:userId/resources', {
method: 'GET',
headers: {
Authorization: 'API YOUR_API_KEY',
'Content-Type': 'application/json',
},
});
const data = await res.json();import requests
res = requests.get(
"https://api.synup.com/api/v4/users/:userId/resources",
headers={
"Authorization": "API YOUR_API_KEY",
"Content-Type": "application/json",
},
)
data = res.json()req, _ := http.NewRequest("GET", "https://api.synup.com/api/v4/users/:userId/resources", nil)
req.Header.Set("Authorization", "API YOUR_API_KEY")
req.Header.Set("Content-Type", "application/json")
res, err := http.DefaultClient.Do(req)Responses
| Status | Description |
|---|---|
200 | Successfully retrieved user resources |
Example response (generated from the schema)
{
"data": {
"listUserResources": [
{
"id": "string",
"name": "string",
"__typename": "Folder"
}
]
}
}Response body
| Name | Type | Required | Description |
|---|---|---|---|
data | object | optional | |
data.listUserResources | array of object | optional | |
data.listUserResources[].id | string | required | Resource identifier (UUID format for folders, Base64 encoded for locations) |
data.listUserResources[].name | string | required | Name of the resource |
data.listUserResources[].__typename | string | required | Type discriminator for the resourceFolderLocationSummary |