Skip to main content
POST
/
destinations
Create a new destination
curl --request POST \
  --url https://app.getcensus.com/api/v1/destinations \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "service_connection": {
    "name": "Google Sheets",
    "credentials": {},
    "type": "<string>"
  }
}
'
{
  "status": "created",
  "data": {
    "id": 12
  }
}

Authorizations

Authorization
string
header
required

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

Body

application/json
service_connection
object

Contains the information for the connection.

Response

201 - application/json

Destination created successfully

status
enum<string>

Outcome of the operation.

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

"created"

data
object