---
updatedAt: 2026-09-09T22:08:03.000Z
agentTools:
  projectIndex: https://developer.callhub.io/llms.txt
---

# /contacts/

Create a new contact

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "api-settings",
    "version": "2.1"
  },
  "servers": [
    {
      "url": "https://api.callhub.io"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "x-default": "",
        "type": "apiKey",
        "name": "Authorization",
        "in": "header",
        "x-bearer-format": "token"
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/v1/contacts/": {
      "post": {
        "summary": "/contacts/",
        "description": "",
        "operationId": "create-new-contact",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "contact"
                ],
                "properties": {
                  "contact": {
                    "type": "string",
                    "description": "Phone number of the contact.  This is used is all voice campaigns"
                  },
                  "mobile": {
                    "type": "string",
                    "description": "Mobile phone number of the contact. This is used in all text message campaigns"
                  },
                  "last_name": {
                    "type": "string",
                    "description": "Last Name of the contact"
                  },
                  "first_name": {
                    "type": "string",
                    "description": "First Name of the contact"
                  },
                  "country_code": {
                    "type": "string",
                    "description": "2 letter country code. This is used to add the country prefix to the phone numbers, if necessary. See the full list of 2 letter country codes here http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2",
                    "default": "US"
                  },
                  "email": {
                    "type": "string",
                    "description": "Email Address"
                  },
                  "address": {
                    "type": "string",
                    "description": "Mailing address"
                  },
                  "city": {
                    "type": "string",
                    "description": "City"
                  },
                  "state": {
                    "type": "string",
                    "description": "State"
                  },
                  "company_name": {
                    "type": "string",
                    "description": "Name of the company/organisation the contact belongs to"
                  },
                  "company_website": {
                    "type": "string",
                    "description": "Website of the contact's organisation"
                  },
                  "job_title": {
                    "type": "string",
                    "description": "Job Title/Function"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "201",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n  \"url\": \"https://api.callhub.io/v1/contacts/11738262/\",\n  \"id\": 11738262,\n  \"phonebooks\": [\"https://api.callhub.io/v1/phonebooks/78226/\"],\n  \"contact\": \"15019028176\",\n  \"mobile\": \"15019022176\",\n  \"last_name\": \"Kenny\",\n  \"first_name\": \"Chris\",\n  \"country_code\": \"US\",\n  \"email\": \"ckenny@gmeil.com\",\n  \"address\": \"34786 Longboat Court\",\n  \"city\": \"Portland\",\n  \"state\": \"OR\",\n  \"company_name\": \"IBM Inc\",\n  \"company_website\": \"http://www.ibm.com/ckenny/\",\n  \"job_title\": \"Project Manager\"\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "url": {
                      "type": "string",
                      "example": "https://api.callhub.io/v1/contacts/11738262/"
                    },
                    "id": {
                      "type": "integer",
                      "example": 11738262,
                      "default": 0
                    },
                    "phonebooks": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "example": "https://api.callhub.io/v1/phonebooks/78226/"
                      }
                    },
                    "contact": {
                      "type": "string",
                      "example": "15019028176"
                    },
                    "mobile": {
                      "type": "string",
                      "example": "15019022176"
                    },
                    "last_name": {
                      "type": "string",
                      "example": "Kenny"
                    },
                    "first_name": {
                      "type": "string",
                      "example": "Chris"
                    },
                    "country_code": {
                      "type": "string",
                      "example": "US"
                    },
                    "email": {
                      "type": "string",
                      "example": "ckenny@gmeil.com"
                    },
                    "address": {
                      "type": "string",
                      "example": "34786 Longboat Court"
                    },
                    "city": {
                      "type": "string",
                      "example": "Portland"
                    },
                    "state": {
                      "type": "string",
                      "example": "OR"
                    },
                    "company_name": {
                      "type": "string",
                      "example": "IBM Inc"
                    },
                    "company_website": {
                      "type": "string",
                      "example": "http://www.ibm.com/ckenny/"
                    },
                    "job_title": {
                      "type": "string",
                      "example": "Project Manager"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "400",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          }
        },
        "deprecated": false,
        "x-readme": {
          "code-samples": [
            {
              "language": "python",
              "code": "# You'll need to install requests\nimport requests\n# api_key can be found at https://callhub.io/user_detail_change/?action=tabs-1\nheaders = {'Authorization': 'Token %s' % api_key}\ndata = {\"contact\": \"15019028176\",\n  \"mobile\": \"15019022176\",\n  \"last_name\": \"Kenny\",\n  \"first_name\": \"Chris\",\n  \"country_code\": \"US\",\n  \"email\": \"ckenny@gmeil.com\",\n  \"address\": \"34786 Longboat Court\",\n  \"city\": \"Portland\",\n  \"state\": \"OR\",\n  \"company_name\": \"IBM Inc\",\n  \"company_website\": \"http://www.ibm.com/ckenny/\",\n  \"job_title\": \"Project Manager\"}\nr = requests.post('https://api.callhub.io/v1/contacts/', data=data, headers=headers)\nprint \"Contact created in JSON\", r.json()"
            },
            {
              "language": "php",
              "code": "<?php\n\t\t$ch = curl_init();\n    $headers = array();\n    $headers[] = \"Authorization: Token {$api_key}\";\n    $headers[] = \"Content-Type: application/json\";\n\t\t\n\t\t$data = array(\"contact\" => \"4015239987\", \"first_name\" => \"PHP API\");                         $data_to_post = json_encode($data);   \n  \n    $url =\"https://api.callhub.io/v1/contacts/\";\n    curl_setopt($ch, CURLOPT_URL, $url);\n    curl_setopt( $ch, CURLOPT_HTTPHEADER, $headers);\n    curl_setopt( $ch, CURLOPT_RETURNTRANSFER, true);\n    curl_setopt($ch, CURLOPT_CUSTOMREQUEST, \"POST\");\n    curl_setopt($ch,CURLOPT_POSTFIELDS, $data_to_post);\n\n    $curl_response = curl_exec($ch); // Send request\n\t\tcurl_close($ch);\n     \n\t\t$decoded = json_decode($curl_response,true);\n\t\tprint \"Contact Added:\". var_export($decoded);\n \n?>"
            }
          ],
          "samples-languages": [
            "python",
            "php"
          ]
        }
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```