MobiariDocs

Search files

GET
/tenants/{tenant_id}/files/search

Across the tenant's library, newest first.

Authorization

bearer_auth
AuthorizationBearer <token>

Authorization: Bearer <token>. Either a session access token from POST /auth/login (refresh it with POST /auth/refresh) or a store API token (mobi_st_…). A store API token works only for the store it was issued in, and can do at most what its issuing user can there, narrowed to the scopes it was issued with.

In: header

Path Parameters

tenant_id*string

Tenant id

Formatuuid

Query Parameters

q?string

Matches part of the name, the original name, the MIME type, the description or a tag, case-insensitively.

folder_id?string

Only files in this folder.

Formatuuid
file_type?string

A family of MIME types.

Value in"image" | "video" | "document" | "archive"
limit?integer

Page size, 1 to 200. Defaults to 50.

Formatint64
Range1 <= value <= 200
cursor?string

next_cursor from the previous page. Omit for the first page.

offset?integer

Rows to skip, for UIs that jump to a page number. Ignored when cursor is set. Prefer cursor for walking a whole list.

Formatint64
Range0 <= value
include_total?boolean

Also return total, the count of all matching rows. Costs an extra query; leave off when you only walk pages.

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/tenants/497f6eca-6276-4993-bfeb-53cbbbba6f08/files/search?limit=50"
{
  "data": [
    {
      "alt_text": "string",
      "cdn_url": "string",
      "created_at": "2019-08-24T14:15:22Z",
      "description": "string",
      "file_path": "string",
      "file_size_bytes": 0,
      "filename": "string",
      "folder_id": "7695bac3-9397-4ec2-9335-45a2a16f1901",
      "height": 0,
      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
      "is_public": true,
      "mime_type": "string",
      "name": "string",
      "original_name": "string",
      "store_id": "7fe87115-950c-4ae8-bd7e-970406bc9ac0",
      "tags": [
        "string"
      ],
      "tenant_id": "34f5c98e-f430-457b-a812-92637d0c6fd0",
      "updated_at": "2019-08-24T14:15:22Z",
      "updated_by": "deea00dc-b6b6-4412-a483-26ac61e1f6fe",
      "uploaded_by": "e134ce2c-a199-4e99-9c11-627b70a7ff28",
      "width": 0
    }
  ],
  "has_more": true,
  "next_cursor": "string",
  "total": 0
}
{
  "code": "not_found",
  "details": {},
  "error": "Order not found"
}
{
  "code": "not_found",
  "details": {},
  "error": "Order not found"
}
{
  "code": "not_found",
  "details": {},
  "error": "Order not found"
}
{
  "code": "not_found",
  "details": {},
  "error": "Order not found"
}