---
updatedAt: 2026-06-12T13:19:10.000Z
agentTools:
  projectIndex: https://developers.superchat.com/llms.txt
---

# Update a contact

Updates a contact in your Superchat workspace.

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "components": {
    "schemas": {
      "ContactAttributeType": {
        "type": "string",
        "enum": [
          "number",
          "text",
          "datetime",
          "dateonly",
          "single_select",
          "multi_select"
        ]
      },
      "Instant": {
        "type": "string",
        "format": "date-time",
        "example": "2022-03-10T16:15:50Z"
      },
      "PAContactDTO": {
        "type": "object",
        "required": [
          "id",
          "first_name",
          "last_name",
          "gender",
          "handles",
          "custom_attributes",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "id": {
            "type": "string",
            "description": "The unique identifier of the contact"
          },
          "first_name": {
            "type": [
              "string",
              "null"
            ],
            "description": "The first name of the contact"
          },
          "last_name": {
            "type": [
              "string",
              "null"
            ],
            "description": "The last name of the contact"
          },
          "gender": {
            "description": "The gender of the contact",
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "male",
              "female",
              "diverse",
              "unknown",
              null
            ]
          },
          "handles": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PAContactHandleDTO"
            },
            "description": "The contact handles of this contact"
          },
          "custom_attributes": {
            "type": "array",
            "items": {
              "oneOf": [
                {
                  "$ref": "#/components/schemas/CONTACT_ATTRIBUTE_VALUE_TEXT"
                },
                {
                  "$ref": "#/components/schemas/CONTACT_ATTRIBUTE_VALUE_NUMBER"
                },
                {
                  "$ref": "#/components/schemas/CONTACT_ATTRIBUTE_VALUE_DATE_ONLY"
                },
                {
                  "$ref": "#/components/schemas/CONTACT_ATTRIBUTE_VALUE_DATE_TIME"
                },
                {
                  "$ref": "#/components/schemas/CONTACT_ATTRIBUTE_VALUE_SINGLE_SELECT"
                },
                {
                  "$ref": "#/components/schemas/CONTACT_ATTRIBUTE_VALUE_MULTI_SELECT"
                }
              ],
              "discriminator": {
                "propertyName": "type",
                "mapping": {
                  "text": "#/components/schemas/CONTACT_ATTRIBUTE_VALUE_TEXT",
                  "number": "#/components/schemas/CONTACT_ATTRIBUTE_VALUE_NUMBER",
                  "dateonly": "#/components/schemas/CONTACT_ATTRIBUTE_VALUE_DATE_ONLY",
                  "datetime": "#/components/schemas/CONTACT_ATTRIBUTE_VALUE_DATE_TIME",
                  "single_select": "#/components/schemas/CONTACT_ATTRIBUTE_VALUE_SINGLE_SELECT",
                  "multi_select": "#/components/schemas/CONTACT_ATTRIBUTE_VALUE_MULTI_SELECT"
                }
              }
            },
            "description": "The contact attributes of this contact"
          },
          "url": {
            "type": "string",
            "description": "The URL of the contact resource"
          },
          "created_at": {
            "description": "The UTC datetime timestamp when the contact was created",
            "type": "string",
            "allOf": [
              {
                "$ref": "#/components/schemas/Instant"
              }
            ]
          },
          "updated_at": {
            "description": "The UTC datetime timestamp when the contact was last updated",
            "type": "string",
            "allOf": [
              {
                "$ref": "#/components/schemas/Instant"
              }
            ]
          }
        }
      },
      "PAContactHandleDTO": {
        "type": "object",
        "required": [
          "id",
          "type",
          "value"
        ],
        "properties": {
          "id": {
            "type": "string",
            "description": "The unique identifier of the contact handle"
          },
          "type": {
            "description": "The type of the contact handle",
            "type": "string",
            "allOf": [
              {
                "$ref": "#/components/schemas/PAContactHandleResponseType"
              }
            ]
          },
          "value": {
            "type": "string",
            "description": "The phone number, email address or username stored in this contact handle"
          }
        }
      },
      "PAContactHandleResponseType": {
        "type": "string",
        "enum": [
          "phone",
          "mail",
          "facebook_messenger",
          "instagram",
          "telegram",
          "live_chat",
          "google_business_messaging",
          "whats_app_username"
        ]
      },
      "PAUpdateContactDTO": {
        "type": "object",
        "required": [
          "first_name",
          "last_name",
          "gender"
        ],
        "properties": {
          "first_name": {
            "type": [
              "string",
              "null"
            ],
            "description": "The first name of the contact"
          },
          "last_name": {
            "type": [
              "string",
              "null"
            ],
            "description": "The last name of the contact"
          },
          "gender": {
            "description": "The gender of the contact",
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "male",
              "female",
              "diverse",
              "unknown",
              null
            ]
          },
          "handles": {
            "type": [
              "array",
              "null"
            ],
            "items": {
              "$ref": "#/components/schemas/PAWriteContactHandleDTO"
            },
            "description": "The full list of contact handles that should remain on this contact"
          },
          "custom_attributes": {
            "type": [
              "array",
              "null"
            ],
            "items": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/WRITE_CONTACT_ATTRIBUTE_DATE_ONLY"
                },
                {
                  "$ref": "#/components/schemas/WRITE_CONTACT_ATTRIBUTE_DATE_TIME"
                },
                {
                  "$ref": "#/components/schemas/WRITE_CONTACT_ATTRIBUTE_MULTI_SELECT"
                },
                {
                  "$ref": "#/components/schemas/WRITE_CONTACT_ATTRIBUTE_NUMBER"
                },
                {
                  "$ref": "#/components/schemas/WRITE_CONTACT_ATTRIBUTE_SINGLE_SELECT"
                },
                {
                  "$ref": "#/components/schemas/WRITE_CONTACT_ATTRIBUTE_STRING"
                }
              ]
            },
            "description": "The full list of custom attribute values that should remain on this contact"
          }
        }
      },
      "PAWriteContactHandleDTO": {
        "type": "object",
        "required": [
          "id",
          "value"
        ],
        "properties": {
          "id": {
            "type": [
              "string",
              "null"
            ],
            "description": "The unique identifier of an existing contact handle. Leave null to create a new handle"
          },
          "type": {
            "type": "string",
            "description": "The type of contact handle",
            "enum": [
              "mail",
              "phone"
            ]
          },
          "value": {
            "type": "string",
            "description": "The phone number, email address or username for this contact handle"
          }
        }
      },
      "PublicAPIExceptionError": {
        "type": "object",
        "properties": {
          "title": {
            "type": [
              "string",
              "null"
            ]
          },
          "detail": {
            "type": [
              "string",
              "null"
            ]
          },
          "url": {
            "type": [
              "string",
              "null"
            ]
          },
          "docs": {
            "type": [
              "string",
              "null"
            ]
          },
          "status_code": {
            "type": "integer"
          }
        },
        "required": [
          "status_code"
        ]
      },
      "PublicAPIExceptionResponse": {
        "type": "object",
        "properties": {
          "errors": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PublicAPIExceptionError"
            }
          }
        },
        "required": [
          "errors"
        ]
      },
      "CONTACT_ATTRIBUTE_VALUE_TEXT": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "The unique identifier of the contact attribute"
          },
          "name": {
            "type": "string",
            "description": "The name of the contact attribute"
          },
          "type": {
            "$ref": "#/components/schemas/ContactAttributeType"
          },
          "url": {
            "type": "string",
            "description": "The URL of the contact attribute resource"
          },
          "value": {
            "type": "string",
            "description": "The text value of the contact attribute"
          }
        },
        "required": [
          "id",
          "name",
          "url",
          "value"
        ]
      },
      "CONTACT_ATTRIBUTE_VALUE_NUMBER": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "The unique identifier of the contact attribute"
          },
          "name": {
            "type": "string",
            "description": "The name of the contact attribute"
          },
          "type": {
            "$ref": "#/components/schemas/ContactAttributeType"
          },
          "url": {
            "type": "string",
            "description": "The URL of the contact attribute resource"
          },
          "value": {
            "type": "number",
            "format": "double",
            "description": "The numeric value of the contact attribute"
          }
        },
        "required": [
          "id",
          "name",
          "url",
          "value"
        ]
      },
      "CONTACT_ATTRIBUTE_VALUE_DATE_ONLY": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "The unique identifier of the contact attribute"
          },
          "name": {
            "type": "string",
            "description": "The name of the contact attribute"
          },
          "type": {
            "$ref": "#/components/schemas/ContactAttributeType"
          },
          "url": {
            "type": "string",
            "description": "The URL of the contact attribute resource"
          },
          "value": {
            "type": "string",
            "format": "date",
            "description": "The date value of the contact attribute"
          }
        },
        "required": [
          "id",
          "name",
          "url",
          "value"
        ]
      },
      "CONTACT_ATTRIBUTE_VALUE_DATE_TIME": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "The unique identifier of the contact attribute"
          },
          "name": {
            "type": "string",
            "description": "The name of the contact attribute"
          },
          "type": {
            "$ref": "#/components/schemas/ContactAttributeType"
          },
          "url": {
            "type": "string",
            "description": "The URL of the contact attribute resource"
          },
          "value": {
            "type": "string",
            "format": "date-time",
            "description": "The datetime value of the contact attribute"
          }
        },
        "required": [
          "id",
          "name",
          "url",
          "value"
        ]
      },
      "CONTACT_ATTRIBUTE_VALUE_SINGLE_SELECT": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "The unique identifier of the contact attribute"
          },
          "name": {
            "type": "string",
            "description": "The name of the contact attribute"
          },
          "type": {
            "$ref": "#/components/schemas/ContactAttributeType"
          },
          "url": {
            "type": "string",
            "description": "The URL of the contact attribute resource"
          },
          "value": {
            "type": "string",
            "description": "The selected option value of the contact attribute"
          }
        },
        "required": [
          "id",
          "name",
          "url",
          "value"
        ]
      },
      "CONTACT_ATTRIBUTE_VALUE_MULTI_SELECT": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "The unique identifier of the contact attribute"
          },
          "name": {
            "type": "string",
            "description": "The name of the contact attribute"
          },
          "type": {
            "$ref": "#/components/schemas/ContactAttributeType"
          },
          "url": {
            "type": "string",
            "description": "The URL of the contact attribute resource"
          },
          "value": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "The selected option values of the contact attribute"
          }
        },
        "required": [
          "id",
          "name",
          "url",
          "value"
        ]
      },
      "WRITE_CONTACT_ATTRIBUTE_DATE_ONLY": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "The unique identifier of the contact attribute"
          },
          "value": {
            "type": "string",
            "format": "date",
            "description": "The date value to assign to the contact attribute"
          }
        },
        "required": [
          "id"
        ]
      },
      "WRITE_CONTACT_ATTRIBUTE_DATE_TIME": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "The unique identifier of the contact attribute"
          },
          "value": {
            "type": "string",
            "format": "date-time",
            "description": "The datetime value to assign to the contact attribute"
          }
        },
        "required": [
          "id"
        ]
      },
      "WRITE_CONTACT_ATTRIBUTE_MULTI_SELECT": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "The unique identifier of the contact attribute"
          },
          "value": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "The selected option values to assign to the contact attribute"
          }
        },
        "required": [
          "id",
          "value"
        ]
      },
      "WRITE_CONTACT_ATTRIBUTE_NUMBER": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "The unique identifier of the contact attribute"
          },
          "value": {
            "type": "number",
            "format": "double",
            "description": "The numeric value to assign to the contact attribute"
          }
        },
        "required": [
          "id"
        ]
      },
      "WRITE_CONTACT_ATTRIBUTE_SINGLE_SELECT": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "The unique identifier of the contact attribute"
          },
          "value": {
            "type": "string",
            "description": "The selected option value to assign to the contact attribute"
          }
        },
        "required": [
          "id"
        ]
      },
      "WRITE_CONTACT_ATTRIBUTE_STRING": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "The unique identifier of the contact attribute"
          },
          "value": {
            "type": "string",
            "description": "The text value to assign to the contact attribute"
          }
        },
        "required": [
          "id"
        ]
      }
    },
    "securitySchemes": {
      "ApiKeyAuth": {
        "type": "apiKey",
        "in": "header",
        "name": "X-API-KEY"
      }
    }
  },
  "paths": {
    "/contacts/{contactId}": {
      "patch": {
        "summary": "Update a contact",
        "description": "Updates a contact in your Superchat workspace.",
        "tags": [
          "Contacts"
        ],
        "parameters": [
          {
            "description": "Public ID of the contact.",
            "name": "contactId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PAUpdateContactDTO"
              },
              "example": {
                "first_name": "Jane",
                "last_name": "Doe",
                "gender": "diverse",
                "handles": [
                  {
                    "id": "ch_1aBMS9FKwvSDjljRJI1aZ",
                    "type": "mail",
                    "value": "jane.doe@example.com"
                  }
                ],
                "custom_attributes": [
                  {
                    "id": "cat_1aBMS9FKwvSDjljRJI1aZ",
                    "value": "VIP"
                  }
                ]
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PAContactDTO"
                },
                "example": {
                  "id": "ct_1aBMS9FKwvSDjljRJI1aZ",
                  "first_name": "Jane",
                  "last_name": "Smith",
                  "gender": "diverse",
                  "handles": [
                    {
                      "id": "ch_1aBMS9FKwvSDjljRJI1aZ",
                      "type": "mail",
                      "value": "jane.smith@example.com"
                    }
                  ],
                  "custom_attributes": [
                    {
                      "id": "cat_1aBMS9FKwvSDjljRJI1aZ",
                      "name": "Plan",
                      "value": "Premium",
                      "url": "/contacts/ct_1aBMS9FKwvSDjljRJI1aZ/custom-attributes/cat_1aBMS9FKwvSDjljRJI1aZ",
                      "type": "text"
                    }
                  ],
                  "url": "/contacts/ct_1aBMS9FKwvSDjljRJI1aZ",
                  "created_at": "2026-05-25T09:15:30Z",
                  "updated_at": "2026-05-25T09:15:30Z"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicAPIExceptionResponse"
                },
                "example": {
                  "errors": [
                    {
                      "title": "Unauthorized request",
                      "detail": "We could not authenticate your request. Please check your API key.",
                      "url": "/example-endpoint",
                      "docs": "superchat.readme.com/v1.0/authentication",
                      "status_code": 401
                    }
                  ]
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicAPIExceptionResponse"
                },
                "example": {
                  "errors": [
                    {
                      "title": "Resource forbidden",
                      "detail": "You do not have access to this resource",
                      "url": "/example-endpoint",
                      "status_code": 403
                    }
                  ]
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicAPIExceptionResponse"
                },
                "example": {
                  "errors": [
                    {
                      "title": "Resource not found",
                      "url": "/example-endpoint",
                      "status_code": 404
                    }
                  ]
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicAPIExceptionResponse"
                },
                "example": {
                  "errors": [
                    {
                      "title": "An error occurred",
                      "detail": "A general error occurred",
                      "url": "/example-endpoint",
                      "status_code": 500
                    }
                  ]
                }
              }
            }
          }
        }
      }
    }
  },
  "tags": [
    {
      "name": "Contacts",
      "description": "Create, update or delete contacts in Superchat."
    }
  ],
  "info": {
    "version": "1.0",
    "title": "Superchat API",
    "description": "With the Superchat API you can send email, Instagram, Facebook, Google and WhatsApp messages, create and manage contacts, schedule campaigns, and much more.",
    "contact": {
      "name": "Superchat Developer",
      "email": "engineering@superchat.com",
      "url": "developers.superchat.com"
    }
  },
  "servers": [
    {
      "url": "https://api.superchat.com/v1.0"
    }
  ],
  "security": [
    {
      "ApiKeyAuth": []
    }
  ],
  "x-explorer-enabled": true,
  "x-proxy-enabled": true,
  "x-samples-enabled": true
}
```