# POST /api/organization-contact

Authentication (security requirement alternatives):

```json
[
  {
    "bearer": []
  }
]
```

- bearer: http (bearer), header JWT. Enter JWT token

Request body: application/json (required)

Type: object

Schema: [CreateOrganizationContactDTO](https://sourcey-gauzy.pages.dev/api-reference/models/createorganizationcontactdto/index.md)

- `tenant` (optional)
  Type: object

- `tenantId` (optional)
  Type: string

- `organization` (required)
  Type: object

- `organizationId` (required)
  Type: string

- `sentTo` (optional)
  Type: string

- `tags` (optional)
  Type: array
  
  Items:
    Type: array

- `name` (required)
  Type: string

- `primaryEmail` (optional)
  Type: string

- `primaryPhone` (optional)
  Type: string

- `inviteStatus` (optional)
  Type: string
  
  enum: ["NOT_INVITED","INVITED","ACCEPTED"]

- `notes` (optional)
  Type: string

- `contactType` (optional)
  Type: string
  
  enum: ["CLIENT","CUSTOMER","LEAD"]

- `budget` (optional)
  Type: number

- `budgetType` (optional)
  Type: string

- `imageId` (optional)
  Type: string

Responses:

- 201: 

- 401: Unauthorized

- 403: Forbidden

## Examples

### cURL

```bash
curl -X POST 'http://localhost:3000/api/organization-contact' \
  -H 'Authorization: Bearer YOUR_TOKEN' \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "tenant": {},
  "tenantId": "string",
  "organization": {},
  "organizationId": "string",
  "sentTo": "string",
  "tags": [
    []
  ],
  "name": "string",
  "primaryEmail": "string",
  "primaryPhone": "string",
  "inviteStatus": "NOT_INVITED",
  "notes": "string",
  "contactType": "CLIENT",
  "budget": 0,
  "budgetType": "string",
  "imageId": "string"
}'
```

### JavaScript

```javascript
const body = `{
  "tenant": {},
  "tenantId": "string",
  "organization": {},
  "organizationId": "string",
  "sentTo": "string",
  "tags": [
    []
  ],
  "name": "string",
  "primaryEmail": "string",
  "primaryPhone": "string",
  "inviteStatus": "NOT_INVITED",
  "notes": "string",
  "contactType": "CLIENT",
  "budget": 0,
  "budgetType": "string",
  "imageId": "string"
}`;

const response = await fetch('http://localhost:3000/api/organization-contact', {
  method: 'POST',
  headers: {
    'Authorization': 'Bearer YOUR_TOKEN',
    'Content-Type': 'application/json',
  },
  body,
});

const data = await response.text();
```

### Python

```python
import requests

body = '''{
  "tenant": {},
  "tenantId": "string",
  "organization": {},
  "organizationId": "string",
  "sentTo": "string",
  "tags": [
    []
  ],
  "name": "string",
  "primaryEmail": "string",
  "primaryPhone": "string",
  "inviteStatus": "NOT_INVITED",
  "notes": "string",
  "contactType": "CLIENT",
  "budget": 0,
  "budgetType": "string",
  "imageId": "string"
}'''

response = requests.post(
    'http://localhost:3000/api/organization-contact',
    data=body.encode('utf-8'),
    headers={
        'Authorization': 'Bearer YOUR_TOKEN',
        'Content-Type': 'application/json',
    },
)
print(response.text)
```
