POST
/
connections
/
{projectId}
curl --request POST \
--url https://partner.peaka.studio/api/v1/connections/{projectId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"name": "exampleStripeConnection21",
"type": "stripe",
"credential": {
"token": "<stripeToken>"
}
}'
{
  "id": "6243f42a-42d0-4821-a90f-763cda6cda50",
  "name": "exampleStripeConnection21",
  "type": "stripe"
}

Authorizations

Authorization
string
header
required

Use the Authorization header with the value 'Bearer <apiKey>' to authenticate. Partner API Keys have full access; Project API Keys are limited to their project scope. Learn more: https://docs.peaka.com/api-reference/authentication

Path Parameters

projectId
string
required

ID of the project

Body

application/json

Connection Request

The body is of type object.

Response

200 - application/json

Connection created successfully

The response is of type object.