## Setup contact card

**post** `/v3/contact_card`

Creates a contact card for a phone number. This endpoint is intended for initial, one-time setup only.

If setup does not complete, the response is `500` (`2022`) — call this endpoint again.

If the upstream write is rate-limited, the response is `503` (`4004`) instead. Setup
did not complete and the card is not active — wait before retrying, because repeated
attempts extend the rate limit.

**Note:** once a card is active, this endpoint returns `409` (`2014`) so an existing
card is never overwritten by accident. Use `PATCH /v3/contact_card` to change it.

### Body Parameters

- `first_name: string`

  First name for the contact card. Required.

- `phone_number: string`

  E.164 phone number to associate the contact card with

- `image_url: optional string`

  Profile image URL for the contact card.

- `last_name: optional string`

  Last name for the contact card. Optional.

### Returns

- `SetContactCard object { first_name, is_active, phone_number, 2 more }`

  - `first_name: string`

    First name on the contact card

  - `is_active: boolean`

    Whether the contact card was successfully applied to the device

  - `phone_number: string`

    The phone number the contact card is associated with

  - `image_url: optional string`

    Image URL on the contact card

  - `last_name: optional string`

    Last name on the contact card

### Example

```http
curl https://api.linqapp.com/api/partner/v3/contact_card \
    -H 'Content-Type: application/json' \
    -H "Authorization: Bearer $LINQ_API_V3_API_KEY" \
    -d '{
          "first_name": "Acme",
          "phone_number": "+15551234567",
          "image_url": "https://cdn.linqapp.com/contact-card/example.jpg",
          "last_name": "Support"
        }'
```

#### Response

```json
{
  "phone_number": "+15551234567",
  "first_name": "John",
  "last_name": "Doe",
  "image_url": "https://cdn.linqapp.com/contact-card/example.jpg",
  "is_active": true
}
```
