curl --request GET \
--url https://api.hyra.io/workspace/posts/{workspaceId} \
--header 'Authorization: Bearer <token>'
[
{
"_id": "<string>",
"image_url": "<string>",
"title": "<string>",
"category": "<string>",
"body": "<string>",
"published_by": "<string>",
"workspace": "<string>",
"type": "featured",
"dominant_colour": "<string>",
"text_dark": true,
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
]
Get all the posts from the intranet.
curl --request GET \
--url https://api.hyra.io/workspace/posts/{workspaceId} \
--header 'Authorization: Bearer <token>'
[
{
"_id": "<string>",
"image_url": "<string>",
"title": "<string>",
"category": "<string>",
"body": "<string>",
"published_by": "<string>",
"workspace": "<string>",
"type": "featured",
"dominant_colour": "<string>",
"text_dark": true,
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
]
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Default Response
The response is of type object[]
.