POST
/
source_connect_links
curl --request POST \
  --url https://app.getcensus.com/api/v1/source_connect_links \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "type": "postgres",
  "redirect_uri": "<string>"
}'
{
  "status": "created",
  "data": {
    "id": 469,
    "type": "postgres",
    "expiration": "2023-07-22T23:42:47.239Z",
    "revoked": true,
    "uri": "https://app.getcensus.com/pbc?auth=expiring_auth_key",
    "redirect_uri": "<string>",
    "source_id": 123
  }
}

Authorizations

Authorization
string
headerrequired

Bearer token for the current workspace. Can be retrieved from the Workspace's settings page.

Body

application/json
type
string

The type of source connection to be managed by this link. A valid type is the service_name of a source type returned from the /source_types endpoint, where the source type is marked as creatable_via_connect_link.

redirect_uri
string | null

The redirect URI, if any, associated with the Connect Link. The URL that you'd like the end-user to be redirected to after authorizing the source. The redirect URI can be configured globally under your organization settings in the Census UI or on dynamically via the API when creating a Connect Link.

Response

201 - application/json
status
enum<string>

Outcome of the operation.

Available options:
success,
updated,
created,
not_found,
error
data
object