Steerd API
Attachments

List an entity's attachments

GET
/api/public/v1/attachments
AuthorizationBearer <token>

In: header

Query Parameters

entity_type*string

Value in

  • "project"
  • "organization"
  • "employee"
  • "contact"
entity_id*string
Match^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
Formatuuid

Response Body

application/json

application/json

curl -X GET "https://example.com/api/public/v1/attachments?entity_type=project&entity_id=497f6eca-6276-4993-bfeb-53cbbbba6f08"
{  "data": [    {      "category": "contract",      "created_at": "string",      "created_by": "string",      "entity_id": "string",      "entity_type": "project",      "filename": "string",      "id": "string",      "mime": "string",      "size": 0    }  ],  "page": {    "hasMore": true,    "nextCursor": "string"  }}
{  "error": {    "code": "string",    "message": "string"  }}