Connect and verify
Use this page to prove your connection to the Partner API works, or to find out why it doesn’t. If you are starting from nothing, do the Quickstart first.
Prerequisites
Section titled “Prerequisites”-
An OAuth2 application of type Machine-to-machine, with its
client_idandclient_secret. Request the scopeinventory.readfor reads. See Applications. -
An account (managing entity) your token can act for. The token acts as the user who created the application. That user must own the account, or be an accepted member of it, with the section grants your calls need:
ACCOUNT:READ(to read the account itself, as in step 4 below),INVENTORY:READ, andBOOKING:READorBOOKING:WRITEfor booking calls. Pending invitations and deactivated members get nothing. Booking calls also require the account to be a travel agency. -
The right hosts for your environment:
Token endpoint Partner API host Staging https://staging-iam.wink.travel/oauth2/tokenstaging-partner.wink.travel:443Production https://iam.wink.travel/oauth2/tokenpartner.wink.travel:443Credentials do not carry over between the two.
Four facts that explain most first-day problems:
- The host speaks only gRPC. A plain HTTP request, for example opening the host in a browser,
returns
415 Content-Type is missing. That is the healthy response: the server is up. - Tokens last 3 hours. Cache a token and refresh it shortly before it expires.
- IDs are full UUIDs in the 8-4-4-4-12 form. An ID missing a single character is reported as an account that doesn’t exist, which looks exactly like a permissions problem.
- Reflection needs a token. Without one,
listis rejected like any other call.
Verify with grpcurl
Section titled “Verify with grpcurl”Install grpcurl and jq. The examples use staging; drop the
staging- prefix from both hosts for production.
-
Get a token.
client_credentialswith HTTP Basic client authentication:Terminal window export WINK_TOKEN=$(curl -s -X POST https://staging-iam.wink.travel/oauth2/token \-u "<YOUR_CLIENT_ID>:<YOUR_CLIENT_SECRET>" \-d "grant_type=client_credentials" \-d "scope=inventory.read" | jq -r .access_token)The token endpoint also accepts
client_idandclient_secretin the form body, as in the Quickstart. Either style works.If this prints
null, the token request failed. Run it withoutjqto read theerrorcode, and see Quickstart, Step 3. -
List the services. This proves the host, the TLS connection and the token:
Terminal window grpcurl -H "authorization: Bearer $WINK_TOKEN" staging-partner.wink.travel:443 list -
Discover your accounts. Send no
managing-entity-idheader. The response lists every account your token can act for:Terminal window grpcurl -H "authorization: Bearer $WINK_TOKEN" -d '{}' \staging-partner.wink.travel:443 wink.partner.v1.Accounts/ListAccountsexport WINK_ACCOUNT_ID='<accountId from the list>'Copy the ID from this list instead of typing it. An empty list means the token’s user has no accepted membership on any account.
-
Read one account. Name the account in both the header and the request:
Terminal window grpcurl -H "authorization: Bearer $WINK_TOKEN" \-H "managing-entity-id: $WINK_ACCOUNT_ID" \-d "{\"account_id\": \"$WINK_ACCOUNT_ID\"}" \staging-partner.wink.travel:443 wink.partner.v1.Accounts/GetAccount -
Make one real call. This proves the permission guard passes for the section you will use. For example, search a city. The check-in date must be in the future, so change
startDateto one that is (see Quickstart, Step 5):Terminal window grpcurl -H "authorization: Bearer $WINK_TOKEN" \-H "managing-entity-id: $WINK_ACCOUNT_ID" \-d '{"urlName": "bangkok-thailand", "userSession": {"itinerary": {"startDate": "2026-12-01", "nights": 2, "room": {"adults": 2}}, "currencyCode": "USD", "languageCode": "en"}}' \staging-partner.wink.travel:443 wink.partner.v1.Search/SearchByCity
If step 5 returns results, you are connected. Anything else is in the troubleshooting table.
Verify with Postman
Section titled “Verify with Postman”The Partner API is gRPC, so use Postman’s gRPC request type, not a REST request. The REST walkthrough in Setup does not apply to it.
-
Click
New>gRPC. Enterstaging-partner.wink.travel:443and turn TLS on. -
Add your token first, because reflection needs it. Open the
Authorizationtab, chooseBearer Tokenand paste a token: run the token request from step 1 of the grpcurl section, thenecho $WINK_TOKEN. Alternatively, chooseOAuth 2.0, setGrant typetoClient Credentials,Access token URLtohttps://staging-iam.wink.travel/oauth2/token, fill in your client ID and secret, setScopetoinventory.read, and clickGet New Access Token. -
Choose the method. In the method selector, pick Use server reflection. Or choose Import a .proto file and import the files from wink-travel/partner-api-proto.
-
Open the
Metadatatab and addmanaging-entity-idwith your account ID as the value. Leave it out forListAccounts. -
Select
wink.partner.v1.Accounts/ListAccountsand clickInvoke. Then call an account-scoped method such asGetAccountorSearch/SearchByCity.
Troubleshooting
Section titled “Troubleshooting”gRPC reports errors as a status code, not as an HTTP status. In grpcurl the code and message are
printed as ERROR: Code: ... Message: ....
| Symptom | What it means | What to do |
|---|---|---|
UNAUTHENTICATED: Authentication failed | The token is missing, expired or invalid. | Request a new token. Check that the token and the host belong to the same environment (staging or production). |
PERMISSION_DENIED: Access denied | The token is valid, but its user can’t act for the managing-entity-id you sent. Either the ID is wrong or truncated, the user isn’t an accepted member, a section grant is missing (for example ACCOUNT:READ for GetAccount), or a booking call was made from an account that isn’t a travel agency. | Call ListAccounts and use an ID from that list. Then check the membership and section grants. |
ListAccounts returns an empty list | The token’s user has no accepted membership on any account. | Check that the invitation was accepted and the member is active, or use the application creator’s own account. |
INVALID_ARGUMENT | The request body is wrong. The connection and permissions are fine. | Fix the request. The message names the field. |
415 Content-Type is missing on a plain HTTP request | Normal. The host only speaks gRPC. | Use a gRPC client such as grpcurl or Postman. |
An HTML 403 Forbidden page, or grpcurl reports Internal: server closed the stream without sending trailers | The request was blocked before it reached the API. | Contact support with the time of the call. |
Next steps
Section titled “Next steps”- Generate a typed client instead of calling
grpcurlby hand. - Read the Partner API reference for every service and method.
- Review Authentication for scopes and token handling.
