# Accept organization contact invite.

`POST /api/invite/contact`

Authentication: no security requirement declared for this operation.

Request body: application/json (required)

Type: object

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

- `inviteId` (required)
  Type: string

- `password` (required)
  Type: string

- `user` (required)
  Reference: [AcceptInviteUserDTO](https://sourcey-gauzy.pages.dev/api-reference/models/acceptinviteuserdto/index.md); Type: object

- `contactOrganization` (required)
  Type: object

Responses:

- 201: The record has been successfully created.

- 400: Invalid input, The response body may contain clues as to what went wrong

## Examples

### cURL

```bash
curl -X POST 'http://localhost:3000/api/invite/contact' \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "inviteId": "string",
  "password": "string",
  "user": {
    "firstName": "string",
    "lastName": "string",
    "imageUrl": "string",
    "preferredLanguage": "en",
    "timeZone": "string"
  },
  "contactOrganization": {}
}'
```

### JavaScript

```javascript
const body = `{
  "inviteId": "string",
  "password": "string",
  "user": {
    "firstName": "string",
    "lastName": "string",
    "imageUrl": "string",
    "preferredLanguage": "en",
    "timeZone": "string"
  },
  "contactOrganization": {}
}`;

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

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

### Python

```python
import requests

body = '''{
  "inviteId": "string",
  "password": "string",
  "user": {
    "firstName": "string",
    "lastName": "string",
    "imageUrl": "string",
    "preferredLanguage": "en",
    "timeZone": "string"
  },
  "contactOrganization": {}
}'''

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