Title
Page icon
Create new category
Edit page index title
Edit category
Edit link
Partner API
This guide is designed to help our partners integrate seamlessly with our platform, allowing them to create and manage Organisations and Clients under their accounts. Each Organisation can be uniquely customised with different logos, names, available products, scopes, and URLs. Additionally, Organisations can have multiple clients, each associated with a single product.
The Partner API offers robust endpoints to facilitate these operations, including token generation, Organisation management, and Client management. This documentation provides detailed information on how to authenticate, create, and manage organisations and clients.
Billing
Billing is done at the account level, with a detailed usage breakdown provided for each organization and client. This allows for transparent tracking of resource utilization and costs, making it easier to manage and allocate expenses accurately.
Authentication
To interact with the Partner API, you will first need to obtain a token by exchanging your partner client ID and secret. This token will be used to authenticate subsequent requests. In order to receive your partner credentials, please reach out to our sales team.
POST /token
Used to exchange the client_id and client_secret
The returned token is a JWT with a 24h expiry
Example Request
Example Response
Organisation Management
The Organisation Management API provides endpoints for creating and updating Organisations. Each request to these endpoints must include a valid JWT token in the Authorization header Authorization: Bearer {token} . This token can be acquired from the /token endpoint.
Data structure
Attributes
All fields are optional except those marked required.
Example:
Endpoints
GET /organisations
POST /organisations
If no allowed products are supplied then the value will be defaulted to the products attached to the Client's Organisation. When allowed products are supplied then the value can be a subset of the products attached to the Organisation.
Has Production access can only be set to true if the attached Organisation is a production Organisation.
GET /organisations/:id
PUT /organisations/:id
Client Management
The Client Management API deals with OAuth2 clients for each Organisation. OAuth2 Clients represent individual applications. Each Client can be associated with a single product and must be registered with valid redirect URIs.
All endpoints require a valid JWT created by the /oidc/token endpoint.
Data structure
All fields are optional except those marked required.
Values available to the product field can be found in the product id column on the Identity Scopes page.
Example:
Endpoints
GET /organisations/:id/clients
POST /organisations:/id/clients
GET /clients/:id
PUT /clients/:id
@Copyright OneID Limited 2024