Traveloka Authorization API

The Authorization API from Traveloka — 1 operation(s) for authorization.

Operations 1

POST /oauth/accesstoken #

Documentation

Specifications

Other Resources

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/traveloka-authorization-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

traveloka-authorization-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: LOKA Authorization API
  version: 2.4.8
  description: ''
servers:
- url: https://api.travelokapartnersnetwork.com/v2/
  description: Production server
- url: https://api.travelokapartnersnetwork.com/v2/
  description: Staging server
security:
- OAuthStaging:
  - auth
tags:
- name: Authorization
paths:
  /oauth/accesstoken:
    post:
      tags:
      - Authorization
      parameters:
      - name: Authorization
        in: header
        schema:
          type: string
      description: API call to see sample Access Token response.<br/> Access Tokens has a 60-minutes expiration time and will have to be re-generated before it expires<br/>
      operationId: Generate Token
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              properties:
                client_id:
                  type: string
                  description: Your consumer key
                client_secret:
                  type: string
                  description: Your secret key
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AccessToken'
      x-amazon-apigateway-integration:
        httpMethod: POST
        uri: https://${stageVariables.afcauthBasePath}/oauth2/token?grant_type=client_credentials
        responses:
          default:
            statusCode: '200'
        requestParameters:
          integration.request.header.X-Authorizer-Client-Id: context.authorizer.claims.sub
          integration.request.header.cachebody: method.request.body
          integration.request.header.X-Amzn-Apigateway-Request-Id: context.requestId
          integration.request.header.X-Authorizer-Scopes: context.authorizer.claims.scope
        passthroughBehavior: when_no_match
        cacheNamespace: mycache
        timeoutInMillis: 29000
        cacheKeyParameters:
        - method.request.header.Authorization
        - method.request.querystring.client_id
        - method.request.querystring.client_secret
        - integration.request.header.cachebody
        type: http_proxy
      servers:
      - url: https://auth-api.afc.traveloka.com/
        description: Production
      - url: https://auth-api.afc.staging-traveloka.com/
        description: Staging/sandbox
components:
  schemas:
    AccessToken:
      type: object
      properties:
        token_type:
          type: string
        access_token:
          type: string
        expires_in:
          type: string
  securitySchemes:
    api_gateway_lambda_authorizer:
      type: apiKey
      name: Authorization
      in: header
      x-amazon-apigateway-authtype: custom
      x-amazon-apigateway-authorizer:
        type: token
        authorizerUri: arn:aws:apigateway:ap-southeast-1:lambda:path/2015-03-31/functions/arn:aws:lambda:ap-southeast-1:284600670248:function:afiauth-lambda-authorizer-ac1bec7f8693b057/invocations
        authorizerResultTtlInSeconds: 1800
    sigv4:
      type: apiKey
      name: Authorization
      in: header
      x-amazon-apigateway-authtype: awsSigv4
x-tagGroups:
- name: General
  tags:
  - Authorization
- name: Accommodation
  tags:
  - Content
  - Rate
  - Booking
  - Discovery (Optional)