POST
/
connections
/
{projectId}
/
oauth2
curl --request POST \
  --url https://partner.peaka.studio/api/v1/connections/{projectId}/oauth2 \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "queryParameters": "code=1234&state=xyz&param1=value1&param2=value2"
}'
{
  "id": "6243f42a-42d0-4821-a90f-763cda6cda50",
  "name": "exampleOauth2Connection",
  "type": "google_analytics"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

projectId
string
required

ID of the project

Body

application/json
Oauth2 Callback Body

The body is of type object.

Response

200 - application/json
Connection created successfully

The response is of type object.