Gamma API
OrganizationsConnections

Start a provider's sign-in

POST
/api/organizations/{slug}/connections/oauth

For a provider whose connection is a consent: answers the provider's sign-in page to send the admin to. They come back to /api/integrations/oauth/callback, which saves the connection and returns them to the Connections page. Nothing is saved before. Within ten minutes, once.

Who may call it: An owner, security admin or admin of the organization. API keys: no.

Authorization

session
cookiegamma.session_token<token>

The session cookie a sign-in sets. Over HTTPS its name carries the __Host- prefix. Browsers send it on their own; other clients keep it from the sign-in response.

Path Parameters

slug*string

The organization's slug, as in its URL.

Request Body

application/json
  1. body
provider*string
Length1 <= length <= 50
name*string
Length1 <= length <= 100
config*
allows?|

What projects may sync through it: for each entity that may, the widest way (bidirectional: both). An entity left out may not sync. Null: everything the provider can.

connectionId?string

The saved connection to connect again โ€” new settings, or a consent that lapsed.

Response Body

OK.

application/json
  1. response
url*string
Example Request
curl -X POST 'http://localhost:3000/api/organizations/string/connections/oauth' \  -H 'Content-Type: application/json' \  -d '{  "provider": "string",  "name": "string",  "config": {    "property1": null,    "property2": null  }}'
Example Response
{  "url": "string"}