Skip to main content
Records

Email 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": "Juliet Adams",
"email": [
{ "type": "work", "email": "juliet@acme.com" },
{ "type": "home", "email": "juliet.adams@acme.com" }
]
}
}'
Response
{
"record_id": 1,
"title": "Juliet Adams",
"fields": [
{
"field_id": 1,
"external_id": "name",
"label": "Name",
"type": "text",
"field_type": "single_text",
"values": [{ "value": "Juliet Adams" }]
},
{
"field_id": 2,
"external_id": "email",
"label": "Email",
"type": "email",
"field_type": "multi_email",
"values": [
{ "id": 100, "value": "juliet@acme.com", "type": "work" },
{ "id": 101, "value": "juliet.adams@acme.com", "type": "home" }
]
}
]
}
Request
curl https://api.tapeapp.com/v1/record/1 \
-H "Authorization: Bearer $TAPE_TOKEN"
Response
{
"record_id": 1,
"title": "Juliet Adams",
"fields": [
{
"field_id": 1,
"external_id": "name",
"label": "Name",
"type": "text",
"field_type": "single_text",
"values": [{ "value": "Juliet Adams" }]
},
{
"field_id": 2,
"external_id": "email",
"label": "Email",
"type": "email",
"field_type": "multi_email",
"values": [
{ "id": 100, "value": "juliet@acme.com", "type": "work" },
{ "id": 101, "value": "juliet.adams@acme.com", "type": "home" }
]
}
]
}
Request
curl -X PUT https://api.tapeapp.com/v1/record/1 \
-H "Authorization: Bearer $TAPE_TOKEN" \
-H "Content-Type: application/json" \
--data '{
"fields": {
"email": [
{ "id": 100, "type": "work", "email": "juliet.adams@acme.com" },
{ "type": "other", "email": "sales@acme.com" }
]
}
}'
Response
{
"record_id": 1,
"title": "Juliet Adams",
"fields": [
{
"field_id": 1,
"external_id": "name",
"label": "Name",
"type": "text",
"field_type": "single_text",
"values": [{ "value": "Juliet Adams" }]
},
{
"field_id": 2,
"external_id": "email",
"label": "Email",
"type": "email",
"field_type": "multi_email",
"values": [
{ "id": 100, "value": "juliet.adams@acme.com", "type": "work" },
{ "id": 102, "value": "sales@acme.com", "type": "other" }
]
}
]
}

Use an email field value to read and write the email addresses of a record.

The value of an email field is a list of email addresses in values. Each email address has an id, the address in value and a type label in type.

Email field value object
{
"field_id": 2,
"external_id": "email",
"label": "Email",
"type": "email",
"field_type": "multi_email",
"values": [
{
"id": 100,
"value": "juliet@acme.com",
"type": "work",
"created_at": "2026-11-11 10:15:00",
"created_at_utc": "2026-11-11 09:15:00",
"last_modified_at": "2026-11-11 10:15:00",
"last_modified_at_utc": "2026-11-11 09:15:00",
"created_by_user_id": 1,
"created_by_workflow_def_id": null,
"created_by_share_session_id": null,
"last_modified_by_user_id": 1,
"last_modified_by_workflow_def_id": null,
"last_modified_by_share_session_id": null
}
]
}

typestring

"email" for an email field.

Example value "email"

field_typestring

"multi_email".

Example value "multi_email"

values[].idnumber

ID of the email address. Send it with the email address in an update to keep the ID.

Example value 100

values[].valuestring

The email address.

Example value "juliet@acme.com"

values[].typestring

Type label: "work", "home", "other" or the text of a custom label of the field.

Example value "work"

values[].created_at, values[].last_modified_atstring

When the email address was added and last changed, in your timezone.

Example value "2026-11-11 10:15:00"

values[].created_at_utc, values[].last_modified_at_utcstring

The same times in UTC.

Example value "2026-11-11 09:15:00"

values[].created_by_user_id, values[].last_modified_by_user_idnumber or null

ID of the user who added or last changed the email address.

Example value 1

values[].created_by_workflow_def_id, values[].last_modified_by_workflow_def_idnumber or null

ID of the automation that added or last changed the email address.

Example value null

values[].created_by_share_session_id, values[].last_modified_by_share_session_idstring or null

Session ID (UUID) of an anonymous visitor who added or changed the email address through a shared link.

Example value null

Each field in a record response also contains the field's config. The examples on this page leave it out. They also leave out the times and author IDs of each email address.

Record creation​

Use the create record endpoint to set email addresses on 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": "Juliet Adams",
"email": [
{ "type": "work", "email": "juliet@acme.com" },
{ "type": "home", "email": "juliet.adams@acme.com" }
]
}
}'
Response
{
"record_id": 1,
"title": "Juliet Adams",
"fields": [
{
"field_id": 1,
"external_id": "name",
"label": "Name",
"type": "text",
"field_type": "single_text",
"values": [{ "value": "Juliet Adams" }]
},
{
"field_id": 2,
"external_id": "email",
"label": "Email",
"type": "email",
"field_type": "multi_email",
"values": [
{ "id": 100, "value": "juliet@acme.com", "type": "work" },
{ "id": 101, "value": "juliet.adams@acme.com", "type": "home" }
]
}
]
}

The example sets two email addresses in the "Email" field (ID 2, type multi_email, slug email) of a new contact.

General behavior

  • Use the field ID or the field's slug (returned as external_id in records) as the key in fields.
  • Send an array of email addresses. Each one is an object { "email": "...", "type": "..." } or a string. value works in place of email.
  • Tape reads type case-insensitively. Without type, or with a type Tape doesn't know, the email address gets the label work.
  • A type that matches the text of a custom label of the field (not case-sensitive) gets that label.
  • If the field's label_setting is "none", Tape ignores type.
  • Tape removes spaces at the start and the end of each email address and skips empty ones.
  • Tape doesn't check the format of an email address.
  • A required email field needs at least one email address on a new record. An empty array [] counts as missing.

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

Errors

  • A type that matches more than one custom label of the field returns 400. Use a unique label.

See Errors for all error codes.

Record retrieval​

Use the retrieve record endpoint to read the email addresses 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": "Juliet Adams",
"fields": [
{
"field_id": 1,
"external_id": "name",
"label": "Name",
"type": "text",
"field_type": "single_text",
"values": [{ "value": "Juliet Adams" }]
},
{
"field_id": 2,
"external_id": "email",
"label": "Email",
"type": "email",
"field_type": "multi_email",
"values": [
{ "id": 100, "value": "juliet@acme.com", "type": "work" },
{ "id": 101, "value": "juliet.adams@acme.com", "type": "home" }
]
}
]
}

General behavior

  • An email address without a label shows "type": "work". This includes all email addresses of a field with "label_setting": "none".

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 email addresses 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": {
"email": [
{ "id": 100, "type": "work", "email": "juliet.adams@acme.com" },
{ "type": "other", "email": "sales@acme.com" }
]
}
}'
Response
{
"record_id": 1,
"title": "Juliet Adams",
"fields": [
{
"field_id": 1,
"external_id": "name",
"label": "Name",
"type": "text",
"field_type": "single_text",
"values": [{ "value": "Juliet Adams" }]
},
{
"field_id": 2,
"external_id": "email",
"label": "Email",
"type": "email",
"field_type": "multi_email",
"values": [
{ "id": 100, "value": "juliet.adams@acme.com", "type": "work" },
{ "id": 102, "value": "sales@acme.com", "type": "other" }
]
}
]
}

The example changes the work email address with ID 100, removes the home email address and adds a new one with the label other.

General behavior

  • The new list replaces the old list. Tape removes email addresses that aren't in the request.
  • An email address sent with its id keeps that ID. Tape removes an entry with only id. An email address without id becomes a new one.
  • To clear the field, send null or an empty array []. This also works for a required email field.
  • Fields that aren't in the request keep their values.
Request: clear the field
{
"fields": {
"email": 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 these errors:

  • An email address that isn't a string, like { "email": 5 }, returns 400 with validation and the message Invalid input for email field with ID ….
  • An entry that's null, or an object without email, value, type or id, returns the same error.

See Errors for all error codes.

Next steps​