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:

Sandbox:https://api.paas.sandbox.co.passportfintech.com

Production: https://api.paas.co.passportfintech.com

Example

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

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}).

HTTP Codes

VerbDescription
GETThis method is used to retrieve a specific resource or a collection of resources from the server, allowing clients to access and utilize the data efficiently.
POSTAllows you to create or submit a specific action within the platform.
PATCHThis allows you to modify only the fields that need to be changed without altering the entire resource. Ensure that the request body contains only the fields you wish to update in the desired format.
DELETEDelete or revoke permissions or access for a specific user or resource.

Response to DELETE requests will be 204 Content Not Found, with no response body.

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

Query Parameters

GET methods support query parameters. For more details, please review Query Parameters.

Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard