Create application
const url = 'https://api.wink.travel/api/managing-entity/d5b8a3c2-9e6f-4a1b-8d34-7c2e1f0a5b69/application';const options = { method: 'POST', headers: { 'Wink-Version': '2.0', Authorization: 'Bearer <token>', 'Content-Type': 'application/json' }, body: '{"name":"","redirectUris":[""],"postLogoutRedirectUris":[""],"clientType":"WEB","scopes":[""],"iconIdentifier":""}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.wink.travel/api/managing-entity/d5b8a3c2-9e6f-4a1b-8d34-7c2e1f0a5b69/application \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --header 'Wink-Version: 2.0' \ --data '{ "name": "", "redirectUris": [ "" ], "postLogoutRedirectUris": [ "" ], "clientType": "WEB", "scopes": [ "" ], "iconIdentifier": "" }'Registers a new OAuth2 client application and returns its auto-generated clientId and secret. Store the secret securely immediately—it cannot be retrieved later.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”Identifier of the managing entity that will own the application.
Example
d5b8a3c2-9e6f-4a1b-8d34-7c2e1f0a5b69Header Parameters
Section titled “Header Parameters ”Request Body required
Section titled “Request Body required ”object
Display name of the OAuth2 application.
Example
Wink Inventory IntegrationOAuth2 client type determining authentication flow and security profile: WEB uses client secret auth; SPA and MOBILE use PKCE; MACHINE_2_MACHINE uses client credentials.
Example
WEBOptional Cloudinary public_id reference for this application’s icon (displayed on OAuth2 consent screen). Omit or null for no custom icon.
Responses
Section titled “ Responses ”Created
object
Unique application identifier.
Display name of the newly created OAuth2 application.
OAuth2 client identifier. Use this when exchanging authorization codes for access tokens.
OAuth2 client secret. Keep this confidential. Use with clientId to authenticate requests. Treat as a password.
Example
{ "id": "", "name": "", "redirectUris": [ "" ], "postLogoutRedirectUris": [ "" ], "scopes": [ "" ], "clientId": "", "secretKey": ""}Bad Request
object
object
Example generated
{ "type": "https://example.com", "title": "example", "status": 1, "detail": "example", "instance": "https://example.com", "properties": { "additionalProperty": "example" }}object
object
object
object
object
object
object
object
Unauthorized
object
object
Forbidden
object
object
Internal Server Error
object
Example generated
{}