# Find all organization contacts.

`GET /api/organization-contact`

Authentication (security requirement alternatives):

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

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

Responses:

- 200: Found contacts recurring expense

Content type: application/json

Type: object

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

- `deletedAt` (optional)
  Type: string, date-time
  
  Example:
  
  ```json
  "2018-11-21T06:20:32.232Z"
  ```

- `createdAt` (optional)
  Type: string, date-time
  
  The creation timestamp of the entity.
  
  Example:
  
  ```json
  "2018-11-21T06:20:32.232Z"
  ```

- `updatedAt` (optional)
  Type: string, date-time
  
  The last update timestamp of the entity.
  
  Example:
  
  ```json
  "2018-11-21T06:20:32.232Z"
  ```

- `id` (optional)
  Type: string

- `isActive` (optional)
  Type: boolean
  
  default: true

- `isArchived` (optional)
  Type: boolean
  
  default: false

- `archivedAt` (optional)
  Type: string, date-time
  
  Example:
  
  ```json
  "2018-11-21T06:20:32.232Z"
  ```

- `tenantId` (optional)
  Type: string

- `organizationId` (optional)
  Type: string

- `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"]

- `imageUrl` (optional)
  Type: string
  
  maxLength: 500

- `budget` (optional)
  Type: number

- `budgetType` (optional)
  Type: string

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

- `contactId` (optional)
  Type: string

- `imageId` (optional)
  Type: string

- `projects` (optional)
  Type: array
  
  Items:
    Reference: [OrganizationProject](https://sourcey-gauzy.pages.dev/api-reference/models/organizationproject/index.md); Type: object

- `invoices` (optional)
  Type: array
  
  Items:
    Reference: [Invoice](https://sourcey-gauzy.pages.dev/api-reference/models/invoice/index.md); Type: object

- `payments` (optional)
  Type: array
  
  Items:
    Reference: [Payment](https://sourcey-gauzy.pages.dev/api-reference/models/payment/index.md); Type: object

- `expenses` (optional)
  Type: array
  
  Items:
    Reference: [Expense](https://sourcey-gauzy.pages.dev/api-reference/models/expense/index.md); Type: object

- `incomes` (optional)
  Type: array
  
  Items:
    Reference: [Income](https://sourcey-gauzy.pages.dev/api-reference/models/income/index.md); Type: object

- `timeLogs` (optional)
  Type: array
  
  Items:
    Reference: [TimeLog](https://sourcey-gauzy.pages.dev/api-reference/models/timelog/index.md); Type: object

- 401: Unauthorized

- 403: Forbidden

- 404: Record not found

## Examples

### cURL

```bash
curl -X GET 'http://localhost:3000/api/organization-contact' \
  -H 'Authorization: Bearer YOUR_TOKEN'
```

### JavaScript

```javascript
const response = await fetch('http://localhost:3000/api/organization-contact', {
  method: 'GET',
  headers: {
    'Authorization': 'Bearer YOUR_TOKEN',
  },
});

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

### Python

```python
import requests

response = requests.get(
    'http://localhost:3000/api/organization-contact',
    headers={
        'Authorization': 'Bearer YOUR_TOKEN',
    },
)
print(response.text)
```
