## Setup contact card

`client.ContactCard.New(ctx, body) (*SetContactCard, error)`

**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.

### Parameters

- `body ContactCardNewParams`

  - `FirstName param.Field[string]`

    First name for the contact card. Required.

  - `PhoneNumber param.Field[string]`

    E.164 phone number to associate the contact card with

  - `ImageURL param.Field[string]`

    Profile image URL for the contact card.

  - `LastName param.Field[string]`

    Last name for the contact card. Optional.

### Returns

- `type SetContactCard struct{…}`

  - `FirstName string`

    First name on the contact card

  - `IsActive bool`

    Whether the contact card was successfully applied to the device

  - `PhoneNumber string`

    The phone number the contact card is associated with

  - `ImageURL string`

    Image URL on the contact card

  - `LastName string`

    Last name on the contact card

### Example

```go
package main

import (
  "context"
  "fmt"

  "github.com/linq-team/linq-go"
  "github.com/linq-team/linq-go/option"
)

func main() {
  client := linqgo.NewClient(
    option.WithAPIKey("My API Key"),
  )
  setContactCard, err := client.ContactCard.New(context.TODO(), linqgo.ContactCardNewParams{
    FirstName: "Acme",
    PhoneNumber: "+15551234567",
    ImageURL: linqgo.String("https://cdn.linqapp.com/contact-card/example.jpg"),
    LastName: linqgo.String("Support"),
  })
  if err != nil {
    panic(err.Error())
  }
  fmt.Printf("%+v\n", setContactCard.FirstName)
}
```

#### Response

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