cURL
curl --request POST \ --url https://cloud.activepieces.com/api/v1/global-connections \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "displayName": "<string>", "pieceName": "<string>", "type": "SECRET_TEXT", "value": { "type": "SECRET_TEXT", "secret_text": "<string>" }, "scope": "PLATFORM", "projectIds": [ "<string>" ], "metadata": {}, "pieceVersion": "<string>", "externalId": "<string>" } '
{ "id": "<string>", "created": "<string>", "updated": "<string>", "externalId": "<string>", "displayName": "<string>", "type": "OAUTH2", "pieceName": "<string>", "projectIds": [ "<string>" ], "scope": "PROJECT", "status": "ACTIVE", "pieceVersion": "<string>", "platformId": "<string>", "ownerId": "<string>", "owner": { "id": "<string>", "email": "<string>", "firstName": "<string>", "status": "ACTIVE", "platformRole": "ADMIN", "lastName": "<string>", "created": "<string>", "updated": "<string>", "externalId": "<string>", "platformId": "<string>", "lastActiveDate": "<string>" }, "metadata": {}, "flowIds": [ "<string>" ] }
Use your api key generated from the admin console
SECRET_TEXT
Show child attributes
1
PLATFORM
App connection is a connection to an external app.
OAUTH2
PROJECT
ACTIVE
ADMIN