# Batch Create Contacts

> Solarium docs, Batch Operations. All requests are `POST https://api.trysolarium.com/graphql/` with `Authorization: Bearer <api key>` and a JSON body `{"query": ..., "variables": ...}`. Every query and mutation takes an `organizationId` (find it with `myOrganizations`). Index of all pages: https://trysolarium.com/llms.txt

Create up to 500 contacts in a single call.

### Arguments

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `organizationId` | `UUID!` | Yes | Organization ID |
| `items` | `[ContactInput!]!` | Yes | Array of contacts. Each: contactType (String!), displayName (String!), email (String), phone (String) |

### Request

```graphql
mutation {
  batchCreateContacts(
    organizationId: "a1b2c3d4-..."
    items: [
      { contactType: "vendor", displayName: "Staples" },
      { contactType: "vendor", displayName: "Amazon" }
    ]
  ) {
    created
    errors { index error }
  }
}
```

### Response

```json
{
  "data": {
    "batchCreateContacts": {
      "created": 2,
      "errors": []
    }
  }
}
```
