GET
/
sources
curl --request GET \
  --url https://app.getcensus.com/api/v1/sources \
  --header 'Authorization: Bearer <token>'
{
  "data": [
    {
      "connection_details": {
        "account": "xxxxxxx.us-east-1,",
        "use_keypair": false,
        "user": "DEV,",
        "warehouse": "TEST,"
      },
      "id": 4,
      "label": "Acme Inc. Snowflake",
      "last_test_succeeded": true,
      "last_tested_at": "2023-11-07T05:31:56Z",
      "name": "Snowflake - xxxxxxx.us-east-1",
      "type": [
        "snowflake",
        "redshift",
        "big_query"
      ]
    }
  ],
  "pagination": {
    "last_page": 10,
    "next_page": 3,
    "page": 2,
    "per_page": 25,
    "prev_page": 1,
    "total_records": 14
  },
  "status": "success"
}

Authorizations

Authorization
string
headerrequired

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

page
number
default: 1

Designates which page of results to return. Always starts at 1. If 0 is specified, it defaults to 1.

per_page
number
default: 25

Determines the number of results on each page. It can't exceed 100.

order
enum<string>
default: desc

Organizes the results based on their creation time, either ascending or descending.

Available options:
asc,
desc

Response

200 - application/json
data
object[]
required

The list of results.

pagination
object
required

An object to help you navigate the list of results.

status
enum<string>
required

The outcome of the request

Available options:
success