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

Authorizations

Authorization
string
headerrequired

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

Body

application/json
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 destination. We do not forward the OAuth code or token to this url. 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.

type
string

The type of destination connection to be managed by this link. The list of valid types can be fetched from /destination_connect_links/types.

Response

201 - application/json
data
object
status
enum<string>

Outcome of the operation.

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