---
title: "Get default object types"
type: reference
method: GET
path: /rest-api/label/defaultObjectTypes.do
tag: "Labels"
---

# Get default object types

`GET https://YOUR-NETWORK-DOMAIN/rest-api/label/defaultObjectTypes.do`

Returns the list of object types that a default label can be assigned to. The response is a JSON array of key-value objects with 'key' (numeric ID) and 'value' (name): BANNER (1) and PLACEMENT (2). Use the numeric ID in the 'defaultLabelObjectType' field when creating or updating labels.

## Responses

- `200` — Default object types retrieved successfully
- `400` — Bad request — invalid or missing parameters
- `401` — Authentication error
- `403` — Forbidden — insufficient permissions

## Example request

```bash
curl --request GET \
  --url 'https://YOUR-NETWORK-DOMAIN/rest-api/label/defaultObjectTypes.do' \
  --header 'X-Api-Key: YOUR_API_KEY'
```

Source: https://epom.com/ad-server/docs/api/labels/get-label-defaultobjecttypes