Skip to content
First requestVisit website ↗
Navigation

Create or replace an OAuth connection

Stores encrypted provider credentials for a workspace. For Lead Perfection, this accepts username/password/clientid/appkey and optionally apiBaseUrl.

POST
https://api.channelautomation.com/api/oauth/connections

Authorization

  • BearerAuth
    optional
    HTTP Bearer (JWT)
  • ApiKeyAuth
    optional
    API key in header

Header parameters

  • x-workspace-id
    string
    required

Request body JSON required

  • provider
    string
    required
  • displayName
    optional
    string
  • environment
    optional
    production
    or
    sandbox
    or
    integration
  • credentials
    optional
    object
    • username
      optional
      string
    • password
      optional
      string
      format: password
    • clientid
      optional
      string
    • appkey
      optional
      string
      format: password
    • apiBaseUrl
      optional
      string

Returns

201

Connection saved without returning sensitive fields.

400

Missing required fields.

500

Internal server error
JSON
  • error
    optional
    string
  • details
    optional
    string
  • success
    optional
    boolean

Type to search…

↑↓ navigate↵ selectEsc close