Creates an app integration authentication with import file settings
Header parameters
Brand-URLstringRequiredExample:
The brand URL of the request. This is used to identify the brand.
YOUR_BRAND_URL
Auth-KeystringRequiredExample:
This is used to authenticate the request. If the request is not authenticated, the server will return a 401 Unauthorized response.
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
401
The user is not authorized to access the requested resource. The request is missing the required Auth-Key header.
application/json
403
The user's access was denied.
application/json
409
The brand had already been configured with app integration authentication.
application/json
429
API call exceeded rate limit due to too many requests.
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?