Creates an app integration authentication with import file settings

Creates a new app integration authentication with import file setting.

post
Header parameters
Brand-URLstringRequired

The brand URL of the request. This is used to identify the brand.

Example: YOUR_BRAND_URL
Auth-KeystringRequired

This is used to authenticate the request. If the request is not authenticated, the server will return a 401 Unauthorized response.

Example: YOUR_AUTH_KEY
Body
AppIntegrationIdstringRequired

The id of the app integration to import.

Filestring · binaryRequired

The file setting to import.

Responses
200

The request was successful.

application/json
post
POST /api/v1/app-integrations/authentication/import HTTP/1.1
Host: protocol.jframework.io
Brand-URL: text
Auth-Key: text
Content-Type: multipart/form-data
Accept: */*
Content-Length: 603

{
  "appIntegrationId": "sApKpllz4sAplsmzha",
  "code": "GOOGLE_OAUTH2",
  "name": "Google OAuth2 Integration",
  "projectId": "my-google-project-123",
  "clientId": "1234567890-abc.apps.googleusercontent.com",
  "clientSecret": "GOCSPX-EXAMPLESECRET",
  "redirectURI": "https://subdomain.com/auth/callback",
  "scope": "openid email profile",
  "authEndpoint": "https://accounts.google.com/o/oauth2/auth",
  "tokenEndpoint": "https://oauth2.googleapis.com/token",
  "iconURL": "https://subdomain.com/assets/google-icon.png",
  "tags": "#google #oauth2",
  "description": "Integration for Google OAuth2 authentication.",
  "status": "Active",
  "isDefault": true
}
{
  "success": true,
  "statusCode": 200,
  "message": "The request was successful.",
  "data": {
    "appIntegration": {
      "type": "PaymentGateway",
      "name": "Stripe",
      "domain": "https://stripe.com",
      "description": "Stripe payment gateway",
      "logoURL": null,
      "status": "Active",
      "id": "sApKpllz4sAplsmzha"
    },
    "isDefault": false,
    "status": "Active",
    "description": "description",
    "tags": "tags",
    "iconURL": "iconUrl",
    "tokenEndpoint": "tokenEndpoint",
    "id": "sApKpllz4sAplsmzha",
    "authEndpoint": "authEndpoint",
    "redirectURI": "redirectUri",
    "clientSecret": "clientSecret",
    "clientId": "clientId",
    "projectId": "projectId",
    "name": "name",
    "code": "code",
    "scope": "scope"
  },
  "errors": []
}

Last updated

Was this helpful?