Assets
API endpoints for assets
List assets
GET /api/v1/assets
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
organizationId | query | string | No | Organization scope id. Omit for token default; pass an empty value for personal scope where supported. |
scoutId | query | string | No | — |
projectId | query | string | No | — |
spaceId | query | string | No | — |
labelId | query | string | No | — |
include | query | string | No | Comma-separated relation names to hydrate, or all. |
limit | query | integer | No | Maximum number of items to return. |
offset | query | integer | No | Number of items to skip. |
Example request
curl -X GET \
"https://api.getpilfer.com/api/v1/assets?organizationId=<organizationId>&scoutId=<scoutId>&projectId=<projectId>&spaceId=<spaceId>&labelId=<labelId>&include=<include>&limit=<limit>&offset=<offset>" \
-H "Authorization: Bearer <API_KEY>" \
-H "Content-Type: application/json"Example response
Status: 200
{
"data": [
{
"_id": "string",
"name": "string",
"scoutId": "string",
"categoryId": "string",
"cost": 0
}
]
}Other statuses: 401, 403.
Response body type
{ data: Asset[] }
Create asset
POST /api/v1/assets
Example request
curl -X POST \
"https://api.getpilfer.com/api/v1/assets" \
-H "Authorization: Bearer <API_KEY>" \
-H "Content-Type: application/json"
-d '{"name":"string","organizationId":"string","scoutId":"string","categoryId":"string","heroImage":"string","condition":0,"satisfaction":0,"usage":0,"friction":0,"lifetimeValue":0,"acquisitionDate":0,"cost":0}'Example response
Status: 201
{
"data": {
"_id": "string",
"name": "string",
"scoutId": "string",
"categoryId": "string",
"cost": 0
}
}Other statuses: 400, 401, 403.
Response body type
{ data: Asset }
Get asset
GET /api/v1/assets/{id}
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | Yes | Convex document id |
include | query | string | No | Comma-separated relation names to hydrate, or all. |
Example request
curl -X GET \
"https://api.getpilfer.com/api/v1/assets/<id>?include=<include>" \
-H "Authorization: Bearer <API_KEY>" \
-H "Content-Type: application/json"Example response
Status: 200
{
"data": {
"_id": "string",
"name": "string",
"scoutId": "string",
"categoryId": "string",
"cost": 0
}
}Other statuses: 401, 403, 404.
Response body type
{ data: Asset }
Update asset
PATCH /api/v1/assets/{id}
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | Yes | Convex document id |
Example request
curl -X PATCH \
"https://api.getpilfer.com/api/v1/assets/<id>" \
-H "Authorization: Bearer <API_KEY>" \
-H "Content-Type: application/json"
-d '{"name":"string","scoutId":"string","categoryId":"string","heroImage":"string","condition":0,"satisfaction":0,"usage":0,"friction":0,"lifetimeValue":0,"acquisitionDate":0,"cost":0}'Example response
Status: 200
{
"data": {
"_id": "string",
"name": "string",
"scoutId": "string",
"categoryId": "string",
"cost": 0
}
}Other statuses: 400, 401, 403, 404.
Response body type
{ data: Asset }
Delete asset
DELETE /api/v1/assets/{id}
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | Yes | Convex document id |
Example request
curl -X DELETE \
"https://api.getpilfer.com/api/v1/assets/<id>" \
-H "Authorization: Bearer <API_KEY>" \
-H "Content-Type: application/json"Example response
Status: 200
{
"data": {}
}Other statuses: 401, 403, 404.
Response body type
{ data: DeleteResult }
© 2025 Pilfer
All rights reserved.
All rights reserved.