Create a customer-owned OAuth Auth Integration

POST
/v1/auth-integrations

Create a customer-owned OAuth Auth Integration.

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

curl -X POST "https://example.com/v1/auth-integrations" \  -H "Content-Type: application/json" \  -d '{    "authProviderId": "facebook",    "displayName": "Acme Meta App",    "oauthClient": {      "clientId": "1234567890",      "clientSecret": "app-secret",      "scopes": [        "instagram_basic",        "pages_show_list",        "pages_read_engagement"      ]    }  }'
{  "authIntegrationId": "string",  "authProviderId": "string",  "displayName": "string",  "clientReferenceId": "string",  "providerAppId": "string",  "webhookVerifyToken": "string",  "status": "active",  "createdAt": "2019-08-24T14:15:22Z",  "updatedAt": "2019-08-24T14:15:22Z"}
{  "error": {    "code": "validation_error",    "message": "string",    "meta": {      "property1": null,      "property2": null    }  }}