Skip to main content
Records

Image field value

Request
curl -X POST https://api.tapeapp.com/v1/record/app/1 \
-H "Authorization: Bearer $TAPE_TOKEN" \
-H "Content-Type: application/json" \
--data '{
"fields": {
"name": "12 Harbor View, Unit 4",
"photos": ["temporary-file-1", "temporary-file-2"]
}
}'
Response
{
"record_id": 1,
"title": "12 Harbor View, Unit 4",
"fields": [
{
"field_id": 1,
"external_id": "name",
"label": "Name",
"type": "text",
"field_type": "single_text",
"values": [{ "value": "12 Harbor View, Unit 4" }]
},
{
"field_id": 3,
"external_id": "photos",
"label": "Photos",
"type": "file",
"field_type": "multi_image",
"values": [
{
"value": {
"file_id": 100,
"name": "living-room.jpg",
"size": 412000,
"mimetype": "image/jpeg"
}
},
{
"value": {
"file_id": 101,
"name": "kitchen.jpg",
"size": 388000,
"mimetype": "image/jpeg"
}
}
]
}
]
}
Request
curl https://api.tapeapp.com/v1/record/1 \
-H "Authorization: Bearer $TAPE_TOKEN"
Response
{
"record_id": 1,
"title": "12 Harbor View, Unit 4",
"fields": [
{
"field_id": 1,
"external_id": "name",
"label": "Name",
"type": "text",
"field_type": "single_text",
"values": [{ "value": "12 Harbor View, Unit 4" }]
},
{
"field_id": 3,
"external_id": "photos",
"label": "Photos",
"type": "file",
"field_type": "multi_image",
"values": [
{
"value": {
"file_id": 100,
"name": "living-room.jpg",
"size": 412000,
"mimetype": "image/jpeg"
}
},
{
"value": {
"file_id": 101,
"name": "kitchen.jpg",
"size": 388000,
"mimetype": "image/jpeg"
}
}
]
}
]
}
Request
curl -X PUT https://api.tapeapp.com/v1/record/1 \
-H "Authorization: Bearer $TAPE_TOKEN" \
-H "Content-Type: application/json" \
--data '{
"fields": {
"photos": ["temporary-file-3", 101]
}
}'
Response
{
"record_id": 1,
"title": "12 Harbor View, Unit 4",
"fields": [
{
"field_id": 1,
"external_id": "name",
"label": "Name",
"type": "text",
"field_type": "single_text",
"values": [{ "value": "12 Harbor View, Unit 4" }]
},
{
"field_id": 3,
"external_id": "photos",
"label": "Photos",
"type": "file",
"field_type": "multi_image",
"values": [
{
"value": {
"file_id": 101,
"name": "kitchen.jpg",
"size": 388000,
"mimetype": "image/jpeg"
}
},
{
"value": {
"file_id": 102,
"name": "terrace.jpg",
"size": 455000,
"mimetype": "image/jpeg"
}
}
]
}
]
}

Use an image field value to read and write the images of a record.

Each value of an image field is one image. The multi_image field holds one or more images. Image fields work like attachment fields, but accept only images.

Image field value object
{
"field_id": 3,
"external_id": "photos",
"label": "Photos",
"type": "file",
"field_type": "multi_image",
"values": [
{
"value": {
"file_id": 100,
"name": "living-room.jpg",
"size": 412000,
"mimetype": "image/jpeg",
"download_url": "https://s3.eu-central-1.amazonaws.com/tape-attachments/4be1c09a7d2f8e63b5a0f1d29c7e48?Expires=1772442000&Signature=VzrbvlfI35hp4iU7jMa%2BK%2FnutPU%3D",
"view_url": "https://s3.eu-central-1.amazonaws.com/tape-attachments/4be1c09a7d2f8e63b5a0f1d29c7e48?Expires=1772442000&Signature=Hk2c8vQx1pLm9sTnW4yR%2FaB7dEo%3D",
"link": "https://s3.eu-central-1.amazonaws.com/tape-attachments/4be1c09a7d2f8e63b5a0f1d29c7e48?Expires=1772442000&Signature=VzrbvlfI35hp4iU7jMa%2BK%2FnutPU%3D",
"thumbnail": "5501",
"created_by": null,
"created_on": "2026-03-02 09:15:00",
"created_on_utc": "2026-03-02 08:15:00",
"last_modified_on": "2026-03-02 09:15:00",
"last_modified_on_utc": "2026-03-02 08:15:00"
}
}
]
}

typestring

"file" for the image field.

Example value "file"

field_typestring

"multi_image".

Example value "multi_image"

values[].value.file_idnumber

ID of the image in this field.

Example value 100

values[].value.namestring

File name.

Example value "living-room.jpg"

values[].value.sizenumber

File size in bytes.

Example value 412000

values[].value.mimetypestring

Media type of the image.

Example value "image/jpeg"

values[].value.download_urlstring

Signed URL that downloads the image.

values[].value.view_urlstring

Signed URL that opens the image in the browser.

values[].value.linkstring

Same as download_url, for older integrations. Use download_url instead.

values[].value.thumbnailstring

ID of the image's thumbnail. Appears only if Tape created a thumbnail.

Example value "5501"

values[].value.created_bynull

Not filled. The value is null.

Example value null

values[].value.created_onstring

When the image was added, in your timezone.

Example value "2026-03-02 09:15:00"

values[].value.created_on_utcstring

When the image was added, in UTC.

Example value "2026-03-02 08:15:00"

values[].value.last_modified_onstring

When the image last changed, in your timezone.

Example value "2026-03-02 09:15:00"

values[].value.last_modified_on_utcstring

When the image last changed, in UTC.

Example value "2026-03-02 08:15:00"

The signed URLs expire after some hours. Retrieve the record again to get new ones.

Each field in a record response also contains the field's config. The examples on this page leave it out. They also shorten each image to file_id, name, size and mimetype.

Record creation​

Use the create record endpoint to add images to a new record.

POST/v1/record/app/{app_id}api.tapeapp.com
Request
curl -X POST https://api.tapeapp.com/v1/record/app/1 \
-H "Authorization: Bearer $TAPE_TOKEN" \
-H "Content-Type: application/json" \
--data '{
"fields": {
"name": "12 Harbor View, Unit 4",
"photos": ["temporary-file-1", "temporary-file-2"]
}
}'
Response
{
"record_id": 1,
"title": "12 Harbor View, Unit 4",
"fields": [
{
"field_id": 1,
"external_id": "name",
"label": "Name",
"type": "text",
"field_type": "single_text",
"values": [{ "value": "12 Harbor View, Unit 4" }]
},
{
"field_id": 3,
"external_id": "photos",
"label": "Photos",
"type": "file",
"field_type": "multi_image",
"values": [
{
"value": {
"file_id": 100,
"name": "living-room.jpg",
"size": 412000,
"mimetype": "image/jpeg"
}
},
{
"value": {
"file_id": 101,
"name": "kitchen.jpg",
"size": 388000,
"mimetype": "image/jpeg"
}
}
]
}
]
}

First, upload the images. Each upload returns a temporary file ID like temporary-file-1. Then send these IDs in the field value.

The example creates the property "12 Harbor View, Unit 4" and sets the "Photos" field (ID 3, type multi_image, slug photos).

General behavior

  • Use the field ID or the field's slug (returned as external_id in records) as the key in fields.
  • A field value accepts these file IDs:
    • Temporary file IDs from your own uploads, like "temporary-file-1".
    • File IDs of comment and reply attachments, like "comment-file-12" or "reply-file-7". See Record comment.
    • The file_id of a file in another image or attachment field, as a number. Tape copies the file, and the copy gets a new file_id.
  • Tape also accepts objects like { "file_id": "temporary-file-1" } or { "value": "temporary-file-1" }, and arrays of these.
  • Tape accepts images of type jpeg, jpg, png, gif, tiff, bmp and webp. It also accepts the media type image/svg, but not image/svg+xml, the usual type of SVG files.
  • Tape skips files from attachment fields that aren't images.

Requirements: records:edit. Works with a personal access token, an OAuth access token or a user API key.

Errors

  • An uploaded file or a comment or reply attachment that isn't an image returns 400.
  • A temporary file ID that you didn't upload yourself returns 403.

See Errors for all error codes.

Record retrieval​

Use the retrieve record endpoint to read the images of a record.

GET/v1/record/{record_id}api.tapeapp.com
Request
curl https://api.tapeapp.com/v1/record/1 \
-H "Authorization: Bearer $TAPE_TOKEN"
Response
{
"record_id": 1,
"title": "12 Harbor View, Unit 4",
"fields": [
{
"field_id": 1,
"external_id": "name",
"label": "Name",
"type": "text",
"field_type": "single_text",
"values": [{ "value": "12 Harbor View, Unit 4" }]
},
{
"field_id": 3,
"external_id": "photos",
"label": "Photos",
"type": "file",
"field_type": "multi_image",
"values": [
{
"value": {
"file_id": 100,
"name": "living-room.jpg",
"size": 412000,
"mimetype": "image/jpeg"
}
},
{
"value": {
"file_id": 101,
"name": "kitchen.jpg",
"size": 388000,
"mimetype": "image/jpeg"
}
}
]
}
]
}

Requirements: records:read. Works with a personal access token, an OAuth access token or a user API key.

Record update​

Use the update record endpoint to change the images of a record.

PUT/v1/record/{record_id}api.tapeapp.com
Request
curl -X PUT https://api.tapeapp.com/v1/record/1 \
-H "Authorization: Bearer $TAPE_TOKEN" \
-H "Content-Type: application/json" \
--data '{
"fields": {
"photos": ["temporary-file-3", 101]
}
}'
Response
{
"record_id": 1,
"title": "12 Harbor View, Unit 4",
"fields": [
{
"field_id": 1,
"external_id": "name",
"label": "Name",
"type": "text",
"field_type": "single_text",
"values": [{ "value": "12 Harbor View, Unit 4" }]
},
{
"field_id": 3,
"external_id": "photos",
"label": "Photos",
"type": "file",
"field_type": "multi_image",
"values": [
{
"value": {
"file_id": 101,
"name": "kitchen.jpg",
"size": 388000,
"mimetype": "image/jpeg"
}
},
{
"value": {
"file_id": 102,
"name": "terrace.jpg",
"size": 455000,
"mimetype": "image/jpeg"
}
}
]
}
]
}

The example adds a new upload to the "Photos" field of the property with ID 1 and keeps the image with ID 101. The image with ID 100 isn't in the request, so Tape removes it from the field.

General behavior

  • The images in the request replace the old images. To keep an image, send its file_id again. An image that's already in the field keeps its file_id.
  • Tape lists the images in the order they were added, not in the order of the request. A kept image comes before a new one.
  • To clear the field, send null or an empty array [].
  • You can't clear a required field. The request returns 400.
  • Fields that aren't in the request keep their values.
Request: clear the field
{
"fields": {
"photos": null
}
}

A cleared field isn't in the fields of the response.

Requirements: records:edit. Works with a personal access token, an OAuth access token or a user API key.

Errors

Same errors as under Record creation. An update also returns this error:

  • A numeric file_id that isn't a positive whole number, like 1.5, returns 400 with validation and the message … Expected a valid existing image ID …. A number in a string, like "100", returns the same error.

See Errors for all error codes.

Next steps​