> ## Documentation Index
> Fetch the complete documentation index at: https://docs.sendx.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Create Your First Contact

> Start adding customers to your SendX account

## Welcome to SendX

This quick start guide will help you:

* Set up your SendX account
* Identify your first contact using the REST API
* Get ready to send your first email

Let's dive in!

## 1. Set Up Your SendX Account

Start by creating a SendX account if you haven’t already:

[Create Account →](https://app.sendx.io/register)

After registering, log in and navigate to:

**`Settings → API & Webhooks → Copy your Team API Key`**

<Tip>
  This key is required for all API interactions. Keep it safe and never expose it in public code repositories.
</Tip>

## 2. Identify a Contact

Use the `identify` method of the SendX REST API to start adding your contacts to the SendX App, this would allow you to send email to that contact later:

<CodeGroup>
  ```bash cURL theme={null}
  curl --request POST \
    --url https://api.sendx.io/api/v1/rest/contact/identify \
    --header 'Content-Type: application/json' \
    --header 'X-Team-ApiKey: <YOUR_TEAM_API_KEY>' \
    --data '{
    "firstName": "John",
    "lastName": "Doe",
    "email": "user@example.com",
    "newEmail": "user@example.com",
    "company": "Acme Inc.",
    "tags": [
      "new",
      "cool"
    ],
    "customFields": {
      "favorite_color": "blue",
      "favorite_food": "pizza"
    }
  }' 
  ```

  ```python Python theme={null}
  import requests

  url = "https://api.sendx.io/api/v1/rest/contact/identify"

  payload = {
      "firstName": "John",
      "lastName": "Doe",
      "email": "user@example.com",
      "newEmail": "user@example.com",
      "company": "Acme Inc.",
      "tags": ["new", "cool"],
      "customFields": {
          "favorite_color": "blue",
          "favorite_food": "pizza"
      }
  }
  headers = {
      "X-Team-ApiKey": "<api-key>",
      "Content-Type": "application/json"
  }

  response = requests.request("POST", url, json=payload, headers=headers)

  print(response.text)
  ```

  ```Go Golang theme={null}
  package main

  import (
  	"fmt"
  	"strings"
  	"net/http"
  	"io/ioutil"
  )

  func main() {

  	url := "https://api.sendx.io/api/v1/rest/contact/identify"

  	payload := strings.NewReader("{\n  \"firstName\": \"John\",\n  \"lastName\": \"Doe\",\n  \"email\": \"user@example.com\",\n  \"newEmail\": \"user@example.com\",\n  \"company\": \"Acme Inc.\",\n  \"tags\": [\n    \"new\",\n    \"cool\"\n  ],\n  \"customFields\": {\n    \"favorite_color\": \"blue\",\n    \"favorite_food\": \"pizza\"\n  }\n}")

  	req, _ := http.NewRequest("POST", url, payload)

  	req.Header.Add("X-Team-ApiKey", "<api-key>")
  	req.Header.Add("Content-Type", "application/json")

  	res, _ := http.DefaultClient.Do(req)

  	defer res.Body.Close()
  	body, _ := ioutil.ReadAll(res.Body)

  	fmt.Println(res)
  	fmt.Println(string(body))

  }
  ```

  ```java Java theme={null}
  HttpResponse<String> response = Unirest.post("https://api.sendx.io/api/v1/rest/contact/identify")
    .header("X-Team-ApiKey", "<api-key>")
    .header("Content-Type", "application/json")
    .body("{\n  \"firstName\": \"John\",\n  \"lastName\": \"Doe\",\n  \"email\": \"user@example.com\",\n  \"newEmail\": \"user@example.com\",\n  \"company\": \"Acme Inc.\",\n  \"tags\": [\n    \"new\",\n    \"cool\"\n  ],\n  \"customFields\": {\n    \"favorite_color\": \"blue\",\n    \"favorite_food\": \"pizza\"\n  }\n}")
    .asString();
  ```

  ```java Java theme={null}
  HttpResponse<String> response = Unirest.post("https://api.sendx.io/api/v1/rest/contact/identify")
    .header("X-Team-ApiKey", "<api-key>")
    .header("Content-Type", "application/json")
    .body("{\n  \"firstName\": \"John\",\n  \"lastName\": \"Doe\",\n  \"email\": \"user@example.com\",\n  \"newEmail\": \"user@example.com\",\n  \"company\": \"Acme Inc.\",\n  \"tags\": [\n    \"new\",\n    \"cool\"\n  ],\n  \"customFields\": {\n    \"favorite_color\": \"blue\",\n    \"favorite_food\": \"pizza\"\n  }\n}")
    .asString();
  ```
</CodeGroup>

This would create a new contact with the following details:

```
First Name: John
Last Name: Doe
Email: user@example.com
New Email: user@example.com
Company: Acme Inc.
Tags: new, cool 
Custom Fields: favorite_color: blue, favorite_food: pizza
```

<Card title="Identify REST API" icon="code" href="/api-reference/contact/create-a-contact" cta="Try it in API Playground">
  For more details on the `identify` method, check out the API reference.
</Card>

Once you have identified your contact, you can start sending emails to them.

## Next Steps

Once your contact is identified, you can start sending emails to them using the SendX API.

### Want to go further?

* Send transactional emails
* Run campaigns and newsletters
* Segment contacts with tags and custom fields

Explore everything in our [API Reference](/api-reference/introduction).
