Skip to content

Create a workspace connector

POST
/v1/workspaces/{workspaceId}/connections
curl --request POST \
--url https://shareout.site/v1/workspaces/example/connections \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "name": "example", "type": "rest_api", "credentialScope": "shared", "authType": "example", "config": {}, "credentials": {} }'

Admin+. credentialScope: shared (default) or per_user.

workspaceId
required
string

Workspace ID or slug.

Media type application/json
object
name
required
string
type
required
string
Example
rest_api
credentialScope
string
default: shared
Allowed values: shared per_user
authType
string
config
object
credentials
object

Created

Access denied

Media type application/json
object
success
required
boolean
error
required

Human-readable message.

string
code
required

Machine-readable error code.

string
Example
{
"success": false
}