Phone field
- cURL
- JSON
curl -X POST https://api.tapeapp.com/v1/app/ \
-H "Authorization: Bearer $TAPE_TOKEN" \
-H "Content-Type: application/json" \
--data '{
"workspace_id": 1,
"name": "Leads",
"item_name": "Lead",
"fields": [
{
"field_type": "single_text",
"config": {
"label": "Name",
"description": "The full name of the lead.",
"required": true
}
},
{
"field_type": "multi_phone",
"config": {
"label": "Phone",
"description": "The phone numbers of the lead.",
"required": false,
"settings": {
"only_allow_single_entry": false,
"call_link_scheme": "tel"
}
}
}
]
}'
{
"workspace_id": 1,
"name": "Leads",
"item_name": "Lead",
"fields": [
{
"field_type": "single_text",
"config": {
"label": "Name",
"description": "The full name of the lead.",
"required": true
}
},
{
"field_type": "multi_phone",
"config": {
"label": "Phone",
"description": "The phone numbers of the lead.",
"required": false,
"settings": {
"only_allow_single_entry": false,
"call_link_scheme": "tel"
}
}
}
]
}
{
"app_id": 1,
"workspace_id": 1,
"slug": "leads",
"external_id": "leads",
"name": "Leads",
"record_name": "Lead",
"item_name": "Lead",
"type": "database",
"config": {
"item_name": "Lead",
"name": "Leads"
},
"fields": [
{
"field_id": 1,
"external_id": "name",
"slug": "name",
"label": "Name",
"type": "text",
"field_type": "single_text",
"config": {
"label": "Name",
"slug": "name",
"external_id": "name",
"description": "The full name of the lead.",
"show_description": true,
"required": true,
"always_hidden": false,
"hidden_if_empty": false,
"primary": true,
"settings": {
"formatted": false,
"format": "plain"
}
}
},
{
"field_id": 3,
"external_id": "phone",
"slug": "phone",
"label": "Phone",
"type": "phone",
"field_type": "multi_phone",
"config": {
"label": "Phone",
"slug": "phone",
"external_id": "phone",
"description": "The phone numbers of the lead.",
"show_description": false,
"required": false,
"always_hidden": false,
"hidden_if_empty": false,
"primary": false,
"settings": {
"call_link_scheme": "tel",
"only_allow_single_entry": false,
"label_setting": "default"
}
}
}
]
}
- cURL
- JSON
curl -X PUT https://api.tapeapp.com/v1/app/1 \
-H "Authorization: Bearer $TAPE_TOKEN" \
-H "Content-Type: application/json" \
--data '{
"fields": [
{
"field_id": 3,
"config": {
"label": "Phone",
"description": "The phone numbers of the lead.",
"required": false,
"settings": {
"only_allow_single_entry": false,
"call_link_scheme": "callto"
}
}
}
]
}'
{
"fields": [
{
"field_id": 3,
"config": {
"label": "Phone",
"description": "The phone numbers of the lead.",
"required": false,
"settings": {
"only_allow_single_entry": false,
"call_link_scheme": "callto"
}
}
}
]
}
{
"app_id": 1,
"workspace_id": 1,
"slug": "leads",
"external_id": "leads",
"name": "Leads",
"record_name": "Lead",
"item_name": "Lead",
"type": "database",
"config": {
"item_name": "Lead",
"name": "Leads"
},
"fields": [
{
"field_id": 1,
"external_id": "name",
"slug": "name",
"label": "Name",
"type": "text",
"field_type": "single_text",
"config": {
"label": "Name",
"slug": "name",
"external_id": "name",
"description": "The full name of the lead.",
"show_description": true,
"required": true,
"always_hidden": false,
"hidden_if_empty": false,
"primary": true,
"settings": {
"formatted": false,
"format": "plain"
}
}
},
{
"field_id": 3,
"external_id": "phone",
"slug": "phone",
"label": "Phone",
"type": "phone",
"field_type": "multi_phone",
"config": {
"label": "Phone",
"slug": "phone",
"external_id": "phone",
"description": "The phone numbers of the lead.",
"show_description": true,
"required": false,
"always_hidden": false,
"hidden_if_empty": false,
"primary": false,
"settings": {
"call_link_scheme": "callto",
"only_allow_single_entry": false,
"label_setting": "default"
}
}
}
]
}
Use a phone field to store one or more phone numbers in a record.
Tape has one phone field type: multi_phone is the Phone field. It holds one or more phone numbers, each with a type label such as mobile or work.
A phone field has the common field properties and its own settings. To read and write the phone numbers of a record, see Phone field value.
{
"field_id": 3,
"external_id": "phone",
"slug": "phone",
"label": "Phone",
"type": "phone",
"field_type": "multi_phone",
"config": {
"label": "Phone",
"slug": "phone",
"external_id": "phone",
"description": "The phone numbers of the lead.",
"show_description": true,
"required": false,
"always_hidden": false,
"hidden_if_empty": false,
"primary": false,
"settings": {
"call_link_scheme": "tel",
"only_allow_single_entry": false,
"label_setting": "default"
}
}
}
typestring
"phone" for a phone field.
field_typestring
"multi_phone".
config.settings.call_link_schemestring
The link Tape opens when users select a phone number: "tel" or "callto". Default: "tel".
config.settings.only_allow_single_entryboolean
If true, users can add only one phone number in Tape. The API still accepts more than one. Default: false.
config.settings.label_setting (read-only)string
Which type labels the field offers: "default" (mobile, work, home, main, other), "extended" (adds work_fax, home_fax and pager), "custom_only" (only the field's own labels) or "none". With "none", Tape ignores a type you send with a field value.
| Property | Type | Description | Example value |
|---|---|---|---|
type | string | "phone" for a phone field. | "phone" |
field_type | string | "multi_phone". | "multi_phone" |
config.settings.call_link_scheme | string | The link Tape opens when users select a phone number: "tel" or "callto". Default: "tel". | "tel" |
config.settings.only_allow_single_entry | boolean | If true, users can add only one phone number in Tape. The API still accepts more than one. Default: false. | false |
config.settings.label_setting (read-only) | string | Which type labels the field offers: "default" (mobile, work, home, main, other), "extended" (adds work_fax, home_fax and pager), "custom_only" (only the field's own labels) or "none". With "none", Tape ignores a type you send with a field value. | "default" |
You can't set label_setting through the API. Choose the labels of a phone field in Tape.

App creation
Use the create app endpoint to create phone fields together with a new app.
/v1/appapi.tapeapp.com- cURL
- JSON
curl -X POST https://api.tapeapp.com/v1/app/ \
-H "Authorization: Bearer $TAPE_TOKEN" \
-H "Content-Type: application/json" \
--data '{
"workspace_id": 1,
"name": "Leads",
"item_name": "Lead",
"fields": [
{
"field_type": "single_text",
"config": {
"label": "Name",
"description": "The full name of the lead.",
"required": true
}
},
{
"field_type": "multi_phone",
"config": {
"label": "Phone",
"description": "The phone numbers of the lead.",
"required": false,
"settings": {
"only_allow_single_entry": false,
"call_link_scheme": "tel"
}
}
}
]
}'
{
"workspace_id": 1,
"name": "Leads",
"item_name": "Lead",
"fields": [
{
"field_type": "single_text",
"config": {
"label": "Name",
"description": "The full name of the lead.",
"required": true
}
},
{
"field_type": "multi_phone",
"config": {
"label": "Phone",
"description": "The phone numbers of the lead.",
"required": false,
"settings": {
"only_allow_single_entry": false,
"call_link_scheme": "tel"
}
}
}
]
}
{
"app_id": 1,
"workspace_id": 1,
"slug": "leads",
"external_id": "leads",
"name": "Leads",
"record_name": "Lead",
"item_name": "Lead",
"type": "database",
"config": {
"item_name": "Lead",
"name": "Leads"
},
"fields": [
{
"field_id": 1,
"external_id": "name",
"slug": "name",
"label": "Name",
"type": "text",
"field_type": "single_text",
"config": {
"label": "Name",
"slug": "name",
"external_id": "name",
"description": "The full name of the lead.",
"show_description": true,
"required": true,
"always_hidden": false,
"hidden_if_empty": false,
"primary": true,
"settings": {
"formatted": false,
"format": "plain"
}
}
},
{
"field_id": 3,
"external_id": "phone",
"slug": "phone",
"label": "Phone",
"type": "phone",
"field_type": "multi_phone",
"config": {
"label": "Phone",
"slug": "phone",
"external_id": "phone",
"description": "The phone numbers of the lead.",
"show_description": false,
"required": false,
"always_hidden": false,
"hidden_if_empty": false,
"primary": false,
"settings": {
"call_link_scheme": "tel",
"only_allow_single_entry": false,
"label_setting": "default"
}
}
}
]
}
The example creates a leads app in the workspace with ID 1. The app gets a single_text field "Name" and a multi_phone field "Phone".
Find the workspace ID with Retrieve workspaces.
General behavior
- Without
call_link_scheme, the field uses"tel". Withoutonly_allow_single_entry, it'sfalse. - A new phone field offers the default labels (
"label_setting": "default"). - Without
primary, Tape makes the first field of the request the primary field. Here, that's "Name". - A new phone field doesn't show its
descriptionas help text yet (show_descriptionisfalse). To show it, send thedescriptionagain in a field update.
Requirements: apps:edit, and a workspace role that may edit apps in the workspace. Works with a personal access token, an OAuth access token or a user API key.
Errors
- A
call_link_schemeother than"tel"or"callto"returns400.
App update
Use the update app endpoint to create new phone fields in an app or to change existing ones.
/v1/app/{appId}api.tapeapp.com- cURL
- JSON
curl -X PUT https://api.tapeapp.com/v1/app/1 \
-H "Authorization: Bearer $TAPE_TOKEN" \
-H "Content-Type: application/json" \
--data '{
"fields": [
{
"field_id": 3,
"config": {
"label": "Phone",
"description": "The phone numbers of the lead.",
"required": false,
"settings": {
"only_allow_single_entry": false,
"call_link_scheme": "callto"
}
}
}
]
}'
{
"fields": [
{
"field_id": 3,
"config": {
"label": "Phone",
"description": "The phone numbers of the lead.",
"required": false,
"settings": {
"only_allow_single_entry": false,
"call_link_scheme": "callto"
}
}
}
]
}
{
"app_id": 1,
"workspace_id": 1,
"slug": "leads",
"external_id": "leads",
"name": "Leads",
"record_name": "Lead",
"item_name": "Lead",
"type": "database",
"config": {
"item_name": "Lead",
"name": "Leads"
},
"fields": [
{
"field_id": 1,
"external_id": "name",
"slug": "name",
"label": "Name",
"type": "text",
"field_type": "single_text",
"config": {
"label": "Name",
"slug": "name",
"external_id": "name",
"description": "The full name of the lead.",
"show_description": true,
"required": true,
"always_hidden": false,
"hidden_if_empty": false,
"primary": true,
"settings": {
"formatted": false,
"format": "plain"
}
}
},
{
"field_id": 3,
"external_id": "phone",
"slug": "phone",
"label": "Phone",
"type": "phone",
"field_type": "multi_phone",
"config": {
"label": "Phone",
"slug": "phone",
"external_id": "phone",
"description": "The phone numbers of the lead.",
"show_description": true,
"required": false,
"always_hidden": false,
"hidden_if_empty": false,
"primary": false,
"settings": {
"call_link_scheme": "callto",
"only_allow_single_entry": false,
"label_setting": "default"
}
}
}
]
}
The example changes the call link of the "Phone" field (ID 3) of the leads app to callto.
Find the app ID and the field IDs in the Developer view of the app.
General behavior
- A field with
field_idupdates that field. A field withoutfield_idcreates a new field and needs afield_type. - Send
call_link_schemewith every update of a phone field. Without it, Tape sets the call link back to"tel". - Without
only_allow_single_entry, the setting stays as it is. - Send
required,always_hidden,hidden_if_emptyanddescriptionwith every field you update. Tape sets left-out switches tofalseand hides the help text withoutdescription. See Create and update fields. - Fields that aren't in the request stay unchanged.
Requirements: apps:edit, and Full access to the app. Works with a personal access token, an OAuth access token or a user API key.
Errors
- Every field you update needs
config.label, even if the label stays the same. Without it, Tape rejects the request with400andinput_validation. The message reads, for example,Invalid input: data/fields/0/config must have required property 'label'. - A
call_link_schemeother than"tel"or"callto"returns400.