Get the catalog of channels, formats and brands
curl --request GET \
--url https://myunite.ai/api/v1/catalog \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://myunite.ai/api/v1/catalog', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://myunite.ai/api/v1/catalog"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"channels": [
"ooh"
],
"ooh": {
"formats": [
{
"key": "<string>",
"label": "<string>",
"inventory": {
"key": "<string>",
"label": "<string>"
},
"thumbnailUrl": "<string>"
}
]
},
"digital": {
"platforms": [
{
"key": "meta",
"placements": [
"<string>"
]
}
],
"objectives": [
"<string>"
]
},
"email": {
"types": [
"<string>"
],
"stages": [
"<string>"
]
},
"checks": {
"ooh": [
{
"id": "<string>",
"name": "<string>",
"requiresBrand": true,
"optional": true
}
],
"digital": [
{
"id": "<string>",
"name": "<string>",
"requiresBrand": true,
"optional": true
}
],
"email": [
{
"id": "<string>",
"name": "<string>",
"requiresBrand": true,
"optional": true
}
]
},
"brands": [
{
"id": "<string>",
"name": "<string>",
"readiness": {
"colors": true,
"logo": true,
"taglines": true,
"distinctiveAssets": true
}
}
]
}{
"error": {
"code": "invalid_api_key",
"message": "<string>",
"requestId": "<string>",
"docUrl": "<string>",
"param": "<string>"
}
}{
"error": {
"code": "invalid_api_key",
"message": "<string>",
"requestId": "<string>",
"docUrl": "<string>",
"param": "<string>"
}
}{
"error": {
"code": "invalid_api_key",
"message": "<string>",
"requestId": "<string>",
"docUrl": "<string>",
"param": "<string>"
}
}{
"error": {
"code": "invalid_api_key",
"message": "<string>",
"requestId": "<string>",
"docUrl": "<string>",
"param": "<string>"
}
}{
"error": {
"code": "invalid_api_key",
"message": "<string>",
"requestId": "<string>",
"docUrl": "<string>",
"param": "<string>"
}
}Catalog
Get the catalog of channels, formats and brands
Returns what you can send when you create a pre-test: the channels, the OOH formats, the digital platforms and placements, the email types and stages, the checks each channel runs, and the brands of your workspace with the guideline data each one has. Names and labels come in the language of the locale parameter.
Requires the pretests:read scope.
GET
/
catalog
Get the catalog of channels, formats and brands
curl --request GET \
--url https://myunite.ai/api/v1/catalog \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://myunite.ai/api/v1/catalog', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://myunite.ai/api/v1/catalog"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"channels": [
"ooh"
],
"ooh": {
"formats": [
{
"key": "<string>",
"label": "<string>",
"inventory": {
"key": "<string>",
"label": "<string>"
},
"thumbnailUrl": "<string>"
}
]
},
"digital": {
"platforms": [
{
"key": "meta",
"placements": [
"<string>"
]
}
],
"objectives": [
"<string>"
]
},
"email": {
"types": [
"<string>"
],
"stages": [
"<string>"
]
},
"checks": {
"ooh": [
{
"id": "<string>",
"name": "<string>",
"requiresBrand": true,
"optional": true
}
],
"digital": [
{
"id": "<string>",
"name": "<string>",
"requiresBrand": true,
"optional": true
}
],
"email": [
{
"id": "<string>",
"name": "<string>",
"requiresBrand": true,
"optional": true
}
]
},
"brands": [
{
"id": "<string>",
"name": "<string>",
"readiness": {
"colors": true,
"logo": true,
"taglines": true,
"distinctiveAssets": true
}
}
]
}{
"error": {
"code": "invalid_api_key",
"message": "<string>",
"requestId": "<string>",
"docUrl": "<string>",
"param": "<string>"
}
}{
"error": {
"code": "invalid_api_key",
"message": "<string>",
"requestId": "<string>",
"docUrl": "<string>",
"param": "<string>"
}
}{
"error": {
"code": "invalid_api_key",
"message": "<string>",
"requestId": "<string>",
"docUrl": "<string>",
"param": "<string>"
}
}{
"error": {
"code": "invalid_api_key",
"message": "<string>",
"requestId": "<string>",
"docUrl": "<string>",
"param": "<string>"
}
}{
"error": {
"code": "invalid_api_key",
"message": "<string>",
"requestId": "<string>",
"docUrl": "<string>",
"param": "<string>"
}
}Autorizações
Parâmetros de consulta
Resposta
The catalog.