1. General
YGO Client API
v1
  • v2
  • v1
  • Default Module
    • Overview
    • Core Concepts
    • Authentication
    • Quickstart Guide
    • AI Search & Trip Planning
    • Booking Flow
    • Environments
    • General
      • Check API health status
        GET
      • Get current API key context
        GET
    • AI Search & Trip Planning
      • Send message to YGO AI
    • Product Search (Deprecated)
      • Search for hotel & package offers
      • Get transfers for booking
      • Get package price calendar
    • Bookings
      • Get or create open booking
      • Check offer availability
      • Update open booking
      • Update booking status and trigger workflows
      • List bookings
      • Get booking
    • Schemas
      • Schemas
        • PackageSearchRequest
        • GetPackageCalendarRequest
        • GetBookingRequest
        • ListBookingsRequest
        • SaveBookingStatusRequest
        • SaveOpenBookingRequest
        • GetOpenBookingRequest
        • GetTransfersRequest
        • Product
        • Booking
        • TransferOptionsResponse
        • PackageCalendarResponse
        • ProductTexts
        • BookingDetails
        • TripReference
        • TransferOption
        • PackageCalendarDate
        • LocaleContent
        • BookingItemInput
        • Trip
        • ProductImage
        • TransferImage
        • BookingItem
        • Traveller
        • PickupInformation
        • ProductDetails
        • PackageOffer
        • PickupLocation
        • Image
        • Pickup
        • TourOperator
        • CheckPickup
        • Accommodation
        • TransferRemark
        • Room
        • CancellationPolicy
        • Transport
        • Flight
        • Airport
        • Price
        • PriceByPax
        • SuccessResponse
        • ErrorResponse
        • Hotel
        • HotelFeatures
        • FeatureState
        • RoomFeatures
        • RoomContent
        • Facility
      • Response
        • Unauthorized
  1. General

Get current API key context

GET
/me
Returns the Organization ID and Project ID associated with the API key used in the request. Use this endpoint to:
Verify which Organization and Project your API key belongs to
Confirm you're using the correct API key (sandbox vs production)
Debug authentication issues
Validate API key permissions before making other requests
What are Organizations and Projects?
Organization: Your company or business entity (e.g., "Acme Travel Agency")
Project: An environment within your Organization, either:
Sandbox Project: For testing and development with mock data
Production Project: For live bookings with real travelers and payments
Each API key is tied to exactly one Project, which determines whether requests operate in sandbox or production mode. All bookings, travelers, and data are isolated per Project.

Request

Authorization
or

Responses

🟢200OK
application/json
Successfully retrieved API key context
Bodyapplication/json

🟠401Unauthorized
Request Request Example
Shell
JavaScript
Java
Swift
curl --location 'https://api.ygo.ai/v1/me'
Response Response Example
200 - Sandbox API key context
{
    "Data": {
        "OrgID": "org_acme_travel_001",
        "ProjectID": "proj_acme_sandbox_001",
        "ProjectName": "Acme Travel - Sandbox",
        "Environment": "sandbox"
    },
    "Error": null
}
Modified at 2025-10-16 14:21:03
Previous
Check API health status
Next
Send message to YGO AI
Built with