Download OpenAPI specification:Download
Generic IDL for planned content apps in app directory
OAuth2 Authorize endpoint. Please note that this authorization url is configured in the developer portal.
response_type required | string |
client_id required | string |
redirect_uri required | string |
state required | string |
scope | string |
OAuth2 Token endpoint. Please note that this authorization url is configured in the developer portal. The required parameters depend on the grant type requested:
Authorization Code:
Refresh Token
grant_type | string |
code | string |
redirect_uri | string |
client_id | string |
client_secret | string |
refresh_token | string |
{- "refresh_token": "refresh_token",
- "code": "code",
- "grant_type": "grant_type",
- "redirect_uri": "redirect_uri",
- "client_secret": "client_secret",
- "client_id": "client_id"
}
{- "access_token": "access_token",
- "refresh_token": "refresh_token",
- "token_type": "token_type",
- "expires_in": "expires_in"
}
Retrieve media content and optionally filter by search criteria and mediaType. If no parameters are given, the app should return either the contents of the base folder if it has a folder hierarchy or trending/popular media results otherwise.
parentId | string The ID of the parent folder that the user wants to get the children of. |
cursor | string A cursor returned by a previous call to this endpoint. Used to return the next page of results. All params from the previous request must be encoded in the cursor, so that a subsequent call can be made with only the cursor to fetch the next or previous page of results. |
query | string Search text entered by the user |
pageSize | integer Number of results to return per page |
Authorization | string Example: Bearer ahsi1jdi2kcnwjxlo10 Bearer token that allows Hootsuite to issue requests on a user's behalf. This is only present if the app was configured for oauth2 authentication. The token will have been previously returned from /oauth2/token. |
{- "data": [
- {
- "id": "12345qqq",
- "name": "my_picture.jpg",
- "altText": "Picture of a beautiful sunset",
- "mediaType": "Image",
- "mimeType": "image/jpeg",
- "original": {
- "width": 200,
- "height": 200,
- "sizeInBytes": 300
}, - "durationInSeconds": 120,
- "subtitleFileName": "example.en_US.srt",
- "tags": [
- "string"
]
}
], - "metadata": {
- "cursor": {
- "next": "encodedxjatcd83nn39d99093kknext",
- "previous": "encodedxjatcd83nn39d99093kkprev"
}
}
}
This endpoint returns planned content items based on the provided parameters.
startDate | string <date> |
endDate | string <date> |
parentId | string |
cursor | string |
Authorization required | string |
{- "data": [
- {
- "attachments": [
- {
- "subtitles": "subtitles",
- "subtitleFileName": "subtitleFileName",
- "thumbnail": {
- "width": 5,
- "url": "url",
- "height": 2
}, - "original": {
- "sizeInBytes": 5,
- "width": 6,
- "url": "url",
- "height": 1
}, - "durationInSeconds": 0,
- "name": "name",
- "mediaType": "mediaType",
- "id": "id",
- "mimeType": "mimeType"
}, - {
- "subtitles": "subtitles",
- "subtitleFileName": "subtitleFileName",
- "thumbnail": {
- "width": 5,
- "url": "url",
- "height": 2
}, - "original": {
- "sizeInBytes": 5,
- "width": 6,
- "url": "url",
- "height": 1
}, - "durationInSeconds": 0,
- "name": "name",
- "mediaType": "mediaType",
- "id": "id",
- "mimeType": "mimeType"
}
], - "author": {
- "firstName": "firstName",
- "lastName": "lastName",
- "avatarUrl": "avatarUrl",
- "id": "id"
}, - "name": "name",
- "mediaType": "folder",
- "links": [
- "links",
- "links"
], - "dates": {
- "due": "due",
- "created": "created",
- "updated": "updated"
}, - "id": "id",
- "body": "body",
- "permalink": "permalink",
- "tags": [
- "tags",
- "tags"
]
}, - {
- "attachments": [
- {
- "subtitles": "subtitles",
- "subtitleFileName": "subtitleFileName",
- "thumbnail": {
- "width": 5,
- "url": "url",
- "height": 2
}, - "original": {
- "sizeInBytes": 5,
- "width": 6,
- "url": "url",
- "height": 1
}, - "durationInSeconds": 0,
- "name": "name",
- "mediaType": "mediaType",
- "id": "id",
- "mimeType": "mimeType"
}, - {
- "subtitles": "subtitles",
- "subtitleFileName": "subtitleFileName",
- "thumbnail": {
- "width": 5,
- "url": "url",
- "height": 2
}, - "original": {
- "sizeInBytes": 5,
- "width": 6,
- "url": "url",
- "height": 1
}, - "durationInSeconds": 0,
- "name": "name",
- "mediaType": "mediaType",
- "id": "id",
- "mimeType": "mimeType"
}
], - "author": {
- "firstName": "firstName",
- "lastName": "lastName",
- "avatarUrl": "avatarUrl",
- "id": "id"
}, - "name": "name",
- "mediaType": "folder",
- "links": [
- "links",
- "links"
], - "dates": {
- "due": "due",
- "created": "created",
- "updated": "updated"
}, - "id": "id",
- "body": "body",
- "permalink": "permalink",
- "tags": [
- "tags",
- "tags"
]
}
], - "meta": {
- "cursor": "cursor"
}
}