List all available topics
GET
/topicsAuthorization
AuthorizationBearer token (JWT) · headerrequiredResponses
200Topics found
Array of
objecttypestringrequiredAllowed:
PUBSUBidstringrequirednamestringrequiredpathstringrequiredlabelsobjectShow propertiesHide properties
idstringrequiredcreator-slugstringrequiredpublisher-slugstringrequiredstagestringrequiredcreatedstringrequiredinstitution-slugstringrequired500Internal server error
messagestringrequiredtracestring | nullrequireddeprecatedAlways null. Deprecated; may be removed in a future release.
Request
curl -X GET "/topics" \
-H "Authorization: Bearer YOUR_TOKEN"const response = await fetch("/topics", {
method: "GET",
headers: {
"Authorization": "Bearer YOUR_TOKEN"
}
});Response
[
{
"type": "PUBSUB",
"id": "urn:ard:permanent-livestream:topic-id",
"name": "de.ard.eventhub.dev.urn%3Aard%3Apermanent-livestream%3Atopic-id",
"path": "projects/ard-eventhub/topics/topic-name",
"labels": {
"id": "1234567890",
"creator-slug": "ard-eventhub-swr",
"publisher-slug": "swr-rheinland-pfalz",
"stage": "prod",
"created": "2021-03-25",
"institution-slug": "sudwestrundfunk"
}
}
]{
"message": "Internal Server Error",
"trace": null
}