Endpoint Structure

Introduction

Understanding the structure of Passport API endpoints is essential for seamless integration. This guide provides a clear breakdown of the base URL, API versioning, and best practices for constructing API requests.

Base URL

All API requests to the Passport platform must be sent to the following base URL:

JSON
Copy

Always ensure that you are using HTTPS to secure data transmission.

API Versioning

Passport API follows a versioning system to ensure backward compatibility. The version is included as part of the endpoint path:

JSON
Copy

Current Stable Version

JSON
Copy

Tip: When integrating, always check the latest API version in this documentation to take advantage of updates and improvements.

Endpoint Structure

Each API endpoint follows a structured format:

JSON
Copy

Example Breakdown

SegmentDescription
{base_url}The root domain where API requests are sent.
{version}The API version (e.g., v1).
{resource}The primary resource being accessed (e.g., iam/oauth/tokens).
{identifier}A unique ID if needed (e.g., in a GET method iam/oauth/tokens/{token_id}).

Request and Response Structure

Request Format

All requests to the API should be structured using JSON and include necessary authentication headers.

Example of Request

JSON
Copy

Response Format

API responses are structured in JSON and provide clear and detailed overview of the object.

Example of Response

JSON
Copy
Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard