Create a new destination
This endpoint can be used to create destinations in Census. Each destination requires a different set of credentials in the request payload.
The credentials needed to create each type of connection can be found in the GET /connectors API for most destinations. For OAuth destinations, see this Notion doc.
Request schema
Header parameters
HTTP: basicAuth
HTTP AuthorizationScheme: basic
Request
Contains the information for the connection.
The name of this destination.
The credentials needed to create each type of connection. These can be found in the GET /connectors API for most destinations. For OAuth destinations, see this Notion doc.
The type of connection to be used for this destination. A valid type is the service_name of a connector returned from the /connectors endpoint, where the connector is marked as creatable_via_api.
POST /api/v1/destinations HTTP/1.1 Authorization: Bearer REPLACE_BEARER_TOKEN Content-Type: application/json Host: app.getcensus.com Content-Length: 106 { "service_connection": { "name": "Google Sheets", "credentials": {}, "type": "string" } }
Responses
201
Outcome of the operation.
The id of the created destination.
{ "status": "created", "data": { "id": 12 } }