---
title: "Add Excel Contact"
method: POST
path: "/ws/v1/phone_book_data/excel-upsert"
tags: ["Phonebook/Contacts"]
---

# Add Excel Contact

`POST /ws/v1/phone_book_data/excel-upsert`

## Request

- Base URL: `https://api.iranpayamak.com`
- URL: `https://api.iranpayamak.com/ws/v1/phone_book_data/excel-upsert`
- Auth: API key in header `Api-Key`

It used to import contacts to a phonebook with Excel.
To use with Excel you must get exaple Excel with another existed endpoint.
No limit to import with Excel.

## Headers

- `Accept` string, required

## Request body `multipart/form-data`

- object
  - `phone_book_id` integer
  - `file` string, binary

## Response `200`

- object

---

[API](https://skmtc.dev/farazsms/apis/farazsms-public-apis.md) - [All operations](https://skmtc.dev/farazsms/apis/farazsms-public-apis/llms.txt) - [OpenAPI document](https://skmtc.dev/farazsms/apis/farazsms-public-apis/revisions/e80a7c5dea3f?raw)
