PerfectPost
PerfectPost · Ações GPT
PerfectPost CMS
PerfectPost CMS documentation
GET /call-to-action-tagsget_call-to-action-tagsGET /call-to-action-tags/{id}get_call-to-action-tags_idGET /ctasget_ctasGET /ctas/{id}get_ctas_idGET /hooksget_hooksGET /hooks/{id}get_hooks_idGET /legacy-hooksget_legacy-hooksGET /legacy-hooks/{id}get_legacy-hooks_idGET /publicationsget_publicationsGET /publications/{id}get_publications_idGET /publication-tagsget_publication-tagsGET /publication-tags/{id}get_publication-tags_id
Esquema API original
{
"openapi": "3.1.0",
"info": {
"title": "PerfectPost CMS",
"description": "PerfectPost CMS documentation",
"version": "1.0.0"
},
"servers": [
{
"url": "https://cms.perfectpost.fr/api",
"description": "Content API for PerfectPost"
}
],
"components": {
"schemas": {
"Error": {
"type": "object",
"required": [
"error"
],
"properties": {
"data": {
"nullable": true,
"oneOf": [
{
"type": "object"
},
{
"type": "array",
"items": {
"type": "object"
}
}
]
},
"error": {
"type": "object",
"properties": {
"status": {
"type": "integer"
},
"name": {
"type": "string"
},
"message": {
"type": "string"
},
"details": {
"type": "object"
}
}
}
}
},
"CallToActionTagListResponseDataItemLocalized": {
"type": "object",
"properties": {
"id": {
"type": "number"
}
}
},
"CallToActionTagListResponseDataItem": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"attributes": {
"$ref": "#/components/schemas/CallToActionTag"
}
}
},
"CallToActionTagListResponse": {
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"$ref": "#/components/schemas/CallToActionTagListResponseDataItem"
}
},
"meta": {
"type": "object",
"properties": {
"pagination": {
"type": "object",
"properties": {
"page": {
"type": "integer"
},
"pageSize": {
"type": "integer",
"minimum": 25
},
"pageCount": {
"type": "integer",
"maximum": 1
},
"total": {
"type": "integer"
}
}
}
}
}
}
},
"CallToActionTag": {
"type": "object",
"properties": {
"tag": {
"type": "string"
},
"call_to_actions": {
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"attributes": {
"type": "object",
"properties": {
"title": {
"type": "string"
},
"content": {
"type": "string"
},
"call_to_action_tags": {
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"attributes": {
"type": "object",
"properties": {
"tag": {
"type": "string"
},
"call_to_actions": {
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"attributes": {
"type": "object",
"properties": {}
}
}
}
}
}
},
"createdAt": {
"type": "string",
"format": "date-time"
},
"updatedAt": {
"type": "string",
"format": "date-time"
},
"publishedAt": {
"type": "string",
"format": "date-time"
},
"createdBy": {
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"attributes": {
"type": "object",
"properties": {
"firstname": {
"type": "string"
},
"lastname": {
"type": "string"
},
"username": {
"type": "string"
},
"email": {
"type": "string",
"format": "email"
},
"resetPasswordToken": {
"type": "string"
},
"registrationToken": {
"type": "string"
},
"isActive": {
"type": "boolean"
},
"roles": {
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"attributes": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"code": {
"type": "string"
},
"description": {
"type": "string"
},
"users": {
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"attributes": {
"type": "object",
"properties": {}
}
}
}
}
}
},
"permissions": {
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"attributes": {
"type": "object",
"properties": {
"action": {
"type": "string"
},
"actionParameters": {},
"subject": {
"type": "string"
},
"properties": {},
"conditions": {},
"role": {
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"attributes": {
"type": "object",
"properties": {}
}
}
}
}
},
"createdAt": {
"type": "string",
"format": "date-time"
},
"updatedAt": {
"type": "string",
"format": "date-time"
},
"createdBy": {
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"attributes": {
"type": "object",
"properties": {}
}
}
}
}
},
"updatedBy": {
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"attributes": {
"type": "object",
"properties": {}
}
}
}
}
}
}
}
}
}
}
}
},
"createdAt": {
"type": "string",
"format": "date-time"
},
"updatedAt": {
"type": "string",
"format": "date-time"
},
"createdBy": {
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"attributes": {
"type": "object",
"properties": {}
}
}
}
}
},
"updatedBy": {
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"attributes": {
"type": "object",
"properties": {}
}
}
}
}
}
}
}
}
}
}
}
},
"blocked": {
"type": "boolean"
},
"preferedLanguage": {
"type": "string"
},
"createdAt": {
"type": "string",
"format": "date-time"
},
"updatedAt": {
"type": "string",
"format": "date-time"
},
"createdBy": {
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"attributes": {
"type": "object",
"properties": {}
}
}
}
}
},
"updatedBy": {
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"attributes": {
"type": "object",
"properties": {}
}
}
}
}
}
}
}
}
}
}
},
"updatedBy": {
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"attributes": {
"type": "object",
"properties": {}
}
}
}
}
},
"localizations": {
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {}
}
}
},
"locale": {
"type": "string"
}
}
}
}
}
}
}
},
"createdAt": {
"type": "string",
"format": "date-time"
},
"updatedAt": {
"type": "string",
"format": "date-time"
},
"publishedAt": {
"type": "string",
"format": "date-time"
},
"createdBy": {
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"attributes": {
"type": "object",
"properties": {}
}
}
}
}
},
"updatedBy": {
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"attributes": {
"type": "object",
"properties": {}
}
}
}
}
},
"localizations": {
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {}
}
}
},
"locale": {
"type": "string"
}
}
}
}
}
}
}
},
"createdAt": {
"type": "string",
"format": "date-time"
},
"updatedAt": {
"type": "string",
"format": "date-time"
},
"publishedAt": {
"type": "string",
"format": "date-time"
},
"createdBy": {
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"attributes": {
"type": "object",
"properties": {}
}
}
}
}
},
"updatedBy": {
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"attributes": {
"type": "object",
"properties": {}
}
}
}
}
},
"localizations": {
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"$ref": "#/components/schemas/CallToActionTagListResponseDataItemLocalized"
}
}
}
},
"locale": {
"type": "string"
}
}
},
"CallToActionTagResponseDataObject": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"attributes": {
"$ref": "#/components/schemas/CallToActionTag"
}
}
},
"CallToActionTagResponse": {
"type": "object",
"properties": {
"data": {
"$ref": "#/components/schemas/CallToActionTagResponseDataObject"
},
"meta": {
"type": "object"
}
}
},
"CtaListResponseDataItemLocalized": {
"type": "object",
"properties": {
"id": {
"type": "number"
}
}
},
"CtaListResponseDataItem": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"attributes": {
"$ref": "#/components/schemas/Cta"
}
}
},
"CtaListResponse": {
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"$ref": "#/components/schemas/CtaListResponseDataItem"
}
},
"meta": {
"type": "object",
"properties": {
"pagination": {
"type": "object",
"properties": {
"page": {
"type": "integer"
},
"pageSize": {
"type": "integer",
"minimum": 25
},
"pageCount": {
"type": "integer",
"maximum": 1
},
"total": {
"type": "integer"
}
}
}
}
}
}
},
"Cta": {
"type": "object",
"properties": {
"title": {
"type": "string"
},
"content": {
"type": "string"
},
"call_to_action_tags": {
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"attributes": {
"type": "object",
"properties": {
"tag": {
"type": "string"
},
"call_to_actions": {
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"attributes": {
"type": "object",
"properties": {
"title": {
"type": "string"
},
"content": {
"type": "string"
},
"call_to_action_tags": {
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"attributes": {
"type": "object",
"properties": {}
}
}
}
}
}
},
"createdAt": {
"type": "string",
"format": "date-time"
},
"updatedAt": {
"type": "string",
"format": "date-time"
},
"publishedAt": {
"type": "string",
"format": "date-time"
},
"createdBy": {
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"attributes": {
"type": "object",
"properties": {
"firstname": {
"type": "string"
},
"lastname": {
"type": "string"
},
"username": {
"type": "string"
},
"email": {
"type": "string",
"format": "email"
},
"resetPasswordToken": {
"type": "string"
},
"registrationToken": {
"type": "string"
},
"isActive": {
"type": "boolean"
},
"roles": {
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"attributes": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"code": {
"type": "string"
},
"description": {
"type": "string"
},
"users": {
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"attributes": {
"type": "object",
"properties": {}
}
}
}
}
}
},
"permissions": {
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"attributes": {
"type": "object",
"properties": {
"action": {
"type": "string"
},
"actionParameters": {},
"subject": {
"type": "string"
},
"properties": {},
"conditions": {},
"role": {
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"attributes": {
"type": "object",
"properties": {}
}
}
}
}
},
"createdAt": {
"type": "string",
"format": "date-time"
},
"updatedAt": {
"type": "string",
"format": "date-time"
},
"createdBy": {
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"attributes": {
"type": "object",
"properties": {}
}
}
}
}
},
"updatedBy": {
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"attributes": {
"type": "object",
"properties": {}
}
}
}
}
}
}
}
}
}
}
}
},
"createdAt": {
"type": "string",
"format": "date-time"
},
"updatedAt": {
"type": "string",
"format": "date-time"
},
"createdBy": {
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"attributes": {
"type": "object",
"properties": {}
}
}
}
}
},
"updatedBy": {
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"attributes": {
"type": "object",
"properties": {}
}
}
}
}
}
}
}
}
}
}
}
},
"blocked": {
"type": "boolean"
},
"preferedLanguage": {
"type": "string"
},
"createdAt": {
"type": "string",
"format": "date-time"
},
"updatedAt": {
"type": "string",
"format": "date-time"
},
"createdBy": {
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"attributes": {
"type": "object",
"properties": {}
}
}
}
}
},
"updatedBy": {
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"attributes": {
"type": "object",
"properties": {}
}
}
}
}
}
}
}
}
}
}
},
"updatedBy": {
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"attributes": {
"type": "object",
"properties": {}
}
}
}
}
},
"localizations": {
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {}
}
}
},
"locale": {
"type": "string"
}
}
}
}
}
}
}
},
"createdAt": {
"type": "string",
"format": "date-time"
},
"updatedAt": {
"type": "string",
"format": "date-time"
},
"publishedAt": {
"type": "string",
"format": "date-time"
},
"createdBy": {
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"attributes": {
"type": "object",
"properties": {}
}
}
}
}
},
"updatedBy": {
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"attributes": {
"type": "object",
"properties": {}
}
}
}
}
},
"localizations": {
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {}
}
}
},
"locale": {
"type": "string"
}
}
}
}
}
}
}
},
"createdAt": {
"type": "string",
"format": "date-time"
},
"updatedAt": {
"type": "string",
"format": "date-time"
},
"publishedAt": {
"type": "string",
"format": "date-time"
},
"createdBy": {
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"attributes": {
"type": "object",
"properties": {}
}
}
}
}
},
"updatedBy": {
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"attributes": {
"type": "object",
"properties": {}
}
}
}
}
},
"localizations": {
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"$ref": "#/components/schemas/CtaListResponseDataItemLocalized"
}
}
}
},
"locale": {
"type": "string"
}
}
},
"CtaResponseDataObject": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"attributes": {
"$ref": "#/components/schemas/Cta"
}
}
},
"CtaResponse": {
"type": "object",
"properties": {
"data": {
"$ref": "#/components/schemas/CtaResponseDataObject"
},
"meta": {
"type": "object"
}
}
},
"HookListResponseDataItemLocalized": {
"type": "object",
"properties": {
"id": {
"type": "number"
}
}
},
"HookListResponseDataItem": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"attributes": {
"$ref": "#/components/schemas/Hook"
}
}
},
"HookListResponse": {
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"$ref": "#/components/schemas/HookListResponseDataItem"
}
},
"meta": {
"type": "object",
"properties": {
"pagination": {
"type": "object",
"properties": {
"page": {
"type": "integer"
},
"pageSize": {
"type": "integer",
"minimum": 25
},
"pageCount": {
"type": "integer",
"maximum": 1
},
"total": {
"type": "integer"
}
}
}
}
}
}
},
"Hook": {
"type": "object",
"required": [
"title"
],
"properties": {
"comment": {
"type": "string"
},
"title": {
"type": "string"
},
"examples": {
"type": "array",
"items": {
"$ref": "#/components/schemas/HookSampleComponent"
}
},
"createdAt": {
"type": "string",
"format": "date-time"
},
"updatedAt": {
"type": "string",
"format": "date-time"
},
"publishedAt": {
"type": "string",
"format": "date-time"
},
"createdBy": {
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"attributes": {
"type": "object",
"properties": {
"firstname": {
"type": "string"
},
"lastname": {
"type": "string"
},
"username": {
"type": "string"
},
"email": {
"type": "string",
"format": "email"
},
"resetPasswordToken": {
"type": "string"
},
"registrationToken": {
"type": "string"
},
"isActive": {
"type": "boolean"
},
"roles": {
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"attributes": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"code": {
"type": "string"
},
"description": {
"type": "string"
},
"users": {
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"attributes": {
"type": "object",
"properties": {}
}
}
}
}
}
},
"permissions": {
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"attributes": {
"type": "object",
"properties": {
"action": {
"type": "string"
},
"actionParameters": {},
"subject": {
"type": "string"
},
"properties": {},
"conditions": {},
"role": {
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"attributes": {
"type": "object",
"properties": {}
}
}
}
}
},
"createdAt": {
"type": "string",
"format": "date-time"
},
"updatedAt": {
"type": "string",
"format": "date-time"
},
"createdBy": {
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"attributes": {
"type": "object",
"properties": {}
}
}
}
}
},
"updatedBy": {
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"attributes": {
"type": "object",
"properties": {}
}
}
}
}
}
}
}
}
}
}
}
},
"createdAt": {
"type": "string",
"format": "date-time"
},
"updatedAt": {
"type": "string",
"format": "date-time"
},
"createdBy": {
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"attributes": {
"type": "object",
"properties": {}
}
}
}
}
},
"updatedBy": {
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"attributes": {
"type": "object",
"properties": {}
}
}
}
}
}
}
}
}
}
}
}
},
"blocked": {
"type": "boolean"
},
"preferedLanguage": {
"type": "string"
},
"createdAt": {
"type": "string",
"format": "date-time"
},
"updatedAt": {
"type": "string",
"format": "date-time"
},
"createdBy": {
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"attributes": {
"type": "object",
"properties": {}
}
}
}
}
},
"updatedBy": {
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"attributes": {
"type": "object",
"properties": {}
}
}
}
}
}
}
}
}
}
}
},
"updatedBy": {
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"attributes": {
"type": "object",
"properties": {}
}
}
}
}
},
"localizations": {
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"$ref": "#/components/schemas/HookListResponseDataItemLocalized"
}
}
}
},
"locale": {
"type": "string"
}
}
},
"HookResponseDataObject": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"attributes": {
"$ref": "#/components/schemas/Hook"
}
}
},
"HookResponse": {
"type": "object",
"properties": {
"data": {
"$ref": "#/components/schemas/HookResponseDataObject"
},
"meta": {
"type": "object"
}
}
},
"HookSampleComponent": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"content": {
"type": "string"
}
}
},
"LegacyHookListResponseDataItemLocalized": {
"type": "object",
"properties": {
"id": {
"type": "number"
}
}
},
"LegacyHookListResponseDataItem": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"attributes": {
"$ref": "#/components/schemas/LegacyHook"
}
}
},
"LegacyHookListResponse": {
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"$ref": "#/components/schemas/LegacyHookListResponseDataItem"
}
},
"meta": {
"type": "object",
"properties": {
"pagination": {
"type": "object",
"properties": {
"page": {
"type": "integer"
},
"pageSize": {
"type": "integer",
"minimum": 25
},
"pageCount": {
"type": "integer",
"maximum": 1
},
"total": {
"type": "integer"
}
}
}
}
}
}
},
"LegacyHook": {
"type": "object",
"required": [
"title"
],
"properties": {
"creator": {
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"attributes": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"linkedinprofile": {
"type": "string"
},
"picture": {
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"attributes": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"alternativeText": {
"type": "string"
},
"caption": {
"type": "string"
},
"width": {
"type": "integer"
},
"height": {
"type": "integer"
},
"formats": {},
"hash": {
"type": "string"
},
"ext": {
"type": "string"
},
"mime": {
"type": "string"
},
"size": {
"type": "number",
"format": "float"
},
"url": {
"type": "string"
},
"previewUrl": {
"type": "string"
},
"provider": {
"type": "string"
},
"provider_metadata": {},
"related": {
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"attributes": {
"type": "object",
"properties": {}
}
}
}
}
}
},
"folder": {
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"attributes": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"pathId": {
"type": "integer"
},
"parent": {
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"attributes": {
"type": "object",
"properties": {}
}
}
}
}
},
"children": {
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"attributes": {
"type": "object",
"properties": {}
}
}
}
}
}
},
"files": {
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"attributes": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"alternativeText": {
"type": "string"
},
"caption": {
"type": "string"
},
"width": {
"type": "integer"
},
"height": {
"type": "integer"
},
"formats": {},
"hash": {
"type": "string"
},
"ext": {
"type": "string"
},
"mime": {
"type": "string"
},
"size": {
"type": "number",
"format": "float"
},
"url": {
"type": "string"
},
"previewUrl": {
"type": "string"
},
"provider": {
"type": "string"
},
"provider_metadata": {},
"related": {
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"attributes": {
"type": "object",
"properties": {}
}
}
}
}
}
},
"folder": {
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"attributes": {
"type": "object",
"properties": {}
}
}
}
}
},
"folderPath": {
"type": "string"
},
"createdAt": {
"type": "string",
"format": "date-time"
},
"updatedAt": {
"type": "string",
"format": "date-time"
},
"createdBy": {
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"attributes": {
"type": "object",
"properties": {
"firstname": {
"type": "string"
},
"lastname": {
"type": "string"
},
"username": {
"type": "string"
},
"email": {
"type": "string",
"format": "email"
},
"resetPasswordToken": {
"type": "string"
},
"registrationToken": {
"type": "string"
},
"isActive": {
"type": "boolean"
},
"roles": {
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"attributes": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"code": {
"type": "string"
},
"description": {
"type": "string"
},
"users": {
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"attributes": {
"type": "object",
"properties": {}
}
}
}
}
}
},
"permissions": {
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"attributes": {
"type": "object",
"properties": {
"action": {
"type": "string"
},
"actionParameters": {},
"subject": {
"type": "string"
},
"properties": {},
"conditions": {},
"role": {
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"attributes": {
"type": "object",
"properties": {}
}
}
}
}
},
"createdAt": {
"type": "string",
"format": "date-time"
},
"updatedAt": {
"type": "string",
"format": "date-time"
},
"createdBy": {
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"attributes": {
"type": "object",
"properties": {}
}
}
}
}
},
"updatedBy": {
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"attributes": {
"type": "object",
"properties": {}
}
}
}
}
}
}
}
}
}
}
}
},
"createdAt": {
"type": "string",
"format": "date-time"
},
"updatedAt": {
"type": "string",
"format": "date-time"
},
"createdBy": {
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"attributes": {
"type": "object",
"properties": {}
}
}
}
}
},
"updatedBy": {
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"attributes": {
"type": "object",
"properties": {}
}
}
}
}
}
}
}
}
}
}
}
},
"blocked": {
"type": "boolean"
},
"preferedLanguage": {
"type": "string"
},
"createdAt": {
"type": "string",
"format": "date-time"
},
"updatedAt": {
"type": "string",
"format": "date-time"
},
"createdBy": {
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"attributes": {
"type": "object",
"properties": {}
}
}
}
}
},
"updatedBy": {
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"attributes": {
"type": "object",
"properties": {}
}
}
}
}
}
}
}
}
}
}
},
"updatedBy": {
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"attributes": {
"type": "object",
"properties": {}
}
}
}
}
}
}
}
}
}
}
}
},
"path": {
"type": "string"
},
"createdAt": {
"type": "string",
"format": "date-time"
},
"updatedAt": {
"type": "string",
"format": "date-time"
},
"createdBy": {
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"attributes": {
"type": "object",
"properties": {}
}
}
}
}
},
"updatedBy": {
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"attributes": {
"type": "object",
"properties": {}
}
}
}
}
}
}
}
}
}
}
},
"folderPath": {
"type": "string"
},
"createdAt": {
"type": "string",
"format": "date-time"
},
"updatedAt": {
"type": "string",
"format": "date-time"
},
"createdBy": {
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"attributes": {
"type": "object",
"properties": {}
}
}
}
}
},
"updatedBy": {
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"attributes": {
"type": "object",
"properties": {}
}
}
}
}
}
}
}
}
}
}
},
"hooks": {
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"attributes": {
"type": "object",
"properties": {
"creator": {
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"attributes": {
"type": "object",
"properties": {}
}
}
}
}
},
"comment": {
"type": "string"
},
"hook": {
"type": "string"
},
"title": {
"type": "string"
},
"createdAt": {
"type": "string",
"format": "date-time"
},
"updatedAt": {
"type": "string",
"format": "date-time"
},
"publishedAt": {
"type": "string",
"format": "date-time"
},
"createdBy": {
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"attributes": {
"type": "object",
"properties": {}
}
}
}
}
},
"updatedBy": {
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"attributes": {
"type": "object",
"properties": {}
}
}
}
}
},
"localizations": {
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {}
}
}
},
"locale": {
"type": "string"
}
}
}
}
}
}
}
},
"headline": {
"type": "string"
},
"creator_tags": {
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"attributes": {
"type": "object",
"properties": {
"tag": {
"type": "string"
},
"creators": {
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"attributes": {
"type": "object",
"properties": {}
}
}
}
}
}
},
"createdAt": {
"type": "string",
"format": "date-time"
},
"updatedAt": {
"type": "string",
"format": "date-time"
},
"publishedAt": {
"type": "string",
"format": "date-time"
},
"createdBy": {
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"attributes": {
"type": "object",
"properties": {}
}
}
}
}
},
"updatedBy": {
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"attributes": {
"type": "object",
"properties": {}
}
}
}
}
},
"localizations": {
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {}
}
}
},
"locale": {
"type": "string"
}
}
}
}
}
}
}
},
"urn": {
"type": "string"
},
"createdAt": {
"type": "string",
"format": "date-time"
},
"updatedAt": {
"type": "string",
"format": "date-time"
},
"publishedAt": {
"type": "string",
"format": "date-time"
},
"createdBy": {
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"attributes": {
"type": "object",
"properties": {}
}
}
}
}
},
"updatedBy": {
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"attributes": {
"type": "object",
"properties": {}
}
}
}
}
},
"localizations": {
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {}
}
}
},
"locale": {
"type": "string"
}
}
}
}
}
}
},
"comment": {
"type": "string"
},
"hook": {
"type": "string"
},
"title": {
"type": "string"
},
"createdAt": {
"type": "string",
"format": "date-time"
},
"updatedAt": {
"type": "string",
"format": "date-time"
},
"publishedAt": {
"type": "string",
"format": "date-time"
},
"createdBy": {
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"attributes": {
"type": "object",
"properties": {}
}
}
}
}
},
"updatedBy": {
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"attributes": {
"type": "object",
"properties": {}
}
}
}
}
},
"localizations": {
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"$ref": "#/components/schemas/LegacyHookListResponseDataItemLocalized"
}
}
}
},
"locale": {
"type": "string"
}
}
},
"LegacyHookResponseDataObject": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"attributes": {
"$ref": "#/components/schemas/LegacyHook"
}
}
},
"LegacyHookResponse": {
"type": "object",
"properties": {
"data": {
"$ref": "#/components/schemas/LegacyHookResponseDataObject"
},
"meta": {
"type": "object"
}
}
},
"PublicationListResponseDataItemLocalized": {
"type": "object",
"properties": {
"id": {
"type": "number"
}
}
},
"PublicationListResponseDataItem": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"attributes": {
"$ref": "#/components/schemas/Publication"
}
}
},
"PublicationListResponse": {
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"$ref": "#/components/schemas/PublicationListResponseDataItem"
}
},
"meta": {
"type": "object",
"properties": {
"pagination": {
"type": "object",
"properties": {
"page": {
"type": "integer"
},
"pageSize": {
"type": "integer",
"minimum": 25
},
"pageCount": {
"type": "integer",
"maximum": 1
},
"total": {
"type": "integer"
}
}
}
}
}
}
},
"Publication": {
"type": "object",
"required": [
"url"
],
"properties": {
"title": {
"type": "string"
},
"creator": {
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"attributes": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"linkedinprofile": {
"type": "string"
},
"picture": {
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"attributes": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"alternativeText": {
"type": "string"
},
"caption": {
"type": "string"
},
"width": {
"type": "integer"
},
"height": {
"type": "integer"
},
"formats": {},
"hash": {
"type": "string"
},
"ext": {
"type": "string"
},
"mime": {
"type": "string"
},
"size": {
"type": "number",
"format": "float"
},
"url": {
"type": "string"
},
"previewUrl": {
"type": "string"
},
"provider": {
"type": "string"
},
"provider_metadata": {},
"related": {
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"attributes": {
"type": "object",
"properties": {}
}
}
}
}
}
},
"folder": {
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"attributes": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"pathId": {
"type": "integer"
},
"parent": {
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"attributes": {
"type": "object",
"properties": {}
}
}
}
}
},
"children": {
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"attributes": {
"type": "object",
"properties": {}
}
}
}
}
}
},
"files": {
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"attributes": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"alternativeText": {
"type": "string"
},
"caption": {
"type": "string"
},
"width": {
"type": "integer"
},
"height": {
"type": "integer"
},
"formats": {},
"hash": {
"type": "string"
},
"ext": {
"type": "string"
},
"mime": {
"type": "string"
},
"size": {
"type": "number",
"format": "float"
},
"url": {
"type": "string"
},
"previewUrl": {
"type": "string"
},
"provider": {
"type": "string"
},
"provider_metadata": {},
"related": {
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"attributes": {
"type": "object",
"properties": {}
}
}
}
}
}
},
"folder": {
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"attributes": {
"type": "object",
"properties": {}
}
}
}
}
},
"folderPath": {
"type": "string"
},
"createdAt": {
"type": "string",
"format": "date-time"
},
"updatedAt": {
"type": "string",
"format": "date-time"
},
"createdBy": {
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"attributes": {
"type": "object",
"properties": {
"firstname": {
"type": "string"
},
"lastname": {
"type": "string"
},
"username": {
"type": "string"
},
"email": {
"type": "string",
"format": "email"
},
"resetPasswordToken": {
"type": "string"
},
"registrationToken": {
"type": "string"
},
"isActive": {
"type": "boolean"
},
"roles": {
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"attributes": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"code": {
"type": "string"
},
"description": {
"type": "string"
},
"users": {
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"attributes": {
"type": "object",
"properties": {}
}
}
}
}
}
},
"permissions": {
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"attributes": {
"type": "object",
"properties": {
"action": {
"type": "string"
},
"actionParameters": {},
"subject": {
"type": "string"
},
"properties": {},
"conditions": {},
"role": {
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"attributes": {
"type": "object",
"properties": {}
}
}
}
}
},
"createdAt": {
"type": "string",
"format": "date-time"
},
"updatedAt": {
"type": "string",
"format": "date-time"
},
"createdBy": {
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"attributes": {
"type": "object",
"properties": {}
}
}
}
}
},
"updatedBy": {
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"attributes": {
"type": "object",
"properties": {}
}
}
}
}
}
}
}
}
}
}
}
},
"createdAt": {
"type": "string",
"format": "date-time"
},
"updatedAt": {
"type": "string",
"format": "date-time"
},
"createdBy": {
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"attributes": {
"type": "object",
"properties": {}
}
}
}
}
},
"updatedBy": {
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"attributes": {
"type": "object",
"properties": {}
}
}
}
}
}
}
}
}
}
}
}
},
"blocked": {
"type": "boolean"
},
"preferedLanguage": {
"type": "string"
},
"createdAt": {
"type": "string",
"format": "date-time"
},
"updatedAt": {
"type": "string",
"format": "date-time"
},
"createdBy": {
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"attributes": {
"type": "object",
"properties": {}
}
}
}
}
},
"updatedBy": {
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"attributes": {
"type": "object",
"properties": {}
}
}
}
}
}
}
}
}
}
}
},
"updatedBy": {
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"attributes": {
"type": "object",
"properties": {}
}
}
}
}
}
}
}
}
}
}
}
},
"path": {
"type": "string"
},
"createdAt": {
"type": "string",
"format": "date-time"
},
"updatedAt": {
"type": "string",
"format": "date-time"
},
"createdBy": {
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"attributes": {
"type": "object",
"properties": {}
}
}
}
}
},
"updatedBy": {
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"attributes": {
"type": "object",
"properties": {}
}
}
}
}
}
}
}
}
}
}
},
"folderPath": {
"type": "string"
},
"createdAt": {
"type": "string",
"format": "date-time"
},
"updatedAt": {
"type": "string",
"format": "date-time"
},
"createdBy": {
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"attributes": {
"type": "object",
"properties": {}
}
}
}
}
},
"updatedBy": {
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"attributes": {
"type": "object",
"properties": {}
}
}
}
}
}
}
}
}
}
}
},
"hooks": {
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"attributes": {
"type": "object",
"properties": {
"creator": {
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"attributes": {
"type": "object",
"properties": {}
}
}
}
}
},
"comment": {
"type": "string"
},
"hook": {
"type": "string"
},
"title": {
"type": "string"
},
"createdAt": {
"type": "string",
"format": "date-time"
},
"updatedAt": {
"type": "string",
"format": "date-time"
},
"publishedAt": {
"type": "string",
"format": "date-time"
},
"createdBy": {
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"attributes": {
"type": "object",
"properties": {}
}
}
}
}
},
"updatedBy": {
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"attributes": {
"type": "object",
"properties": {}
}
}
}
}
},
"localizations": {
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {}
}
}
},
"locale": {
"type": "string"
}
}
}
}
}
}
}
},
"headline": {
"type": "string"
},
"creator_tags": {
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"attributes": {
"type": "object",
"properties": {
"tag": {
"type": "string"
},
"creators": {
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"attributes": {
"type": "object",
"properties": {}
}
}
}
}
}
},
"createdAt": {
"type": "string",
"format": "date-time"
},
"updatedAt": {
"type": "string",
"format": "date-time"
},
"publishedAt": {
"type": "string",
"format": "date-time"
},
"createdBy": {
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"attributes": {
"type": "object",
"properties": {}
}
}
}
}
},
"updatedBy": {
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"attributes": {
"type": "object",
"properties": {}
}
}
}
}
},
"localizations": {
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {}
}
}
},
"locale": {
"type": "string"
}
}
}
}
}
}
}
},
"urn": {
"type": "string"
},
"createdAt": {
"type": "string",
"format": "date-time"
},
"updatedAt": {
"type": "string",
"format": "date-time"
},
"publishedAt": {
"type": "string",
"format": "date-time"
},
"createdBy": {
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"attributes": {
"type": "object",
"properties": {}
}
}
}
}
},
"updatedBy": {
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"attributes": {
"type": "object",
"properties": {}
}
}
}
}
},
"localizations": {
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {}
}
}
},
"locale": {
"type": "string"
}
}
}
}
}
}
},
"content": {
"type": "string"
},
"url": {
"type": "string"
},
"media": {
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"attributes": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"alternativeText": {
"type": "string"
},
"caption": {
"type": "string"
},
"width": {
"type": "integer"
},
"height": {
"type": "integer"
},
"formats": {},
"hash": {
"type": "string"
},
"ext": {
"type": "string"
},
"mime": {
"type": "string"
},
"size": {
"type": "number",
"format": "float"
},
"url": {
"type": "string"
},
"previewUrl": {
"type": "string"
},
"provider": {
"type": "string"
},
"provider_metadata": {},
"related": {
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"attributes": {
"type": "object",
"properties": {}
}
}
}
}
}
},
"folder": {
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"attributes": {
"type": "object",
"properties": {}
}
}
}
}
},
"folderPath": {
"type": "string"
},
"createdAt": {
"type": "string",
"format": "date-time"
},
"updatedAt": {
"type": "string",
"format": "date-time"
},
"createdBy": {
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"attributes": {
"type": "object",
"properties": {}
}
}
}
}
},
"updatedBy": {
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"attributes": {
"type": "object",
"properties": {}
}
}
}
}
}
}
}
}
}
}
},
"publication_tags": {
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"attributes": {
"type": "object",
"properties": {
"tag": {
"type": "string"
},
"publications": {
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"attributes": {
"type": "object",
"properties": {
"title": {
"type": "string"
},
"creator": {
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"attributes": {
"type": "object",
"properties": {}
}
}
}
}
},
"content": {
"type": "string"
},
"url": {
"type": "string"
},
"media": {
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"attributes": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"alternativeText": {
"type": "string"
},
"caption": {
"type": "string"
},
"width": {
"type": "integer"
},
"height": {
"type": "integer"
},
"formats": {},
"hash": {
"type": "string"
},
"ext": {
"type": "string"
},
"mime": {
"type": "string"
},
"size": {
"type": "number",
"format": "float"
},
"url": {
"type": "string"
},
"previewUrl": {
"type": "string"
},
"provider": {
"type": "string"
},
"provider_metadata": {},
"related": {
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"attributes": {
"type": "object",
"properties": {}
}
}
}
}
}
},
"folder": {
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"attributes": {
"type": "object",
"properties": {}
}
}
}
}
},
"folderPath": {
"type": "string"
},
"createdAt": {
"type": "string",
"format": "date-time"
},
"updatedAt": {
"type": "string",
"format": "date-time"
},
"createdBy": {
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"attributes": {
"type": "object",
"properties": {}
}
}
}
}
},
"updatedBy": {
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"attributes": {
"type": "object",
"properties": {}
}
}
}
}
}
}
}
}
}
}
},
"publication_tags": {
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"attributes": {
"type": "object",
"properties": {}
}
}
}
}
}
},
"type": {
"type": "string",
"enum": [
"text",
"photo",
"video",
"carrousel",
"pool"
]
},
"createdAt": {
"type": "string",
"format": "date-time"
},
"updatedAt": {
"type": "string",
"format": "date-time"
},
"publishedAt": {
"type": "string",
"format": "date-time"
},
"createdBy": {
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"attributes": {
"type": "object",
"properties": {}
}
}
}
}
},
"updatedBy": {
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"attributes": {
"type": "object",
"properties": {}
}
}
}
}
},
"localizations": {
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {}
}
}
},
"locale": {
"type": "string"
}
}
}
}
}
}
}
},
"createdAt": {
"type": "string",
"format": "date-time"
},
"updatedAt": {
"type": "string",
"format": "date-time"
},
"publishedAt": {
"type": "string",
"format": "date-time"
},
"createdBy": {
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"attributes": {
"type": "object",
"properties": {}
}
}
}
}
},
"updatedBy": {
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"attributes": {
"type": "object",
"properties": {}
}
}
}
}
},
"localizations": {
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {}
}
}
},
"locale": {
"type": "string"
}
}
}
}
}
}
}
},
"type": {
"type": "string",
"enum": [
"text",
"photo",
"video",
"carrousel",
"pool"
]
},
"createdAt": {
"type": "string",
"format": "date-time"
},
"updatedAt": {
"type": "string",
"format": "date-time"
},
"publishedAt": {
"type": "string",
"format": "date-time"
},
"createdBy": {
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"attributes": {
"type": "object",
"properties": {}
}
}
}
}
},
"updatedBy": {
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"attributes": {
"type": "object",
"properties": {}
}
}
}
}
},
"localizations": {
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"$ref": "#/components/schemas/PublicationListResponseDataItemLocalized"
}
}
}
},
"locale": {
"type": "string"
}
}
},
"PublicationResponseDataObject": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"attributes": {
"$ref": "#/components/schemas/Publication"
}
}
},
"PublicationResponse": {
"type": "object",
"properties": {
"data": {
"$ref": "#/components/schemas/PublicationResponseDataObject"
},
"meta": {
"type": "object"
}
}
},
"PublicationTagListResponseDataItemLocalized": {
"type": "object",
"properties": {
"id": {
"type": "number"
}
}
},
"PublicationTagListResponseDataItem": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"attributes": {
"$ref": "#/components/schemas/PublicationTag"
}
}
},
"PublicationTagListResponse": {
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"$ref": "#/components/schemas/PublicationTagListResponseDataItem"
}
},
"meta": {
"type": "object",
"properties": {
"pagination": {
"type": "object",
"properties": {
"page": {
"type": "integer"
},
"pageSize": {
"type": "integer",
"minimum": 25
},
"pageCount": {
"type": "integer",
"maximum": 1
},
"total": {
"type": "integer"
}
}
}
}
}
}
},
"PublicationTag": {
"type": "object",
"properties": {
"tag": {
"type": "string"
},
"publications": {
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"attributes": {
"type": "object",
"properties": {
"title": {
"type": "string"
},
"creator": {
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"attributes": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"linkedinprofile": {
"type": "string"
},
"picture": {
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"attributes": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"alternativeText": {
"type": "string"
},
"caption": {
"type": "string"
},
"width": {
"type": "integer"
},
"height": {
"type": "integer"
},
"formats": {},
"hash": {
"type": "string"
},
"ext": {
"type": "string"
},
"mime": {
"type": "string"
},
"size": {
"type": "number",
"format": "float"
},
"url": {
"type": "string"
},
"previewUrl": {
"type": "string"
},
"provider": {
"type": "string"
},
"provider_metadata": {},
"related": {
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"attributes": {
"type": "object",
"properties": {}
}
}
}
}
}
},
"folder": {
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"attributes": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"pathId": {
"type": "integer"
},
"parent": {
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"attributes": {
"type": "object",
"properties": {}
}
}
}
}
},
"children": {
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"attributes": {
"type": "object",
"properties": {}
}
}
}
}
}
},
"files": {
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"attributes": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"alternativeText": {
"type": "string"
},
"caption": {
"type": "string"
},
"width": {
"type": "integer"
},
"height": {
"type": "integer"
},
"formats": {},
"hash": {
"type": "string"
},
"ext": {
"type": "string"
},
"mime": {
"type": "string"
},
"size": {
"type": "number",
"format": "float"
},
"url": {
"type": "string"
},
"previewUrl": {
"type": "string"
},
"provider": {
"type": "string"
},
"provider_metadata": {},
"related": {
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"attributes": {
"type": "object",
"properties": {}
}
}
}
}
}
},
"folder": {
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"attributes": {
"type": "object",
"properties": {}
}
}
}
}
},
"folderPath": {
"type": "string"
},
"createdAt": {
"type": "string",
"format": "date-time"
},
"updatedAt": {
"type": "string",
"format": "date-time"
},
"createdBy": {
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"attributes": {
"type": "object",
"properties": {
"firstname": {
"type": "string"
},
"lastname": {
"type": "string"
},
"username": {
"type": "string"
},
"email": {
"type": "string",
"format": "email"
},
"resetPasswordToken": {
"type": "string"
},
"registrationToken": {
"type": "string"
},
"isActive": {
"type": "boolean"
},
"roles": {
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"attributes": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"code": {
"type": "string"
},
"description": {
"type": "string"
},
"users": {
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"attributes": {
"type": "object",
"properties": {}
}
}
}
}
}
},
"permissions": {
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"attributes": {
"type": "object",
"properties": {
"action": {
"type": "string"
},
"actionParameters": {},
"subject": {
"type": "string"
},
"properties": {},
"conditions": {},
"role": {
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"attributes": {
"type": "object",
"properties": {}
}
}
}
}
},
"createdAt": {
"type": "string",
"format": "date-time"
},
"updatedAt": {
"type": "string",
"format": "date-time"
},
"createdBy": {
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"attributes": {
"type": "object",
"properties": {}
}
}
}
}
},
"updatedBy": {
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"attributes": {
"type": "object",
"properties": {}
}
}
}
}
}
}
}
}
}
}
}
},
"createdAt": {
"type": "string",
"format": "date-time"
},
"updatedAt": {
"type": "string",
"format": "date-time"
},
"createdBy": {
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"attributes": {
"type": "object",
"properties": {}
}
}
}
}
},
"updatedBy": {
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"attributes": {
"type": "object",
"properties": {}
}
}
}
}
}
}
}
}
}
}
}
},
"blocked": {
"type": "boolean"
},
"preferedLanguage": {
"type": "string"
},
"createdAt": {
"type": "string",
"format": "date-time"
},
"updatedAt": {
"type": "string",
"format": "date-time"
},
"createdBy": {
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"attributes": {
"type": "object",
"properties": {}
}
}
}
}
},
"updatedBy": {
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"attributes": {
"type": "object",
"properties": {}
}
}
}
}
}
}
}
}
}
}
},
"updatedBy": {
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"attributes": {
"type": "object",
"properties": {}
}
}
}
}
}
}
}
}
}
}
}
},
"path": {
"type": "string"
},
"createdAt": {
"type": "string",
"format": "date-time"
},
"updatedAt": {
"type": "string",
"format": "date-time"
},
"createdBy": {
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"attributes": {
"type": "object",
"properties": {}
}
}
}
}
},
"updatedBy": {
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"attributes": {
"type": "object",
"properties": {}
}
}
}
}
}
}
}
}
}
}
},
"folderPath": {
"type": "string"
},
"createdAt": {
"type": "string",
"format": "date-time"
},
"updatedAt": {
"type": "string",
"format": "date-time"
},
"createdBy": {
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"attributes": {
"type": "object",
"properties": {}
}
}
}
}
},
"updatedBy": {
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"attributes": {
"type": "object",
"properties": {}
}
}
}
}
}
}
}
}
}
}
},
"hooks": {
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"attributes": {
"type": "object",
"properties": {
"creator": {
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"attributes": {
"type": "object",
"properties": {}
}
}
}
}
},
"comment": {
"type": "string"
},
"hook": {
"type": "string"
},
"title": {
"type": "string"
},
"createdAt": {
"type": "string",
"format": "date-time"
},
"updatedAt": {
"type": "string",
"format": "date-time"
},
"publishedAt": {
"type": "string",
"format": "date-time"
},
"createdBy": {
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"attributes": {
"type": "object",
"properties": {}
}
}
}
}
},
"updatedBy": {
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"attributes": {
"type": "object",
"properties": {}
}
}
}
}
},
"localizations": {
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {}
}
}
},
"locale": {
"type": "string"
}
}
}
}
}
}
}
},
"headline": {
"type": "string"
},
"creator_tags": {
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"attributes": {
"type": "object",
"properties": {
"tag": {
"type": "string"
},
"creators": {
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"attributes": {
"type": "object",
"properties": {}
}
}
}
}
}
},
"createdAt": {
"type": "string",
"format": "date-time"
},
"updatedAt": {
"type": "string",
"format": "date-time"
},
"publishedAt": {
"type": "string",
"format": "date-time"
},
"createdBy": {
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"attributes": {
"type": "object",
"properties": {}
}
}
}
}
},
"updatedBy": {
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"attributes": {
"type": "object",
"properties": {}
}
}
}
}
},
"localizations": {
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {}
}
}
},
"locale": {
"type": "string"
}
}
}
}
}
}
}
},
"urn": {
"type": "string"
},
"createdAt": {
"type": "string",
"format": "date-time"
},
"updatedAt": {
"type": "string",
"format": "date-time"
},
"publishedAt": {
"type": "string",
"format": "date-time"
},
"createdBy": {
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"attributes": {
"type": "object",
"properties": {}
}
}
}
}
},
"updatedBy": {
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"attributes": {
"type": "object",
"properties": {}
}
}
}
}
},
"localizations": {
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {}
}
}
},
"locale": {
"type": "string"
}
}
}
}
}
}
},
"content": {
"type": "string"
},
"url": {
"type": "string"
},
"media": {
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"attributes": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"alternativeText": {
"type": "string"
},
"caption": {
"type": "string"
},
"width": {
"type": "integer"
},
"height": {
"type": "integer"
},
"formats": {},
"hash": {
"type": "string"
},
"ext": {
"type": "string"
},
"mime": {
"type": "string"
},
"size": {
"type": "number",
"format": "float"
},
"url": {
"type": "string"
},
"previewUrl": {
"type": "string"
},
"provider": {
"type": "string"
},
"provider_metadata": {},
"related": {
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"attributes": {
"type": "object",
"properties": {}
}
}
}
}
}
},
"folder": {
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"attributes": {
"type": "object",
"properties": {}
}
}
}
}
},
"folderPath": {
"type": "string"
},
"createdAt": {
"type": "string",
"format": "date-time"
},
"updatedAt": {
"type": "string",
"format": "date-time"
},
"createdBy": {
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"attributes": {
"type": "object",
"properties": {}
}
}
}
}
},
"updatedBy": {
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"attributes": {
"type": "object",
"properties": {}
}
}
}
}
}
}
}
}
}
}
},
"publication_tags": {
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"attributes": {
"type": "object",
"properties": {
"tag": {
"type": "string"
},
"publications": {
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"attributes": {
"type": "object",
"properties": {}
}
}
}
}
}
},
"createdAt": {
"type": "string",
"format": "date-time"
},
"updatedAt": {
"type": "string",
"format": "date-time"
},
"publishedAt": {
"type": "string",
"format": "date-time"
},
"createdBy": {
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"attributes": {
"type": "object",
"properties": {}
}
}
}
}
},
"updatedBy": {
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"attributes": {
"type": "object",
"properties": {}
}
}
}
}
},
"localizations": {
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {}
}
}
},
"locale": {
"type": "string"
}
}
}
}
}
}
}
},
"type": {
"type": "string",
"enum": [
"text",
"photo",
"video",
"carrousel",
"pool"
]
},
"createdAt": {
"type": "string",
"format": "date-time"
},
"updatedAt": {
"type": "string",
"format": "date-time"
},
"publishedAt": {
"type": "string",
"format": "date-time"
},
"createdBy": {
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"attributes": {
"type": "object",
"properties": {}
}
}
}
}
},
"updatedBy": {
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"attributes": {
"type": "object",
"properties": {}
}
}
}
}
},
"localizations": {
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {}
}
}
},
"locale": {
"type": "string"
}
}
}
}
}
}
}
},
"createdAt": {
"type": "string",
"format": "date-time"
},
"updatedAt": {
"type": "string",
"format": "date-time"
},
"publishedAt": {
"type": "string",
"format": "date-time"
},
"createdBy": {
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"attributes": {
"type": "object",
"properties": {}
}
}
}
}
},
"updatedBy": {
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"attributes": {
"type": "object",
"properties": {}
}
}
}
}
},
"localizations": {
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"$ref": "#/components/schemas/PublicationTagListResponseDataItemLocalized"
}
}
}
},
"locale": {
"type": "string"
}
}
},
"PublicationTagResponseDataObject": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"attributes": {
"$ref": "#/components/schemas/PublicationTag"
}
}
},
"PublicationTagResponse": {
"type": "object",
"properties": {
"data": {
"$ref": "#/components/schemas/PublicationTagResponseDataObject"
},
"meta": {
"type": "object"
}
}
}
}
},
"paths": {
"/call-to-action-tags": {
"get": {
"responses": {
"200": {
"description": "OK",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/CallToActionTagListResponse"
}
}
}
},
"400": {
"description": "Bad Request",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"401": {
"description": "Unauthorized",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"403": {
"description": "Forbidden",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"404": {
"description": "Not Found",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"500": {
"description": "Internal Server Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
}
},
"tags": [
"Call-to-action-tag"
],
"parameters": [
{
"name": "sort",
"in": "query",
"description": "Sort by attributes ascending (asc) or descending (desc)",
"deprecated": false,
"required": false,
"schema": {
"type": "string"
}
},
{
"name": "pagination[withCount]",
"in": "query",
"description": "Return page/pageSize (default: true)",
"deprecated": false,
"required": false,
"schema": {
"type": "boolean"
}
},
{
"name": "pagination[page]",
"in": "query",
"description": "Page number (default: 0)",
"deprecated": false,
"required": false,
"schema": {
"type": "integer"
}
},
{
"name": "pagination[pageSize]",
"in": "query",
"description": "Page size (default: 25)",
"deprecated": false,
"required": false,
"schema": {
"type": "integer"
}
},
{
"name": "pagination[start]",
"in": "query",
"description": "Offset value (default: 0)",
"deprecated": false,
"required": false,
"schema": {
"type": "integer"
}
},
{
"name": "pagination[limit]",
"in": "query",
"description": "Number of entities to return (default: 25)",
"deprecated": false,
"required": false,
"schema": {
"type": "integer"
}
},
{
"name": "fields",
"in": "query",
"description": "Fields to return (ex: title,author)",
"deprecated": false,
"required": false,
"schema": {
"type": "string"
}
},
{
"name": "populate",
"in": "query",
"description": "Relations to return",
"deprecated": false,
"required": false,
"schema": {
"type": "string"
}
},
{
"name": "locale",
"in": "query",
"description": "Locale to apply",
"deprecated": false,
"required": false,
"schema": {
"type": "string"
}
}
],
"operationId": "get_call-to-action-tags"
}
},
"/call-to-action-tags/{id}": {
"get": {
"responses": {
"200": {
"description": "OK",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/CallToActionTagResponse"
}
}
}
},
"400": {
"description": "Bad Request",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"401": {
"description": "Unauthorized",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"403": {
"description": "Forbidden",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"404": {
"description": "Not Found",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"500": {
"description": "Internal Server Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
}
},
"tags": [
"Call-to-action-tag"
],
"parameters": [
{
"name": "id",
"in": "path",
"description": "",
"deprecated": false,
"required": true,
"schema": {
"type": "number"
}
}
],
"operationId": "get_call-to-action-tags_id"
}
},
"/ctas": {
"get": {
"responses": {
"200": {
"description": "OK",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/CtaListResponse"
}
}
}
},
"400": {
"description": "Bad Request",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"401": {
"description": "Unauthorized",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"403": {
"description": "Forbidden",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"404": {
"description": "Not Found",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"500": {
"description": "Internal Server Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
}
},
"tags": [
"Cta"
],
"parameters": [
{
"name": "sort",
"in": "query",
"description": "Sort by attributes ascending (asc) or descending (desc)",
"deprecated": false,
"required": false,
"schema": {
"type": "string"
}
},
{
"name": "pagination[withCount]",
"in": "query",
"description": "Return page/pageSize (default: true)",
"deprecated": false,
"required": false,
"schema": {
"type": "boolean"
}
},
{
"name": "pagination[page]",
"in": "query",
"description": "Page number (default: 0)",
"deprecated": false,
"required": false,
"schema": {
"type": "integer"
}
},
{
"name": "pagination[pageSize]",
"in": "query",
"description": "Page size (default: 25)",
"deprecated": false,
"required": false,
"schema": {
"type": "integer"
}
},
{
"name": "pagination[start]",
"in": "query",
"description": "Offset value (default: 0)",
"deprecated": false,
"required": false,
"schema": {
"type": "integer"
}
},
{
"name": "pagination[limit]",
"in": "query",
"description": "Number of entities to return (default: 25)",
"deprecated": false,
"required": false,
"schema": {
"type": "integer"
}
},
{
"name": "fields",
"in": "query",
"description": "Fields to return (ex: title,author)",
"deprecated": false,
"required": false,
"schema": {
"type": "string"
}
},
{
"name": "populate",
"in": "query",
"description": "Relations to return",
"deprecated": false,
"required": false,
"schema": {
"type": "string"
}
},
{
"name": "locale",
"in": "query",
"description": "Locale to apply",
"deprecated": false,
"required": false,
"schema": {
"type": "string"
}
}
],
"operationId": "get_ctas"
}
},
"/ctas/{id}": {
"get": {
"responses": {
"200": {
"description": "OK",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/CtaResponse"
}
}
}
},
"400": {
"description": "Bad Request",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"401": {
"description": "Unauthorized",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"403": {
"description": "Forbidden",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"404": {
"description": "Not Found",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"500": {
"description": "Internal Server Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
}
},
"tags": [
"Cta"
],
"parameters": [
{
"name": "id",
"in": "path",
"description": "",
"deprecated": false,
"required": true,
"schema": {
"type": "number"
}
}
],
"operationId": "get_ctas_id"
}
},
"/hooks": {
"get": {
"responses": {
"200": {
"description": "OK",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HookListResponse"
}
}
}
},
"400": {
"description": "Bad Request",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"401": {
"description": "Unauthorized",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"403": {
"description": "Forbidden",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"404": {
"description": "Not Found",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"500": {
"description": "Internal Server Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
}
},
"tags": [
"Hook"
],
"parameters": [
{
"name": "sort",
"in": "query",
"description": "Sort by attributes ascending (asc) or descending (desc)",
"deprecated": false,
"required": false,
"schema": {
"type": "string"
}
},
{
"name": "pagination[withCount]",
"in": "query",
"description": "Return page/pageSize (default: true)",
"deprecated": false,
"required": false,
"schema": {
"type": "boolean"
}
},
{
"name": "pagination[page]",
"in": "query",
"description": "Page number (default: 0)",
"deprecated": false,
"required": false,
"schema": {
"type": "integer"
}
},
{
"name": "pagination[pageSize]",
"in": "query",
"description": "Page size (default: 25)",
"deprecated": false,
"required": false,
"schema": {
"type": "integer"
}
},
{
"name": "pagination[start]",
"in": "query",
"description": "Offset value (default: 0)",
"deprecated": false,
"required": false,
"schema": {
"type": "integer"
}
},
{
"name": "pagination[limit]",
"in": "query",
"description": "Number of entities to return (default: 25)",
"deprecated": false,
"required": false,
"schema": {
"type": "integer"
}
},
{
"name": "fields",
"in": "query",
"description": "Fields to return (ex: title,author)",
"deprecated": false,
"required": false,
"schema": {
"type": "string"
}
},
{
"name": "populate",
"in": "query",
"description": "Relations to return",
"deprecated": false,
"required": false,
"schema": {
"type": "string"
}
},
{
"name": "locale",
"in": "query",
"description": "Locale to apply",
"deprecated": false,
"required": false,
"schema": {
"type": "string"
}
}
],
"operationId": "get_hooks"
}
},
"/hooks/{id}": {
"get": {
"responses": {
"200": {
"description": "OK",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HookResponse"
}
}
}
},
"400": {
"description": "Bad Request",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"401": {
"description": "Unauthorized",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"403": {
"description": "Forbidden",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"404": {
"description": "Not Found",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"500": {
"description": "Internal Server Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
}
},
"tags": [
"Hook"
],
"parameters": [
{
"name": "id",
"in": "path",
"description": "",
"deprecated": false,
"required": true,
"schema": {
"type": "number"
}
}
],
"operationId": "get_hooks_id"
}
},
"/legacy-hooks": {
"get": {
"responses": {
"200": {
"description": "OK",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/LegacyHookListResponse"
}
}
}
},
"400": {
"description": "Bad Request",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"401": {
"description": "Unauthorized",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"403": {
"description": "Forbidden",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"404": {
"description": "Not Found",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"500": {
"description": "Internal Server Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
}
},
"tags": [
"Legacy-hook"
],
"parameters": [
{
"name": "sort",
"in": "query",
"description": "Sort by attributes ascending (asc) or descending (desc)",
"deprecated": false,
"required": false,
"schema": {
"type": "string"
}
},
{
"name": "pagination[withCount]",
"in": "query",
"description": "Return page/pageSize (default: true)",
"deprecated": false,
"required": false,
"schema": {
"type": "boolean"
}
},
{
"name": "pagination[page]",
"in": "query",
"description": "Page number (default: 0)",
"deprecated": false,
"required": false,
"schema": {
"type": "integer"
}
},
{
"name": "pagination[pageSize]",
"in": "query",
"description": "Page size (default: 25)",
"deprecated": false,
"required": false,
"schema": {
"type": "integer"
}
},
{
"name": "pagination[start]",
"in": "query",
"description": "Offset value (default: 0)",
"deprecated": false,
"required": false,
"schema": {
"type": "integer"
}
},
{
"name": "pagination[limit]",
"in": "query",
"description": "Number of entities to return (default: 25)",
"deprecated": false,
"required": false,
"schema": {
"type": "integer"
}
},
{
"name": "fields",
"in": "query",
"description": "Fields to return (ex: title,author)",
"deprecated": false,
"required": false,
"schema": {
"type": "string"
}
},
{
"name": "populate",
"in": "query",
"description": "Relations to return",
"deprecated": false,
"required": false,
"schema": {
"type": "string"
}
},
{
"name": "locale",
"in": "query",
"description": "Locale to apply",
"deprecated": false,
"required": false,
"schema": {
"type": "string"
}
}
],
"operationId": "get_legacy-hooks"
}
},
"/legacy-hooks/{id}": {
"get": {
"responses": {
"200": {
"description": "OK",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/LegacyHookResponse"
}
}
}
},
"400": {
"description": "Bad Request",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"401": {
"description": "Unauthorized",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"403": {
"description": "Forbidden",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"404": {
"description": "Not Found",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"500": {
"description": "Internal Server Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
}
},
"tags": [
"Legacy-hook"
],
"parameters": [
{
"name": "id",
"in": "path",
"description": "",
"deprecated": false,
"required": true,
"schema": {
"type": "number"
}
}
],
"operationId": "get_legacy-hooks_id"
}
},
"/publications": {
"get": {
"responses": {
"200": {
"description": "OK",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/PublicationListResponse"
}
}
}
},
"400": {
"description": "Bad Request",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"401": {
"description": "Unauthorized",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"403": {
"description": "Forbidden",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"404": {
"description": "Not Found",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"500": {
"description": "Internal Server Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
}
},
"tags": [
"Publication"
],
"parameters": [
{
"name": "sort",
"in": "query",
"description": "Sort by attributes ascending (asc) or descending (desc)",
"deprecated": false,
"required": false,
"schema": {
"type": "string"
}
},
{
"name": "pagination[withCount]",
"in": "query",
"description": "Return page/pageSize (default: true)",
"deprecated": false,
"required": false,
"schema": {
"type": "boolean"
}
},
{
"name": "pagination[page]",
"in": "query",
"description": "Page number (default: 0)",
"deprecated": false,
"required": false,
"schema": {
"type": "integer"
}
},
{
"name": "pagination[pageSize]",
"in": "query",
"description": "Page size (default: 25)",
"deprecated": false,
"required": false,
"schema": {
"type": "integer"
}
},
{
"name": "pagination[start]",
"in": "query",
"description": "Offset value (default: 0)",
"deprecated": false,
"required": false,
"schema": {
"type": "integer"
}
},
{
"name": "pagination[limit]",
"in": "query",
"description": "Number of entities to return (default: 25)",
"deprecated": false,
"required": false,
"schema": {
"type": "integer"
}
},
{
"name": "fields",
"in": "query",
"description": "Fields to return (ex: title,author)",
"deprecated": false,
"required": false,
"schema": {
"type": "string"
}
},
{
"name": "populate",
"in": "query",
"description": "Relations to return",
"deprecated": false,
"required": false,
"schema": {
"type": "string"
}
},
{
"name": "locale",
"in": "query",
"description": "Locale to apply",
"deprecated": false,
"required": false,
"schema": {
"type": "string"
}
}
],
"operationId": "get_publications"
}
},
"/publications/{id}": {
"get": {
"responses": {
"200": {
"description": "OK",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/PublicationResponse"
}
}
}
},
"400": {
"description": "Bad Request",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"401": {
"description": "Unauthorized",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"403": {
"description": "Forbidden",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"404": {
"description": "Not Found",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"500": {
"description": "Internal Server Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
}
},
"tags": [
"Publication"
],
"parameters": [
{
"name": "id",
"in": "path",
"description": "",
"deprecated": false,
"required": true,
"schema": {
"type": "number"
}
}
],
"operationId": "get_publications_id"
}
},
"/publication-tags": {
"get": {
"responses": {
"200": {
"description": "OK",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/PublicationTagListResponse"
}
}
}
},
"400": {
"description": "Bad Request",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"401": {
"description": "Unauthorized",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"403": {
"description": "Forbidden",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"404": {
"description": "Not Found",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"500": {
"description": "Internal Server Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
}
},
"tags": [
"Publication-tag"
],
"parameters": [
{
"name": "sort",
"in": "query",
"description": "Sort by attributes ascending (asc) or descending (desc)",
"deprecated": false,
"required": false,
"schema": {
"type": "string"
}
},
{
"name": "pagination[withCount]",
"in": "query",
"description": "Return page/pageSize (default: true)",
"deprecated": false,
"required": false,
"schema": {
"type": "boolean"
}
},
{
"name": "pagination[page]",
"in": "query",
"description": "Page number (default: 0)",
"deprecated": false,
"required": false,
"schema": {
"type": "integer"
}
},
{
"name": "pagination[pageSize]",
"in": "query",
"description": "Page size (default: 25)",
"deprecated": false,
"required": false,
"schema": {
"type": "integer"
}
},
{
"name": "pagination[start]",
"in": "query",
"description": "Offset value (default: 0)",
"deprecated": false,
"required": false,
"schema": {
"type": "integer"
}
},
{
"name": "pagination[limit]",
"in": "query",
"description": "Number of entities to return (default: 25)",
"deprecated": false,
"required": false,
"schema": {
"type": "integer"
}
},
{
"name": "fields",
"in": "query",
"description": "Fields to return (ex: title,author)",
"deprecated": false,
"required": false,
"schema": {
"type": "string"
}
},
{
"name": "populate",
"in": "query",
"description": "Relations to return",
"deprecated": false,
"required": false,
"schema": {
"type": "string"
}
},
{
"name": "locale",
"in": "query",
"description": "Locale to apply",
"deprecated": false,
"required": false,
"schema": {
"type": "string"
}
}
],
"operationId": "get_publication-tags"
}
},
"/publication-tags/{id}": {
"get": {
"responses": {
"200": {
"description": "OK",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/PublicationTagResponse"
}
}
}
},
"400": {
"description": "Bad Request",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"401": {
"description": "Unauthorized",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"403": {
"description": "Forbidden",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"404": {
"description": "Not Found",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"500": {
"description": "Internal Server Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
}
},
"tags": [
"Publication-tag"
],
"parameters": [
{
"name": "id",
"in": "path",
"description": "",
"deprecated": false,
"required": true,
"schema": {
"type": "number"
}
}
],
"operationId": "get_publication-tags_id"
}
}
}
}PerfectPost API
API for interact with PerfectPost and LinkedIn.
GET /openai/draft/listList all draft posts.POST /openai/draft/{draftId}Update a draft post.POST /openai/draft/{draftId}/cancelCancel a scheduled draft.POST /openai/draft/createCreate a new draft post.GET /openai/post/listList all posts.GET /openai/post/{id}/commentGet the comments of a post.GET /openai/meGet the user's profile information.
Esquema API original
{
"openapi": "3.1.0",
"info": {
"title": "PerfectPost API",
"description": "API for interact with PerfectPost and LinkedIn.",
"version": "1.0.0"
},
"servers": [
{
"url": "https://api.perfectpost.fr/v1",
"description": "PerfectPost API server"
}
],
"paths": {
"/openai/draft/list": {
"get": {
"operationId": "draftlist",
"summary": "List all draft posts.",
"parameters": [
{
"in": "query",
"name": "limit",
"schema": {
"type": "integer",
"description": "The maximum number of posts to return"
},
"default": 100
},
{
"in": "query",
"name": "offset",
"schema": {
"type": "integer",
"description": "The number of posts to skip"
},
"default": 0
},
{
"in": "query",
"name": "status",
"schema": {
"type": "string",
"enum": [
"idea",
"draft",
"ready",
"scheduled",
"published"
],
"description": "Sort the draft by status"
},
"default": "date"
}
],
"responses": {
"200": {
"description": "Successful response with list of draft posts.",
"content": {
"application/json": {
"schema": {
"type": "array"
}
}
}
}
}
}
},
"/openai/draft/{draftId}": {
"post": {
"operationId": "draftupdate",
"x-openai-isConsequential": true,
"summary": "Update a draft post.",
"parameters": [
{
"in": "path",
"name": "draftId",
"schema": {
"type": "string",
"format": "uuid"
},
"required": true
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"content": {
"type": "string",
"description": "The draft's content."
},
"programmingDate": {
"type": "string",
"format": "date-time",
"description": "The date to program the post."
},
"firstComment": {
"type": "string",
"description": "The first comment of the post."
}
},
"required": [
"content"
]
}
}
}
}
}
},
"/openai/draft/{draftId}/cancel": {
"post": {
"operationId": "draftcancel",
"x-openai-isConsequential": true,
"summary": "Cancel a scheduled draft.",
"parameters": [
{
"in": "path",
"name": "draftId",
"schema": {
"type": "string",
"format": "uuid"
},
"required": true
}
]
}
},
"/openai/draft/create": {
"post": {
"operationId": "draftcreate",
"summary": "Create a new draft post.",
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"content": {
"type": "string",
"description": "The draft's content."
}
},
"required": [
"content"
]
}
}
}
}
}
},
"/openai/post/list": {
"get": {
"operationId": "postlist",
"summary": "List all posts.",
"parameters": [
{
"in": "query",
"name": "begin",
"schema": {
"type": "string",
"format": "date-time"
},
"description": "The start date of the posts to return"
},
{
"in": "query",
"name": "end",
"schema": {
"type": "string",
"format": "date-time"
},
"description": "The start date of the posts to return"
},
{
"in": "query",
"name": "sort",
"schema": {
"type": "string",
"enum": [
"date",
"numLikes",
"numComments",
"numShares",
"numImpressions",
"numVoters"
],
"description": "The field to sort the posts by"
},
"default": "date"
},
{
"in": "query",
"name": "order",
"schema": {
"type": "string",
"enum": [
"asc",
"desc"
],
"description": "The order to sort the posts by"
}
},
{
"in": "query",
"name": "limit",
"schema": {
"type": "integer",
"description": "The maximum number of posts to return"
},
"default": 100
},
{
"in": "query",
"name": "offset",
"schema": {
"type": "integer",
"description": "The number of posts to skip"
},
"default": 0
},
{
"in": "query",
"name": "favorite",
"schema": {
"type": "string",
"description": "Filter the posts by favorite status in PerfectPost",
"enum": [
"favorite",
"other",
"both",
"none"
]
}
},
{
"in": "query",
"name": "medias",
"schema": {
"type": "string",
"description": "Filter the posts by media",
"enum:": [
"video",
"image",
"pdf",
"images",
"poll",
"none"
]
}
},
{
"in": "query",
"name": "categories",
"schema": {
"type": "string",
"description": "Filter the posts by category"
}
},
{
"in": "query",
"name": "objective",
"schema": {
"type": "string",
"description": "Filter the posts by objective",
"enum": [
"tofu",
"mofu",
"bofu"
]
}
},
{
"in": "query",
"name": "search",
"schema": {
"type": "string",
"description": "Filter the posts by search"
}
}
],
"responses": {
"200": {
"description": "Successful response with list of posts.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/PostResult"
}
}
}
}
}
}
},
"/openai/post/{id}/comment": {
"get": {
"operationId": "postcomment",
"summary": "Get the comments of a post.",
"parameters": [
{
"in": "path",
"name": "id",
"schema": {
"type": "string",
"format": "uuid"
},
"required": true
}
],
"responses": {
"200": {
"description": "Successful response with list of comments.",
"content": {
"application/json": {
"schema": {
"type": "array"
}
}
}
}
}
}
},
"/openai/me": {
"get": {
"operationId": "me",
"summary": "Get the user's profile information.",
"responses": {
"200": {
"description": "Successful response with user profile information.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/User"
}
}
}
}
}
}
}
},
"components": {
"securitySchemes": {
"OAuth2": {
"type": "oauth2",
"flows": {
"authorizationCode": {
"authorizationUrl": "https://api.perfectpost.fr/v1/openai/oauth2/authorize",
"tokenUrl": "https://api.perfectpost.fr/v1/openai/oauth2/token",
"scopes": {
"email": "Grants read access to the user's email",
"openid": "Grants read access to the user's OpenID",
"aws.cognito.signin.user.admin": "Grants read/write access to the Admin profile",
"profile": "Grants read access to the user's profile"
}
}
}
}
},
"schemas": {
"PostResult": {
"type": "object",
"properties": {
"pagination": {
"type": "object",
"properties": {
"limit": {
"type": "integer",
"description": "The maximum number of posts to return"
},
"offset": {
"type": "integer",
"description": "The number of posts to skip"
},
"total": {
"type": "integer",
"description": "The total number of posts"
},
"nextPage": {
"type": "string",
"format": "string",
"description": "The URL of the next page"
}
}
},
"data": {
"type": "array",
"items": {
"$ref": "#/components/schemas/Post"
}
}
}
},
"Post": {
"type": "object",
"properties": {
"_id": {
"type": "string",
"format": "uuid",
"description": "The post's unique identifier."
},
"user": {
"type": "string",
"format": "uuid",
"description": "The post's owner."
},
"text": {
"type": "string",
"description": "The post's content."
},
"date": {
"type": "string",
"format": "date-time",
"description": "The post's creation date."
},
"latestSocialData": {
"type": "object",
"properties": {
"date": {
"type": "string",
"format": "date-time",
"description": "The date of the latest social data update."
},
"numLikes": {
"type": "integer",
"description": "The number of likes."
},
"numComments": {
"type": "integer",
"description": "The number of comments."
},
"numShares": {
"type": "integer",
"description": "The number of shares."
},
"numImpressions": {
"type": "integer",
"description": "The number of impressions."
},
"numVoters": {
"type": "integer",
"description": "The number of voters."
}
}
}
},
"required": [
"_id",
"user",
"text",
"date",
"latestSocialData"
]
},
"User": {
"type": "object",
"properties": {
"firstname": {
"type": "string",
"description": "The user's firstname."
},
"lastname": {
"type": "string",
"description": "The user's lastname."
},
"headline": {
"type": "string",
"description": "The user's headline."
},
"vanityName": {
"type": "string",
"description": "The user's vanity name."
},
"picture": {
"type": "string",
"format": "uri",
"description": "The user's profile picture."
},
"background": {
"type": "string",
"format": "uri",
"description": "The user's background picture."
}
}
}
}
},
"security": [
{
"OAuth2": [
"email",
"openid",
"profile",
"aws.cognito.signin.user.admin"
]
}
]
}