Skip to content

Rotate credentials

GET
/api/managing-entity/{managingEntityIdentifier}/application/{id}/revoke
curl --request GET \
--url https://api.wink.travel/api/managing-entity/d5b8a3c2-9e6f-4a1b-8d34-7c2e1f0a5b69/application/9c2e7f1a-4b8d-4e3c-a5f6-2d9b1e0c7a43/revoke \
--header 'Authorization: Bearer <token>' \
--header 'Wink-Version: 2.0'

Regenerates the application’s clientId and secret key, immediately invalidating the old pair. Update your integration to use the new credentials right away.

managingEntityIdentifier
required
string
""

Identifier of the managing entity that owns the application.

Example
d5b8a3c2-9e6f-4a1b-8d34-7c2e1f0a5b69
id
required
string
""

Identifier of the application whose credentials to rotate.

Example
9c2e7f1a-4b8d-4e3c-a5f6-2d9b1e0c7a43
Wink-Version
string
default: 2.0.0
Allowed values: 2.0

OK

Media type application/json
object
id
required

Unique application identifier whose credentials were rotated.

string format: uuid
"" >= 1 characters
clientId
required

New OAuth2 client identifier. The old clientId is now invalid.

string
""
secretKey
required

New OAuth2 client secret. The old secret is now invalid. Keep this confidential and treat as a password.

string
""
Example
{
"id": "",
"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"
}
}

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
{}