Fetch topic
Retrieve the details of a specific topic
Request schema
Path parameters
source_id
integerrequired
ID of the source
topic_id
integerrequired
ID of the topic
Header parameters
Authorization
stringrequired
HTTP: basicAuth
HTTP AuthorizationScheme: basic
Http + 1.1
GET
https://app.getcensus.com/api/v1/sources/{source_id}/topics/{topic_id}
GET /api/v1/sources/{source_id}/topics/{topic_id} HTTP/1.1 Authorization: Bearer REPLACE_BEARER_TOKEN Host: app.getcensus.com
Responses
200
Successfully retrieved topic details.
404
Http request source not located
200
status
stringrequired
The outcome of the fetch request
enum:
data
objectrequired
id
integer
The id of this topic.
example:
name
string
The name of this topic.
example:
description
string
The description for this topic.
example:
created_at
string
When this topic was created.
format:
example:
updated_at
string
When this topic was last updated.
format:
example:
schema
object
The fields available to be used in syncs, extracted from the sample message along with their respective types
example:
404
status
string
Outcome of the operation.
example:
message
string
Description of the outcome.
example:
{ "status": "success", "data": { "id": 18, "name": "NewAppUsers", "description": "Users that have signed up for our product in the last week.", "created_at": "2021-10-20T02:43:07.120Z", "updated_at": "2021-10-20T02:50:35.477Z", "schema": { "name": "string", "id": "number", "email": "string" } } }