Download OpenAPI specification:
API documentation for STQRY's public API
page | integer Page number |
per_page | integer [ 1 .. 1000 ] Default: 30 Number of items per page, max 1000 |
sort_field | string Enum: "coupon_code" "valid_from" "valid_to" "redemptions" "id" Field to sort by |
sort_direction | string Default: "ASC" Enum: "ASC" "DESC" Direction to sort by |
include_archived | boolean Include archived codes |
tags | string Comma separated list of tags. Tags are ANDed |
valid_now | boolean Currently valid codes |
q | string Search query |
{- "meta": {
- "page": 1,
- "pages": 10,
- "per_page": 30,
- "count": 305
}, - "data": [
- {
- "id": 1024,
- "status": "expired",
- "linked_id": 2048,
- "linked_type": "Project",
- "valid_from": "2021-01-01",
- "valid_to": "2021-01-01",
- "coupon_code": "DOWNTOWNTOUR",
- "redemption_count": 5,
- "project_id": 1024,
- "max_redemptions": 10,
- "expire_after": 1440,
- "timezone": "string",
- "tags": [
- "string"
], - "created_at": "2017-07-21T17:32:28Z",
- "updated_at": "2017-07-21T17:32:28Z"
}
]
}
Code
id | integer |
status | string Enum: "expired" "future" "valid" "invalid" "collection_unlocked" "current" "max_redemptions" "requires_email" |
linked_id | integer |
linked_type | string Enum: "Project" "Collection" |
string or null (Date) | |
string or null (Date) | |
coupon_code | string |
redemption_count | integer |
project_id | integer |
integer or null | |
integer or null | |
timezone | string (Timezone) Timezone as defined by TZInfo |
tags | Array of strings (TagList) Array of tags to help orgainse and search |
string or null (DateTime) | |
string or null (DateTime) |
{- "id": 1024,
- "status": "expired",
- "linked_id": 2048,
- "linked_type": "Project",
- "valid_from": "2021-01-01",
- "valid_to": "2021-01-01",
- "coupon_code": "DOWNTOWNTOUR",
- "redemption_count": 5,
- "project_id": 1024,
- "max_redemptions": 10,
- "expire_after": 1440,
- "timezone": "string",
- "tags": [
- "string"
], - "created_at": "2017-07-21T17:32:28Z",
- "updated_at": "2017-07-21T17:32:28Z"
}
{- "code": {
- "id": 1024,
- "status": "expired",
- "linked_id": 2048,
- "linked_type": "Project",
- "valid_from": "2021-01-01",
- "valid_to": "2021-01-01",
- "coupon_code": "DOWNTOWNTOUR",
- "redemption_count": 5,
- "project_id": 1024,
- "max_redemptions": 10,
- "expire_after": 1440,
- "timezone": "string",
- "tags": [
- "string"
], - "created_at": "2017-07-21T17:32:28Z",
- "updated_at": "2017-07-21T17:32:28Z"
}
}
id required | integer ID of the Code to retrieve |
{- "code": {
- "id": 1024,
- "status": "expired",
- "linked_id": 2048,
- "linked_type": "Project",
- "valid_from": "2021-01-01",
- "valid_to": "2021-01-01",
- "coupon_code": "DOWNTOWNTOUR",
- "redemption_count": 5,
- "project_id": 1024,
- "max_redemptions": 10,
- "expire_after": 1440,
- "timezone": "string",
- "tags": [
- "string"
], - "created_at": "2017-07-21T17:32:28Z",
- "updated_at": "2017-07-21T17:32:28Z"
}
}
id required | integer ID of the Code to retrieve |
Code
id | integer |
status | string Enum: "expired" "future" "valid" "invalid" "collection_unlocked" "current" "max_redemptions" "requires_email" |
linked_id | integer |
linked_type | string Enum: "Project" "Collection" |
string or null (Date) | |
string or null (Date) | |
coupon_code | string |
redemption_count | integer |
project_id | integer |
integer or null | |
integer or null | |
timezone | string (Timezone) Timezone as defined by TZInfo |
tags | Array of strings (TagList) Array of tags to help orgainse and search |
string or null (DateTime) | |
string or null (DateTime) |
{- "id": 1024,
- "status": "expired",
- "linked_id": 2048,
- "linked_type": "Project",
- "valid_from": "2021-01-01",
- "valid_to": "2021-01-01",
- "coupon_code": "DOWNTOWNTOUR",
- "redemption_count": 5,
- "project_id": 1024,
- "max_redemptions": 10,
- "expire_after": 1440,
- "timezone": "string",
- "tags": [
- "string"
], - "created_at": "2017-07-21T17:32:28Z",
- "updated_at": "2017-07-21T17:32:28Z"
}
{- "code": {
- "id": 1024,
- "status": "expired",
- "linked_id": 2048,
- "linked_type": "Project",
- "valid_from": "2021-01-01",
- "valid_to": "2021-01-01",
- "coupon_code": "DOWNTOWNTOUR",
- "redemption_count": 5,
- "project_id": 1024,
- "max_redemptions": 10,
- "expire_after": 1440,
- "timezone": "string",
- "tags": [
- "string"
], - "created_at": "2017-07-21T17:32:28Z",
- "updated_at": "2017-07-21T17:32:28Z"
}
}
id required | integer ID of the Code to retrieve |
Code
id | integer |
status | string Enum: "expired" "future" "valid" "invalid" "collection_unlocked" "current" "max_redemptions" "requires_email" |
linked_id | integer |
linked_type | string Enum: "Project" "Collection" |
string or null (Date) | |
string or null (Date) | |
coupon_code | string |
redemption_count | integer |
project_id | integer |
integer or null | |
integer or null | |
timezone | string (Timezone) Timezone as defined by TZInfo |
tags | Array of strings (TagList) Array of tags to help orgainse and search |
string or null (DateTime) | |
string or null (DateTime) |
{- "id": 1024,
- "status": "expired",
- "linked_id": 2048,
- "linked_type": "Project",
- "valid_from": "2021-01-01",
- "valid_to": "2021-01-01",
- "coupon_code": "DOWNTOWNTOUR",
- "redemption_count": 5,
- "project_id": 1024,
- "max_redemptions": 10,
- "expire_after": 1440,
- "timezone": "string",
- "tags": [
- "string"
], - "created_at": "2017-07-21T17:32:28Z",
- "updated_at": "2017-07-21T17:32:28Z"
}
{- "code": {
- "id": 1024,
- "status": "expired",
- "linked_id": 2048,
- "linked_type": "Project",
- "valid_from": "2021-01-01",
- "valid_to": "2021-01-01",
- "coupon_code": "DOWNTOWNTOUR",
- "redemption_count": 5,
- "project_id": 1024,
- "max_redemptions": 10,
- "expire_after": 1440,
- "timezone": "string",
- "tags": [
- "string"
], - "created_at": "2017-07-21T17:32:28Z",
- "updated_at": "2017-07-21T17:32:28Z"
}
}
page | integer Page number |
per_page | integer [ 1 .. 1000 ] Default: 30 Number of items per page, max 1000 |
sort_field | string Enum: "id" "name" "created_at" "updated_at" Field to sort by |
sort_direction | string Default: "ASC" Enum: "ASC" "DESC" Direction to sort by |
q | string Search query |
{- "meta": {
- "page": 1,
- "pages": 10,
- "per_page": 30,
- "count": 305
}, - "data": [
- {
- "id": 1024,
- "name": "Main Collection",
- "created_at": "2017-07-21T17:32:28Z",
- "updated_at": "2017-07-21T17:32:28Z"
}
]
}
id required | integer ID of the Collection to retrieve |
{- "collection": {
- "id": 1024,
- "name": "Main Collection",
- "created_at": "2017-07-21T17:32:28Z",
- "updated_at": "2017-07-21T17:32:28Z"
}
}
page | integer Page number |
per_page | integer [ 1 .. 1000 ] Default: 30 Number of items per page, max 1000 |
sort_field | string Enum: "id" "name" "created_at" "updated_at" Field to sort by |
sort_direction | string Default: "ASC" Enum: "ASC" "DESC" Direction to sort by |
q | string Search query |
{- "meta": {
- "page": 1,
- "pages": 10,
- "per_page": 30,
- "count": 305
}, - "data": [
- {
- "id": 1024,
- "name": "Main Media Item",
- "created_at": "2017-07-21T17:32:28Z",
- "updated_at": "2017-07-21T17:32:28Z"
}
]
}
id required | integer ID of the MediaItem to retrieve |
{- "media_item": {
- "id": 1024,
- "name": "Main Media Item",
- "created_at": "2017-07-21T17:32:28Z",
- "updated_at": "2017-07-21T17:32:28Z"
}
}
page | integer Page number |
per_page | integer [ 1 .. 1000 ] Default: 30 Number of items per page, max 1000 |
sort_field | string Enum: "id" "name" "created_at" "updated_at" Field to sort by |
sort_direction | string Default: "ASC" Enum: "ASC" "DESC" Direction to sort by |
q | string Search query |
{- "meta": {
- "page": 1,
- "pages": 10,
- "per_page": 30,
- "count": 305
}, - "data": [
- {
- "id": 1047,
- "name": "Main Project",
- "created_at": "2017-07-21T17:32:28Z",
- "updated_at": "2017-07-21T17:32:28Z"
}
]
}
id required | integer ID of the Project to retrieve |
{- "project": {
- "id": 1047,
- "name": "Main Project",
- "created_at": "2017-07-21T17:32:28Z",
- "updated_at": "2017-07-21T17:32:28Z"
}
}
page | integer Page number |
per_page | integer [ 1 .. 1000 ] Default: 30 Number of items per page, max 1000 |
sort_field | string Enum: "id" "name" "created_at" "updated_at" Field to sort by |
sort_direction | string Default: "ASC" Enum: "ASC" "DESC" Direction to sort by |
q | string Search query |
{- "meta": {
- "page": 1,
- "pages": 10,
- "per_page": 30,
- "count": 305
}, - "data": [
- {
- "id": 1047,
- "name": "Main Screen",
- "created_at": "2017-07-21T17:32:28Z",
- "updated_at": "2017-07-21T17:32:28Z"
}
]
}
id required | integer ID of the Screen to retrieve |
{- "screen": {
- "id": 1047,
- "name": "Main Screen",
- "created_at": "2017-07-21T17:32:28Z",
- "updated_at": "2017-07-21T17:32:28Z"
}
}
page | integer Page number |
per_page | integer [ 1 .. 1000 ] Default: 30 Number of items per page, max 1000 |
sort_field | string Enum: "id" "filename" "file_type" Field to sort by |
sort_direction | string Default: "ASC" Enum: "ASC" "DESC" Direction to sort by |
q | string Search query |
{- "meta": {
- "page": 1,
- "pages": 10,
- "per_page": 30,
- "count": 305
}, - "data": [
- {
- "id": 1047,
- "filename": "image.png",
- "status": "ready",
- "content_type": "image/png",
- "file_type": "animation",
- "file_subtype": "map",
- "file_size": 51344,
- "file_hash": "b228773e2f36eac2ef0512cd",
- "focal_point": [
- 0
], - "prefer_original": true,
- "width": 1024,
- "height": 768,
- "duration": 120,
- "map_url": {
}, - "created_at": "2017-07-21T17:32:28Z",
- "updated_at": "2017-07-21T17:32:28Z"
}
]
}
url required | string The S3 URL of the uploaded file |
subtype | string A hint for how to process the file. If not provided, the system will try to infer it from the file type |
focal_point | Array of numbers (FocalPoint) The focal point for image cropping, in the format 'x,y' where x and y are between 0 and 1 |
{- "job_id": "b228773e2f36eac2ef0512cd"
}
md5_hash required | string MD5 hash of the UploadedFile to retrieve |
{- "uploaded_file": {
- "id": 1047,
- "filename": "image.png",
- "status": "ready",
- "content_type": "image/png",
- "file_type": "animation",
- "file_subtype": "map",
- "file_size": 51344,
- "file_hash": "b228773e2f36eac2ef0512cd",
- "focal_point": [
- 0
], - "prefer_original": true,
- "width": 1024,
- "height": 768,
- "duration": 120,
- "map_url": {
}, - "created_at": "2017-07-21T17:32:28Z",
- "updated_at": "2017-07-21T17:32:28Z"
}
}
job_id required | string The job ID returned when the job was enqueued |
{- "at": 1,
- "percent_complete": 50,
- "message": "Processing image",
- "uploaded_file": {
- "id": 1047,
- "filename": "image.png",
- "status": "ready",
- "content_type": "image/png",
- "file_type": "animation",
- "file_subtype": "map",
- "file_size": 51344,
- "file_hash": "b228773e2f36eac2ef0512cd",
- "focal_point": [
- 0
], - "prefer_original": true,
- "width": 1024,
- "height": 768,
- "duration": 120,
- "map_url": {
}, - "created_at": "2017-07-21T17:32:28Z",
- "updated_at": "2017-07-21T17:32:28Z"
}
}
id required | integer ID of the UploadedFile to retrieve |
{- "uploaded_file": {
- "id": 1047,
- "filename": "image.png",
- "status": "ready",
- "content_type": "image/png",
- "file_type": "animation",
- "file_subtype": "map",
- "file_size": 51344,
- "file_hash": "b228773e2f36eac2ef0512cd",
- "focal_point": [
- 0
], - "prefer_original": true,
- "width": 1024,
- "height": 768,
- "duration": 120,
- "map_url": {
}, - "created_at": "2017-07-21T17:32:28Z",
- "updated_at": "2017-07-21T17:32:28Z"
}
}
id required | integer ID of the UploadedFile to update |
UploadedFileUpdate
focal_point | Array of numbers (FocalPoint) FocalPoint to indicate the area of interest in an image |
{- "focal_point": [
- 0
]
}
{- "uploaded_file": {
- "id": 1047,
- "filename": "image.png",
- "status": "ready",
- "content_type": "image/png",
- "file_type": "animation",
- "file_subtype": "map",
- "file_size": 51344,
- "file_hash": "b228773e2f36eac2ef0512cd",
- "focal_point": [
- 0
], - "prefer_original": true,
- "width": 1024,
- "height": 768,
- "duration": 120,
- "map_url": {
}, - "created_at": "2017-07-21T17:32:28Z",
- "updated_at": "2017-07-21T17:32:28Z"
}
}
id required | integer ID of the UploadedFile to update |
UploadedFileUpdate
focal_point | Array of numbers (FocalPoint) FocalPoint to indicate the area of interest in an image |
{- "focal_point": [
- 0
]
}
{- "uploaded_file": {
- "id": 1047,
- "filename": "image.png",
- "status": "ready",
- "content_type": "image/png",
- "file_type": "animation",
- "file_subtype": "map",
- "file_size": 51344,
- "file_hash": "b228773e2f36eac2ef0512cd",
- "focal_point": [
- 0
], - "prefer_original": true,
- "width": 1024,
- "height": 768,
- "duration": 120,
- "map_url": {
}, - "created_at": "2017-07-21T17:32:28Z",
- "updated_at": "2017-07-21T17:32:28Z"
}
}