Create Application
POST
/api/managing-entity/{managingEntityIdentifier}/application
const url = 'https://api.wink.travel/api/managing-entity//application';const options = { method: 'POST', headers: {'Wink-Version': '2.0', 'Content-Type': 'application/json'}, body: '{"name":"","ownerIdentifier":"","ownerName":"","redirectUris":[""],"postLogoutRedirectUris":[""],"clientType":"WEB","scopes":[""]}'};
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//application \ --header 'Content-Type: application/json' \ --header 'Wink-Version: 2.0' \ --data '{ "name": "", "ownerIdentifier": "", "ownerName": "", "redirectUris": [ "" ], "postLogoutRedirectUris": [ "" ], "clientType": "WEB", "scopes": [ "" ] }'Create a new application
Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” managingEntityIdentifier
required
string
Identifier of the managing entity that will own the application
Header Parameters
Section titled “Header Parameters ” Wink-Version
string
Request Body required
Section titled “Request Body required ” Media type application/json
object
name
required
Name of the application.
string
Example
App 1 ownerIdentifier
required
Owner ID.
string
Example
company-1 ownerName
required
Text representation of the value.
string
Example
AffiliateAccount 1 redirectUris
Array<string>
postLogoutRedirectUris
Array<string>
clientType
Type of OAuth2 client. WEB (default) uses client secret auth. MOBILE uses PKCE with rotating refresh tokens.
string
Example
WEB scopes
Array<string>
Responses
Section titled “ Responses ”Created
Media type application/json
object
id
required
Unique identifier.
string format: uuid
ownerIdentifier
required
Unique owner record identifier
string format: uuid
ownerName
required
Name of company owner.
string
name
required
Name of this customization application. The first customization for every integrator will have the same name as its company name.
string
redirectUris
Array<string>
postLogoutRedirectUris
Array<string>
clientId
required
Client identifier used to authenticate an Oauth2 or web component request.
string
secretKey
required
Password used to authenticate an Oauth2 request.
string
Example
{ "id": "", "ownerIdentifier": "", "ownerName": "", "name": "", "redirectUris": [ "" ], "postLogoutRedirectUris": [ "" ], "clientId": "", "secretKey": ""}Bad Request
object
type
string format: uri
title
string
status
integer format: int32
detail
string
instance
string format: uri
properties
object
key
additional properties
Example generated
{ "type": "https://example.com", "title": "example", "status": 1, "detail": "example", "instance": "https://example.com", "properties": { "additionalProperty": "example" }}object
type
string format: uri
title
string
status
integer format: int32
detail
string
instance
string format: uri
properties
object
key
additional properties
object
type
string format: uri
title
string
status
integer format: int32
detail
string
instance
string format: uri
properties
object
key
additional properties
object
type
string format: uri
title
string
status
integer format: int32
detail
string
instance
string format: uri
properties
object
key
additional properties
object
type
string format: uri
title
string
status
integer format: int32
detail
string
instance
string format: uri
properties
object
key
additional properties
Unauthorized
Media type */*
object
type
string format: uri
title
string
status
integer format: int32
detail
string
instance
string format: uri
properties
object
key
additional properties
Forbidden
Media type */*
object
type
string format: uri
title
string
status
integer format: int32
detail
string
instance
string format: uri
properties
object
key
additional properties
Internal Server Error
object
Example generated
{}