cURL
curl --request GET \ --url https://app.getcensus.com/api/v1/sources/{source_id}/topics \ --header 'Authorization: Bearer <token>'
{ "status": "success", "pagination": { "total_records": 14, "per_page": 25, "prev_page": 1, "page": 2, "next_page": 3, "last_page": 10 }, "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" } } ] }
Bearer token for the current workspace. Can be retrieved from the Workspace's settings page.
ID of the source
Successfully retrieved the list of topics.
A successfully fetched list of results.
The outcome of the request
success
"success"
An object to help you navigate the list of results.
Show child attributes
Total records in the collection.
14
Records on each page.
25
The previous page number, or null for the first page.
null
1
The current page number.
2
The next page number, or null if it's the last page.
3
The number of the last page with records.
10
The list of results.
The id of this topic.
18
The name of this topic.
"NewAppUsers"
The description for this topic.
"Users that have signed up for our product in the last week."
When this topic was created.
"2021-10-20T02:43:07.120Z"
When this topic was last updated.
"2021-10-20T02:50:35.477Z"
The fields available to be used in syncs, extracted from the sample message along with their respective types
{ "name": "string", "id": "number", "email": "string"}
Was this page helpful?