The Aircampi Auth is an identity and access management stack. Here is technical API reference docs for Aircampi Auth.
Quick Links:
There are following group of endpoints.
The authentication and authorization APIs enables you to manage all aspects of user identity when you use Aircampi Auth. It offers endpoints so your users can log in, sign up, log out, access APIs, and more.
Group of endpoints:
The Management API allows you to manage your account programmatically, so you can automate configuration of your environment. Most of the tasks you can perform in the Aircampi Auth Management can also be performed programmatically by using this API.
Group of endpoints:
- Clients
- Client Resources
- Client Permissions
- Resources
- Resource Scopes
- Resource Clients
- Tenants
- Tenant Admins
- Tenant Identity Providers
- Roles
- Role Permissions
- Role Members
- Users
- User Registration
- User Password
- User Permissions
- User Roles
- User Groups
- User Identities
- User Block/Unblock
- User Grants
- Groups
- Group Members
- Group Roles
- Nested Groups
- Tickets
Group of endpoints:
This section contains the information about resources for Aircampi Auth and their fields, and child resources.
Group of models:
To begin an OAuth 2.0 Authorization flow, your application should first send the user to the authorization URL.
Supported types:
- Authorization Code
- Implicit
- Resource Owner Password
- Client Credentials
- Token Exchange
Get Token
Get an Access Token in order to call an API. Optionally, you can also retrieve an ID Token and a Refresh Token. Refresh your Access Token using a Refresh Token you got during authorization.
Go to this operation.
Revoke Token
You can also invalidate a Refresh Token if it has been compromised.
Go to this operation.
Token Info
A protected resource to query an OAuth 2.0 authorization server to determine the active state of an OAuth 2.0 token and to determine meta-information about this token.
Go to this operation.
Get Token
Get an Access Token in order to call an API. Optionally, you can also retrieve an ID Token and a Refresh Token. Refresh your Access Token using a Refresh Token you got during authorization.
Supported Grant Types:
- Password
- Refresh Token
- Authorization Code
- Authorization Code and Verifier
- Client Credentials
- Device Code
- One-Time Password (OTP)
- Token Exchange
Usage:
- Get token with password:
- client_id
required
- grant_type=password
required
- username
required
- password
required
- scope
For example:POST /token HTTP/1.1 Authorization: Basic czZCaGRSa3F0MzpnWDFmQmF0M2JW Content-Type: application/x-www-form-urlencoded client_id=YOUR_CLIENT_ID&grant_type=password&username=YOUR_USERNAME&password=YOUR_PASSWORD
- client_id
- Get token with refresh token:
- client_id
required
- grant_type=refresh_token
required
- refresh_token
required
- scope
For example:POST /token HTTP/1.1 Authorization: Basic czZCaGRSa3F0MzpnWDFmQmF0M2JW Content-Type: application/x-www-form-urlencoded client_id=YOUR_CLIENT_ID&grant_type=refresh_token&refresh_token=YOUR_REFRESH_TOKEN
- client_id
- Get token with authorization code:
- client_id
required
- grant_type=authorization_code
required
- code
required
- redirect_uri
For example:POST /token HTTP/1.1 Authorization: Basic czZCaGRSa3F0MzpnWDFmQmF0M2JW Content-Type: application/x-www-form-urlencoded client_id=YOUR_CLIENT_ID&grant_type=authorization_code&code=YOUR_AUTHORIZATION_CODE
- client_id
- Get token with authorization code verifier:
- client_id
required
- grant_type=authorization_code_verifier
required
- code
required
- code_verifier
required
- redirect_uri
For example:POST /token HTTP/1.1 Authorization: Basic czZCaGRSa3F0MzpnWDFmQmF0M2JW Content-Type: application/x-www-form-urlencoded client_id=YOUR_CLIENT_ID&grant_type=authorization_code&code=YOUR_AUTHORIZATION_CODE&code_verifier=YOUR_CODE_VERIFIER
- client_id
- Get token with client credentials:
- client_id
required
- grant_type=client_credentials
required
- scope
For example:POST /token HTTP/1.1 Authorization: Basic czZCaGRSa3F0MzpnWDFmQmF0M2JW Content-Type: application/x-www-form-urlencoded client_id=YOUR_CLIENT_ID&grant_type=client_credentials
- client_id
- Get token with device code:
- client_id
required
- grant_type=device_code
required
- device_code
required
For example:POST /token HTTP/1.1 Content-Type: application/x-www-form-urlencoded client_id=YOUR_CLIENT_ID&grant_type=device_code&device_code=YOUR_DEVICE_CODE
- client_id
- Get token with one-time password:
- client_id
required
- grant_type=otp
required
- username
required
- otp
required
- scope
For example:POST /token HTTP/1.1 Authorization: Basic czZCaGRSa3F0MzpnWDFmQmF0M2JW Content-Type: application/x-www-form-urlencoded client_id=YOUR_CLIENT_ID&grant_type=otp&username=YOUR_EMAIL_OR_PHONE&otp=YOUR_OTP_CODE
- client_id
- Get token with token exchange:
- client_id
required
- grant_type=token_exchange
required
- subject_token_type
required
- subject_token
required
- scope
For example:POST /token HTTP/1.1 Content-Type: application/x-www-form-urlencoded client_id=YOUR_CLIENT_ID&grant_type=token_exchange&subject_token_type=YOUR_SUBJECT_TOKEN_ISSUER&subject_token=YOUR_SUBJECT_TOKEN
- client_id
query Parameters
client_id required | string <uuid> (client_id) Client Id. System generated uuid |
grant_type required | string (grant_type) Enum: "password" "refresh_token" "authorization_code" "authorization_code_verifier" "client_credentials" "implicit" Grant types |
username | string Resource owner's username, email, or phone number. It is |
password | string Resource owner's secret. It is |
refresh_token | string Refresh Token. It is |
authorization_code | string Authorization Code. The Authorization Code received from the initial /authorize call. It is |
authorization_code_verifier | string Authorization Code Verifier. Cryptographically random key that was used to generate the code_challenge passed to /authorize. It is |
device_code | string Device Code. The device code previously returned from the /device_code endpoint. It is |
otp | string One-Time Password. It is |
subject_token_type | string Subject Token Type. Identity provider can be supported token exchange. For example apple, facebook, ... It is |
subject_token | string Subject Token. Externally-issued identity artifact, representing the user. It is |
fields | string This parameter filters the resource attributes. Only the specified attributes are returned. Format: ?fields=id,name |
header Parameters
Authorization | string (basic_authorization) Default: Basic {{base64_encoded}} Client Identifier and Secret encoded by base64. It is |
Responses
Response samples
- 200
- 405
- 500
- 501
- 503
{- "access_token": "eyJz93a...k4laUWw",
- "refresh_token": "GEbRxBN...edjnXbL",
- "id_token": "eyJ0XAi...4faeEoQ",
- "token_type": "Bearer",
- "expires_in": 86400
}
Revoke Token
Use this endpoint to invalidate a Refresh Token if it has been compromised.
header Parameters
Authorization | string (basic_authorization) Default: Basic {{base64_encoded}} Client Identifier and Secret encoded by base64. It is |
Request Body schema: application/json
Revoke Token
client_id required | string <uuid> (client_id) Client Id. System generated uuid |
token required | string Refresh Token to revoke |
Responses
Request samples
- Payload
{- "client_id": "5b3fa7ba-57d3-4017-a65b-d57dcd2db643",
- "token": "dkafjld...dfkajlds"
}
Response samples
- 405
- 500
- 501
- 503
{- "code": "method_not_allowed",
- "message": "Method not allowed. See https://developer.aircampi.com/api/"
}
Token Info
The introspection endpoint is an OAuth 2.0 endpoint that takes a parameter representing an OAuth 2.0 token and returns a JSON.
The protected resource is using a separate OAuth 2.0 bearer token to authorize or a client identifier and client secret to authenticate itself to the introspection endpoint.
Usage:
The protected resource calls the introspection endpoint using an HTTP POST request with parameters sent as application/x-www-form-urlencoded data.
Get token info with client identifier and client secret:
- token
required
- token_type_hint
For example:POST /tokeninfo HTTP/1.1 Accept: application/json Content-Type: application/x-www-form-urlencoded Authorization: Basic czZCaGRSa3F0MzpnWDFmQmF0M2JW token=mF_9.B5f-4.1JqM
- token
Get token info using bearer token:
- token
required
- token_type_hint
For example:POST /tokeninfo HTTP/1.1 Accept: application/json Content-Type: application/x-www-form-urlencoded Authorization: Bearer 23410913-abewfq.123483 token=2YotnFZFEjr1zCsicMWpAA&token_type_hint=access_token
- token
Authorizations:
query Parameters
token required | string Example: token=mF_9.B5f-4.1JqM Token |
token_type_hint | string (token_type_hint) Enum: "access_token" "refresh_token" "id_token" Example: token_type_hint=access_token Token Type Hint |
fields | string This parameter filters the resource attributes. Only the specified attributes are returned. Format: ?fields=id,name |
header Parameters
required | bearer_authorization (string) or basic_authorization (string)
|
Content-Type required | string Example: application/x-www-form-urlencoded application/x-www-form-urlencoded |
Responses
Response samples
- 200
- 405
- 500
- 501
- 503
{- "active": true,
- "token_type": "Bearer",
- "client_id": "5b3fa7ba-57d3-4017-a65b-d57dcd2db643",
- "scope": "read write email",
- "username": "joe",
- "exp": "2019-08-24T14:15:22Z",
- "iat": "2019-08-24T14:15:22Z",
- "nbf": "2019-08-24T14:15:22Z",
- "subject": "Z5O3upPC88QrAjx00dis",
- "jti": "string"
}
Get User Info
Given the Access Token obtained during login, this endpoint returns a user's info.
This endpoint will work only if openid
was granted as a scope for the Access Token.
The user information included in the response depends on the scopes requested.
For example, a scope of just openid
may return less information than a a scope of openid
profile
email
.
profile
OPTIONAL. This scope value requests access to the End-User's default profile Claims, which are: name, family_name, given_name, middle_name, nickname, preferred_username, profile, picture, website, gender, birthdate, zoneinfo, locale, and updated_at.address
OPTIONAL. This scope value requests access to the address Claim.email
OPTIONAL. This scope value requests access to the email and email_verified Claims.phone
OPTIONAL. This scope value requests access to the phone_number and phone_number_verified Claims.
Multiple scope values MAY be used by creating a space delimited, case sensitive list of ASCII scope values.
Authorizations:
query Parameters
fields | string This parameter filters the resource attributes. Only the specified attributes are returned. Format: ?fields=id,name |
header Parameters
Authorization required | string (bearer_authorization) Default: Bearer {{access_token}} Access Token |
Responses
Response samples
- 200
- 405
- 500
- 501
- 503
{- "sub": "5b3fa7ba-57d3-4017-a65b-d57dcd2db643",
- "name": "Bayaraa Basan Zuuntai",
- "given_name": "Bayaraa",
- "family_name": "Zuuntai",
- "middle_name": "string",
- "nickname": "Joe",
- "email_verified": true,
- "phone": "+1-202-555-0192",
- "phone_verified": true,
- "gender": "male",
- "birthday": "2019-08-24",
- "zoneinfo": "America/Los_Angeles",
- "locale": "en_US",
- "address": {
- "country": "mn",
- "postal_code": 13350,
- "region": "Ulaanbaatar",
- "locality": "Ulaanbaatar",
- "street_address": "string",
- "formatted": "string"
}, - "updated_at": "2019-08-24T14:15:22Z"
}
To begin the Device Authorization Flow, your application should first request a device code.
Get Device Code
This is the flow that input-constrained devices use to access an API. Use this endpoint to get a device code.
query Parameters
client_id required | string <uuid> (client_id) Client Id. System generated uuid |
scope | string The scopes for which you want to request authorization. These must be separated by a space. |
fields | string This parameter filters the resource attributes. Only the specified attributes are returned. Format: ?fields=id,name |
Responses
Response samples
- 200
- 405
- 500
- 501
- 503
{- "device_code": "Ag_EE...ko1p",
- "user_code": "QTZL-MCBW",
- "expires_in": 86400,
- "interval": 10
}
Client Management.
A client in Aircampi Auth can be a native app that executes on a mobile device, a single-page web app that executes on a browser, or a regular web application that executes on a server.
Get clients
Retrieve filtered list of clients.
Authorizations:
query Parameters
fields | string This parameter filters the resource attributes. Only the specified attributes are returned. Format: ?fields=id,name |
expand | string Default: "" When this parameter is provided, the specified children are included in the resource payload (instead of just a link). The value of this query parameter is "all" or "". Example: ?expand=all |
q | string This query parameter defines the where clause. Example: ?q=(id=497f6eca-6276-4993-bfeb-53cbbbba6f08) |
sort | string This parameter sort a resource collection based on the specified attributes. The parameter value is a comma-separated string of attribute names, each optionally followed by a colon and "asc" or "desc". Specify "asc" for ascending and "desc" for descending. For example, ?sort=created_at asc,updated_at desc |
offset | integer >= 0 Default: 0 Used to define the starting position of the item collection. If offset exceeds the item count then no items are returned. |
limit | integer >= 1 Default: 10 This parameter restricts the number of items returned inside the collection. If the limit exceeds the item count then the server will only return the available items. |
total_count | boolean Default: false The item collection representation will include the "estimated row count" when "?total_count=true", otherwise the total_count is not included. |
header Parameters
Authorization required | string (bearer_authorization) Default: Bearer {{access_token}} Access Token |
Responses
Response samples
- 200
- 400
- 401
- 403
- 405
- 429
- 500
- 501
- 503
{- "total_count": 0,
- "count": 0,
- "has_more": true,
- "limit": 0,
- "offset": 10,
- "items": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "client_type": "spa",
- "client_name": "Web App",
- "client_secret": "dksafjl3241894019lkj3241",
- "client_secret_expires_at": "2019-08-24T14:15:22Z",
- "client_description": "Web Client App",
- "client_metadata": { },
- "app_metadata": [
- {
- "key": "language",
- "value": "Mongolian"
}
], - "is_public": false,
- "is_first_party": true,
- "is_global": true,
- "tenant_id": "34f5c98e-f430-457b-a812-92637d0c6fd0",
- "created_by": "ee824cad-d7a6-4f48-87dc-e8461a9201c4",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_by": "deea00dc-b6b6-4412-a483-26ac61e1f6fe",
- "updated_at": "2019-08-24T14:15:22Z",
- "aggregations": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "client_id": "5b3fa7ba-57d3-4017-a65b-d57dcd2db643",
- "resources": 0,
- "permissions": 0,
- "created_by": "ee824cad-d7a6-4f48-87dc-e8461a9201c4",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_by": "deea00dc-b6b6-4412-a483-26ac61e1f6fe",
- "updated_at": "2019-08-24T14:15:22Z"
}, - "resources": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "client_id": "5b3fa7ba-57d3-4017-a65b-d57dcd2db643",
- "resource_id": "4d5215ed-38bb-48ed-879a-fdb9ca58522f",
- "resource_data": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "resource_type": "api",
- "resource_name": "string",
- "resource_description": "string",
- "resource_metadata": { },
- "app_metadata": [
- {
- "key": "language",
- "value": "Mongolian"
}
], - "created_date": "2019-08-24T14:15:22Z",
- "updated_date": "2019-08-24T14:15:22Z"
}, - "created_by": "ee824cad-d7a6-4f48-87dc-e8461a9201c4",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_by": "deea00dc-b6b6-4412-a483-26ac61e1f6fe",
- "updated_at": "2019-08-24T14:15:22Z"
}
], - "permissions": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "client_id": "5b3fa7ba-57d3-4017-a65b-d57dcd2db643",
- "resource_id": "4d5215ed-38bb-48ed-879a-fdb9ca58522f",
- "resource_data": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "resource_type": "api",
- "resource_name": "string",
- "resource_description": "string",
- "resource_metadata": { },
- "app_metadata": [
- {
- "key": "language",
- "value": "Mongolian"
}
], - "created_date": "2019-08-24T14:15:22Z",
- "updated_date": "2019-08-24T14:15:22Z"
}, - "scope_id": "5d3fe357-12dd-4f62-b004-6d1fb3b8454f",
- "scope_data": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "resource_id": "4d5215ed-38bb-48ed-879a-fdb9ca58522f",
- "scope_name": "string",
- "scope_description": "string",
- "created_by": "ee824cad-d7a6-4f48-87dc-e8461a9201c4",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_by": "deea00dc-b6b6-4412-a483-26ac61e1f6fe",
- "updated_at": "2019-08-24T14:15:22Z"
}, - "created_by": "ee824cad-d7a6-4f48-87dc-e8461a9201c4",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_by": "deea00dc-b6b6-4412-a483-26ac61e1f6fe",
- "updated_at": "2019-08-24T14:15:22Z"
}
]
}
]
}
Create a client
Create a client
Authorizations:
query Parameters
fields | string This parameter filters the resource attributes. Only the specified attributes are returned. Format: ?fields=id,name |
expand | string Default: "" When this parameter is provided, the specified children are included in the resource payload (instead of just a link). The value of this query parameter is "all" or "". Example: ?expand=all |
header Parameters
Authorization required | string (bearer_authorization) Default: Bearer {{access_token}} Access Token |
Request Body schema: application/json
Create an Client
object (client_metadata_spa) Common metadata for client | |
client_type | string (client_type) Type of Client
|
client_name required | string Name of Client |
client_description | string Description of Client |
is_public | boolean Default: false Is public or confidential? |
is_first_party | boolean Is first party? |
is_global | boolean Default: true Is global? Global clients can access to all tenants' data. Otherwise, can access specified tenant's data only. |
tenant_id | string <uuid> (tenant_id) Tenant Id. System generated uuid |
Responses
Request samples
- Payload
{- "client_metadata": {
- "grant_types": [
- "password"
], - "urls": {
}, - "refresh_token": {
- "expiration_enabled": false,
- "expiration_lifetime": 2592000
}, - "id_token": {
- "expiration_lifetime": 36000
}, - "oauth": {
}, - "saml": {
}, - "wsfed": {
}
}, - "client_type": "spa",
- "client_name": "Mobile App",
- "client_description": "My Mobile App",
- "is_public": false,
- "is_first_party": true,
- "is_global": true,
- "tenant_id": "34f5c98e-f430-457b-a812-92637d0c6fd0"
}
Response samples
- 201
- 400
- 401
- 403
- 405
- 409
- 429
- 500
- 501
- 503
{- "client_metadata": {
- "grant_types": [
- "password"
], - "urls": {
}, - "refresh_token": {
- "expiration_enabled": false,
- "expiration_lifetime": 2592000
}, - "id_token": {
- "expiration_lifetime": 36000
}, - "oauth": {
}, - "saml": {
}, - "wsfed": {
}
}, - "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "client_type": "spa",
- "client_name": "Web App",
- "client_secret": "dksafjl3241894019lkj3241",
- "client_secret_expires_at": "2019-08-24T14:15:22Z",
- "client_description": "Web Client App",
- "app_metadata": [
- {
- "key": "language",
- "value": "Mongolian"
}
], - "is_public": false,
- "is_first_party": true,
- "is_global": true,
- "tenant_id": "34f5c98e-f430-457b-a812-92637d0c6fd0",
- "created_by": "ee824cad-d7a6-4f48-87dc-e8461a9201c4",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_by": "deea00dc-b6b6-4412-a483-26ac61e1f6fe",
- "updated_at": "2019-08-24T14:15:22Z",
- "aggregations": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "client_id": "5b3fa7ba-57d3-4017-a65b-d57dcd2db643",
- "resources": 0,
- "permissions": 0,
- "created_by": "ee824cad-d7a6-4f48-87dc-e8461a9201c4",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_by": "deea00dc-b6b6-4412-a483-26ac61e1f6fe",
- "updated_at": "2019-08-24T14:15:22Z"
}, - "resources": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "client_id": "5b3fa7ba-57d3-4017-a65b-d57dcd2db643",
- "resource_id": "4d5215ed-38bb-48ed-879a-fdb9ca58522f",
- "resource_data": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "resource_type": "api",
- "resource_name": "string",
- "resource_description": "string",
- "resource_metadata": { },
- "app_metadata": [
- {
- "key": "language",
- "value": "Mongolian"
}
], - "created_date": "2019-08-24T14:15:22Z",
- "updated_date": "2019-08-24T14:15:22Z"
}, - "created_by": "ee824cad-d7a6-4f48-87dc-e8461a9201c4",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_by": "deea00dc-b6b6-4412-a483-26ac61e1f6fe",
- "updated_at": "2019-08-24T14:15:22Z"
}
], - "permissions": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "client_id": "5b3fa7ba-57d3-4017-a65b-d57dcd2db643",
- "resource_id": "4d5215ed-38bb-48ed-879a-fdb9ca58522f",
- "resource_data": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "resource_type": "api",
- "resource_name": "string",
- "resource_description": "string",
- "resource_metadata": { },
- "app_metadata": [
- {
- "key": "language",
- "value": "Mongolian"
}
], - "created_date": "2019-08-24T14:15:22Z",
- "updated_date": "2019-08-24T14:15:22Z"
}, - "scope_id": "5d3fe357-12dd-4f62-b004-6d1fb3b8454f",
- "scope_data": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "resource_id": "4d5215ed-38bb-48ed-879a-fdb9ca58522f",
- "scope_name": "string",
- "scope_description": "string",
- "created_by": "ee824cad-d7a6-4f48-87dc-e8461a9201c4",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_by": "deea00dc-b6b6-4412-a483-26ac61e1f6fe",
- "updated_at": "2019-08-24T14:15:22Z"
}, - "created_by": "ee824cad-d7a6-4f48-87dc-e8461a9201c4",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_by": "deea00dc-b6b6-4412-a483-26ac61e1f6fe",
- "updated_at": "2019-08-24T14:15:22Z"
}
]
}
Get a client
Retrieve client details.
Authorizations:
path Parameters
client_id required | string <uuid> (client_id) Client Id. System generated UUID |
query Parameters
fields | string This parameter filters the resource attributes. Only the specified attributes are returned. Format: ?fields=id,name |
expand | string Default: "" When this parameter is provided, the specified children are included in the resource payload (instead of just a link). The value of this query parameter is "all" or "". Example: ?expand=all |
header Parameters
Authorization required | string (bearer_authorization) Default: Bearer {{access_token}} Access Token |
Responses
Response samples
- 200
- 400
- 401
- 403
- 404
- 405
- 429
- 500
- 501
- 503
{- "client_metadata": {
- "grant_types": [
- "password"
], - "urls": {
}, - "refresh_token": {
- "expiration_enabled": false,
- "expiration_lifetime": 2592000
}, - "id_token": {
- "expiration_lifetime": 36000
}, - "oauth": {
}, - "saml": {
}, - "wsfed": {
}
}, - "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "client_type": "spa",
- "client_name": "Web App",
- "client_secret": "dksafjl3241894019lkj3241",
- "client_secret_expires_at": "2019-08-24T14:15:22Z",
- "client_description": "Web Client App",
- "app_metadata": [
- {
- "key": "language",
- "value": "Mongolian"
}
], - "is_public": false,
- "is_first_party": true,
- "is_global": true,
- "tenant_id": "34f5c98e-f430-457b-a812-92637d0c6fd0",
- "created_by": "ee824cad-d7a6-4f48-87dc-e8461a9201c4",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_by": "deea00dc-b6b6-4412-a483-26ac61e1f6fe",
- "updated_at": "2019-08-24T14:15:22Z",
- "aggregations": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "client_id": "5b3fa7ba-57d3-4017-a65b-d57dcd2db643",
- "resources": 0,
- "permissions": 0,
- "created_by": "ee824cad-d7a6-4f48-87dc-e8461a9201c4",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_by": "deea00dc-b6b6-4412-a483-26ac61e1f6fe",
- "updated_at": "2019-08-24T14:15:22Z"
}, - "resources": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "client_id": "5b3fa7ba-57d3-4017-a65b-d57dcd2db643",
- "resource_id": "4d5215ed-38bb-48ed-879a-fdb9ca58522f",
- "resource_data": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "resource_type": "api",
- "resource_name": "string",
- "resource_description": "string",
- "resource_metadata": { },
- "app_metadata": [
- {
- "key": "language",
- "value": "Mongolian"
}
], - "created_date": "2019-08-24T14:15:22Z",
- "updated_date": "2019-08-24T14:15:22Z"
}, - "created_by": "ee824cad-d7a6-4f48-87dc-e8461a9201c4",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_by": "deea00dc-b6b6-4412-a483-26ac61e1f6fe",
- "updated_at": "2019-08-24T14:15:22Z"
}
], - "permissions": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "client_id": "5b3fa7ba-57d3-4017-a65b-d57dcd2db643",
- "resource_id": "4d5215ed-38bb-48ed-879a-fdb9ca58522f",
- "resource_data": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "resource_type": "api",
- "resource_name": "string",
- "resource_description": "string",
- "resource_metadata": { },
- "app_metadata": [
- {
- "key": "language",
- "value": "Mongolian"
}
], - "created_date": "2019-08-24T14:15:22Z",
- "updated_date": "2019-08-24T14:15:22Z"
}, - "scope_id": "5d3fe357-12dd-4f62-b004-6d1fb3b8454f",
- "scope_data": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "resource_id": "4d5215ed-38bb-48ed-879a-fdb9ca58522f",
- "scope_name": "string",
- "scope_description": "string",
- "created_by": "ee824cad-d7a6-4f48-87dc-e8461a9201c4",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_by": "deea00dc-b6b6-4412-a483-26ac61e1f6fe",
- "updated_at": "2019-08-24T14:15:22Z"
}, - "created_by": "ee824cad-d7a6-4f48-87dc-e8461a9201c4",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_by": "deea00dc-b6b6-4412-a483-26ac61e1f6fe",
- "updated_at": "2019-08-24T14:15:22Z"
}
]
}
Modify a client
Modify a client
Authorizations:
path Parameters
client_id required | string <uuid> (client_id) Client Id. System generated UUID |
query Parameters
fields | string This parameter filters the resource attributes. Only the specified attributes are returned. Format: ?fields=id,name |
expand | string Default: "" When this parameter is provided, the specified children are included in the resource payload (instead of just a link). The value of this query parameter is "all" or "". Example: ?expand=all |
header Parameters
Authorization required | string (bearer_authorization) Default: Bearer {{access_token}} Access Token |
Request Body schema: application/json
Update an Client
client_name | string Name of Client |
client_description | string Description of Client |
object (client_metadata_spa) Common metadata for client | |
Array of objects (app_metadata) application metadata structure for customize your needs. | |
is_public | boolean Default: false Is public or confidential? |
is_first_party | boolean Is first party? |
is_global | boolean Default: true Is global? Global clients can access to all tenants' data. Otherwise, can access specified tenant's data only. |
tenant_id | string <uuid> (tenant_id) Tenant Id. System generated uuid |
Responses
Request samples
- Payload
{- "client_name": "Changed Client Name",
- "client_description": "Changed Client Description",
- "client_metadata": {
- "grant_types": [
- "password"
], - "urls": {
}, - "refresh_token": {
- "expiration_enabled": false,
- "expiration_lifetime": 2592000
}, - "id_token": {
- "expiration_lifetime": 36000
}, - "oauth": {
}, - "saml": {
}, - "wsfed": {
}
}, - "app_metadata": [
- {
- "key": "language",
- "value": "Mongolian"
}
], - "is_public": false,
- "is_first_party": true,
- "is_global": true,
- "tenant_id": "34f5c98e-f430-457b-a812-92637d0c6fd0"
}
Response samples
- 200
- 400
- 401
- 403
- 404
- 405
- 409
- 429
- 500
- 501
- 503
{- "client_metadata": {
- "grant_types": [
- "password"
], - "urls": {
}, - "refresh_token": {
- "expiration_enabled": false,
- "expiration_lifetime": 2592000
}, - "id_token": {
- "expiration_lifetime": 36000
}, - "oauth": {
}, - "saml": {
}, - "wsfed": {
}
}, - "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "client_type": "spa",
- "client_name": "Web App",
- "client_secret": "dksafjl3241894019lkj3241",
- "client_secret_expires_at": "2019-08-24T14:15:22Z",
- "client_description": "Web Client App",
- "app_metadata": [
- {
- "key": "language",
- "value": "Mongolian"
}
], - "is_public": false,
- "is_first_party": true,
- "is_global": true,
- "tenant_id": "34f5c98e-f430-457b-a812-92637d0c6fd0",
- "created_by": "ee824cad-d7a6-4f48-87dc-e8461a9201c4",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_by": "deea00dc-b6b6-4412-a483-26ac61e1f6fe",
- "updated_at": "2019-08-24T14:15:22Z",
- "aggregations": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "client_id": "5b3fa7ba-57d3-4017-a65b-d57dcd2db643",
- "resources": 0,
- "permissions": 0,
- "created_by": "ee824cad-d7a6-4f48-87dc-e8461a9201c4",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_by": "deea00dc-b6b6-4412-a483-26ac61e1f6fe",
- "updated_at": "2019-08-24T14:15:22Z"
}, - "resources": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "client_id": "5b3fa7ba-57d3-4017-a65b-d57dcd2db643",
- "resource_id": "4d5215ed-38bb-48ed-879a-fdb9ca58522f",
- "resource_data": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "resource_type": "api",
- "resource_name": "string",
- "resource_description": "string",
- "resource_metadata": { },
- "app_metadata": [
- {
- "key": "language",
- "value": "Mongolian"
}
], - "created_date": "2019-08-24T14:15:22Z",
- "updated_date": "2019-08-24T14:15:22Z"
}, - "created_by": "ee824cad-d7a6-4f48-87dc-e8461a9201c4",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_by": "deea00dc-b6b6-4412-a483-26ac61e1f6fe",
- "updated_at": "2019-08-24T14:15:22Z"
}
], - "permissions": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "client_id": "5b3fa7ba-57d3-4017-a65b-d57dcd2db643",
- "resource_id": "4d5215ed-38bb-48ed-879a-fdb9ca58522f",
- "resource_data": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "resource_type": "api",
- "resource_name": "string",
- "resource_description": "string",
- "resource_metadata": { },
- "app_metadata": [
- {
- "key": "language",
- "value": "Mongolian"
}
], - "created_date": "2019-08-24T14:15:22Z",
- "updated_date": "2019-08-24T14:15:22Z"
}, - "scope_id": "5d3fe357-12dd-4f62-b004-6d1fb3b8454f",
- "scope_data": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "resource_id": "4d5215ed-38bb-48ed-879a-fdb9ca58522f",
- "scope_name": "string",
- "scope_description": "string",
- "created_by": "ee824cad-d7a6-4f48-87dc-e8461a9201c4",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_by": "deea00dc-b6b6-4412-a483-26ac61e1f6fe",
- "updated_at": "2019-08-24T14:15:22Z"
}, - "created_by": "ee824cad-d7a6-4f48-87dc-e8461a9201c4",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_by": "deea00dc-b6b6-4412-a483-26ac61e1f6fe",
- "updated_at": "2019-08-24T14:15:22Z"
}
]
}
Delete a client
Delete a client. Default Client cannot be deleted.
Authorizations:
path Parameters
client_id required | string <uuid> (client_id) Client Id. System generated UUID |
header Parameters
Authorization required | string (bearer_authorization) Default: Bearer {{access_token}} Access Token |
Responses
Response samples
- 400
- 401
- 403
- 404
- 405
- 429
- 500
- 501
- 503
{- "code": "invalid_request",
- "message": "Invalid `fields` parameter. See https://developer.aircampi.com/api/query-fields"
}
Change a client secret
Change a client secret
Authorizations:
path Parameters
client_id required | string <uuid> (client_id) Client Id. System generated UUID |
query Parameters
fields | string This parameter filters the resource attributes. Only the specified attributes are returned. Format: ?fields=id,name |
expand | string Default: "" When this parameter is provided, the specified children are included in the resource payload (instead of just a link). The value of this query parameter is "all" or "". Example: ?expand=all |
header Parameters
Authorization required | string (bearer_authorization) Default: Bearer {{access_token}} Access Token |
Responses
Response samples
- 200
- 400
- 401
- 403
- 404
- 405
- 429
- 500
- 501
- 503
{- "client_metadata": {
- "grant_types": [
- "password"
], - "urls": {
}, - "refresh_token": {
- "expiration_enabled": false,
- "expiration_lifetime": 2592000
}, - "id_token": {
- "expiration_lifetime": 36000
}, - "oauth": {
}, - "saml": {
}, - "wsfed": {
}
}, - "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "client_type": "spa",
- "client_name": "Web App",
- "client_secret": "dksafjl3241894019lkj3241",
- "client_secret_expires_at": "2019-08-24T14:15:22Z",
- "client_description": "Web Client App",
- "app_metadata": [
- {
- "key": "language",
- "value": "Mongolian"
}
], - "is_public": false,
- "is_first_party": true,
- "is_global": true,
- "tenant_id": "34f5c98e-f430-457b-a812-92637d0c6fd0",
- "created_by": "ee824cad-d7a6-4f48-87dc-e8461a9201c4",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_by": "deea00dc-b6b6-4412-a483-26ac61e1f6fe",
- "updated_at": "2019-08-24T14:15:22Z",
- "aggregations": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "client_id": "5b3fa7ba-57d3-4017-a65b-d57dcd2db643",
- "resources": 0,
- "permissions": 0,
- "created_by": "ee824cad-d7a6-4f48-87dc-e8461a9201c4",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_by": "deea00dc-b6b6-4412-a483-26ac61e1f6fe",
- "updated_at": "2019-08-24T14:15:22Z"
}, - "resources": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "client_id": "5b3fa7ba-57d3-4017-a65b-d57dcd2db643",
- "resource_id": "4d5215ed-38bb-48ed-879a-fdb9ca58522f",
- "resource_data": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "resource_type": "api",
- "resource_name": "string",
- "resource_description": "string",
- "resource_metadata": { },
- "app_metadata": [
- {
- "key": "language",
- "value": "Mongolian"
}
], - "created_date": "2019-08-24T14:15:22Z",
- "updated_date": "2019-08-24T14:15:22Z"
}, - "created_by": "ee824cad-d7a6-4f48-87dc-e8461a9201c4",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_by": "deea00dc-b6b6-4412-a483-26ac61e1f6fe",
- "updated_at": "2019-08-24T14:15:22Z"
}
], - "permissions": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "client_id": "5b3fa7ba-57d3-4017-a65b-d57dcd2db643",
- "resource_id": "4d5215ed-38bb-48ed-879a-fdb9ca58522f",
- "resource_data": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "resource_type": "api",
- "resource_name": "string",
- "resource_description": "string",
- "resource_metadata": { },
- "app_metadata": [
- {
- "key": "language",
- "value": "Mongolian"
}
], - "created_date": "2019-08-24T14:15:22Z",
- "updated_date": "2019-08-24T14:15:22Z"
}, - "scope_id": "5d3fe357-12dd-4f62-b004-6d1fb3b8454f",
- "scope_data": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "resource_id": "4d5215ed-38bb-48ed-879a-fdb9ca58522f",
- "scope_name": "string",
- "scope_description": "string",
- "created_by": "ee824cad-d7a6-4f48-87dc-e8461a9201c4",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_by": "deea00dc-b6b6-4412-a483-26ac61e1f6fe",
- "updated_at": "2019-08-24T14:15:22Z"
}, - "created_by": "ee824cad-d7a6-4f48-87dc-e8461a9201c4",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_by": "deea00dc-b6b6-4412-a483-26ac61e1f6fe",
- "updated_at": "2019-08-24T14:15:22Z"
}
]
}
Get client's resources
Retrieve resources associated with a client
Authorizations:
path Parameters
client_id required | string <uuid> (client_id) Client Id. System generated UUID |
query Parameters
fields | string This parameter filters the resource attributes. Only the specified attributes are returned. Format: ?fields=id,name |
expand | string Default: "" When this parameter is provided, the specified children are included in the resource payload (instead of just a link). The value of this query parameter is "all" or "". Example: ?expand=all |
q | string This query parameter defines the where clause. Example: ?q=(id=497f6eca-6276-4993-bfeb-53cbbbba6f08) |
sort | string This parameter sort a resource collection based on the specified attributes. The parameter value is a comma-separated string of attribute names, each optionally followed by a colon and "asc" or "desc". Specify "asc" for ascending and "desc" for descending. For example, ?sort=created_at asc,updated_at desc |
offset | integer >= 0 Default: 0 Used to define the starting position of the item collection. If offset exceeds the item count then no items are returned. |
limit | integer >= 1 Default: 10 This parameter restricts the number of items returned inside the collection. If the limit exceeds the item count then the server will only return the available items. |
total_count | boolean Default: false The item collection representation will include the "estimated row count" when "?total_count=true", otherwise the total_count is not included. |
header Parameters
Authorization required | string (bearer_authorization) Default: Bearer {{access_token}} Access Token |
Responses
Response samples
- 200
- 400
- 401
- 403
- 404
- 405
- 429
- 500
- 501
- 503
{- "total_count": 0,
- "count": 0,
- "has_more": true,
- "limit": 0,
- "offset": 10,
- "items": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "client_id": "5b3fa7ba-57d3-4017-a65b-d57dcd2db643",
- "resource_id": "4d5215ed-38bb-48ed-879a-fdb9ca58522f",
- "resource_data": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "resource_type": "api",
- "resource_name": "string",
- "resource_description": "string",
- "resource_metadata": { },
- "app_metadata": [
- {
- "key": "language",
- "value": "Mongolian"
}
], - "created_date": "2019-08-24T14:15:22Z",
- "updated_date": "2019-08-24T14:15:22Z"
}, - "created_by": "ee824cad-d7a6-4f48-87dc-e8461a9201c4",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_by": "deea00dc-b6b6-4412-a483-26ac61e1f6fe",
- "updated_at": "2019-08-24T14:15:22Z"
}
]
}
Authorize resource to client
Authorize resource to client
Authorizations:
path Parameters
client_id required | string <uuid> (client_id) Client Id. System generated UUID |
header Parameters
Authorization required | string (bearer_authorization) Default: Bearer {{access_token}} Access Token |
Request Body schema: application/json
List of Resources
resources | Array of strings <uuid> (resource_id) |
Responses
Request samples
- Payload
{- "resources": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
]
}
Response samples
- 400
- 401
- 403
- 404
- 405
- 409
- 429
- 500
- 501
- 503
{- "code": "invalid_request",
- "message": "Invalid `fields` parameter. See https://developer.aircampi.com/api/query-fields"
}
Revoke resources from client
Revoke resources from client.
Authorizations:
path Parameters
client_id required | string <uuid> (client_id) Client Id. System generated UUID |
header Parameters
Authorization required | string (bearer_authorization) Default: Bearer {{access_token}} Access Token |
Request Body schema: application/json
List of Resources
resources | Array of strings <uuid> (resource_id) |
Responses
Request samples
- Payload
{- "resources": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
]
}
Response samples
- 400
- 401
- 403
- 404
- 405
- 429
- 500
- 501
- 503
{- "code": "invalid_request",
- "message": "Invalid `fields` parameter. See https://developer.aircampi.com/api/query-fields"
}
Get client permissions
Get client permissions
Authorizations:
path Parameters
client_id required | string <uuid> (client_id) Client Id. System generated UUID |
query Parameters
fields | string This parameter filters the resource attributes. Only the specified attributes are returned. Format: ?fields=id,name |
expand | string Default: "" When this parameter is provided, the specified children are included in the resource payload (instead of just a link). The value of this query parameter is "all" or "". Example: ?expand=all |
q | string This query parameter defines the where clause. Example: ?q=(id=497f6eca-6276-4993-bfeb-53cbbbba6f08) |
sort | string This parameter sort a resource collection based on the specified attributes. The parameter value is a comma-separated string of attribute names, each optionally followed by a colon and "asc" or "desc". Specify "asc" for ascending and "desc" for descending. For example, ?sort=created_at asc,updated_at desc |
offset | integer >= 0 Default: 0 Used to define the starting position of the item collection. If offset exceeds the item count then no items are returned. |
limit | integer >= 1 Default: 10 This parameter restricts the number of items returned inside the collection. If the limit exceeds the item count then the server will only return the available items. |
total_count | boolean Default: false The item collection representation will include the "estimated row count" when "?total_count=true", otherwise the total_count is not included. |
header Parameters
Authorization required | string (bearer_authorization) Default: Bearer {{access_token}} Access Token |
Responses
Response samples
- 200
- 400
- 401
- 403
- 404
- 405
- 429
- 500
- 501
- 503
{- "total_count": 0,
- "count": 0,
- "has_more": true,
- "limit": 0,
- "offset": 10,
- "items": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "client_id": "5b3fa7ba-57d3-4017-a65b-d57dcd2db643",
- "resource_id": "4d5215ed-38bb-48ed-879a-fdb9ca58522f",
- "resource_data": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "resource_type": "api",
- "resource_name": "string",
- "resource_description": "string",
- "resource_metadata": { },
- "app_metadata": [
- {
- "key": "language",
- "value": "Mongolian"
}
], - "created_date": "2019-08-24T14:15:22Z",
- "updated_date": "2019-08-24T14:15:22Z"
}, - "scope_id": "5d3fe357-12dd-4f62-b004-6d1fb3b8454f",
- "scope_data": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "resource_id": "4d5215ed-38bb-48ed-879a-fdb9ca58522f",
- "scope_name": "string",
- "scope_description": "string",
- "created_by": "ee824cad-d7a6-4f48-87dc-e8461a9201c4",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_by": "deea00dc-b6b6-4412-a483-26ac61e1f6fe",
- "updated_at": "2019-08-24T14:15:22Z"
}, - "created_by": "ee824cad-d7a6-4f48-87dc-e8461a9201c4",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_by": "deea00dc-b6b6-4412-a483-26ac61e1f6fe",
- "updated_at": "2019-08-24T14:15:22Z"
}
]
}
Grant permissions to a client
Grant permissions to a client
Authorizations:
path Parameters
client_id required | string <uuid> (client_id) Client Id. System generated UUID |
header Parameters
Authorization required | string (bearer_authorization) Default: Bearer {{access_token}} Access Token |
Request Body schema: application/json
List of Permissions
Array of objects | |||||
Array
|
Responses
Request samples
- Payload
{- "permissions": [
- {
- "resource_id": "4d5215ed-38bb-48ed-879a-fdb9ca58522f",
- "scopes": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
]
}
]
}
Response samples
- 400
- 401
- 403
- 404
- 405
- 409
- 429
- 500
- 501
- 503
{- "code": "invalid_request",
- "message": "Invalid `fields` parameter. See https://developer.aircampi.com/api/query-fields"
}
Revoke permissions from a client
Revoke permissions from a client
Authorizations:
path Parameters
client_id required | string <uuid> (client_id) Client Id. System generated UUID |
header Parameters
Authorization required | string (bearer_authorization) Default: Bearer {{access_token}} Access Token |
Request Body schema: application/json
List of Permissions
Array of objects | |||||
Array
|
Responses
Request samples
- Payload
{- "permissions": [
- {
- "resource_id": "4d5215ed-38bb-48ed-879a-fdb9ca58522f",
- "scopes": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
]
}
]
}
Response samples
- 400
- 401
- 403
- 404
- 405
- 429
- 500
- 501
- 503
{- "code": "invalid_request",
- "message": "Invalid `fields` parameter. See https://developer.aircampi.com/api/query-fields"
}
Resource Management.
A digital resource is any combination of applications and data in a computer system. Examples of digital resources include web applications, APIs, platforms, devices, or databases.
Get resources
Retrieve filtered list of resource.
Authorizations:
query Parameters
fields | string This parameter filters the resource attributes. Only the specified attributes are returned. Format: ?fields=id,name |
expand | string Default: "" When this parameter is provided, the specified children are included in the resource payload (instead of just a link). The value of this query parameter is "all" or "". Example: ?expand=all |
q | string This query parameter defines the where clause. Example: ?q=(id=497f6eca-6276-4993-bfeb-53cbbbba6f08) |
sort | string This parameter sort a resource collection based on the specified attributes. The parameter value is a comma-separated string of attribute names, each optionally followed by a colon and "asc" or "desc". Specify "asc" for ascending and "desc" for descending. For example, ?sort=created_at asc,updated_at desc |
offset | integer >= 0 Default: 0 Used to define the starting position of the item collection. If offset exceeds the item count then no items are returned. |
limit | integer >= 1 Default: 10 This parameter restricts the number of items returned inside the collection. If the limit exceeds the item count then the server will only return the available items. |
total_count | boolean Default: false The item collection representation will include the "estimated row count" when "?total_count=true", otherwise the total_count is not included. |
header Parameters
Authorization required | string (bearer_authorization) Default: Bearer {{access_token}} Access Token |
tenant_id | string <uuid> (tenant_id) ID of the tenant. It works when multi-tenant mode is enabled. Otherwise, may not provided |
Responses
Response samples
- 200
- 400
- 401
- 403
- 405
- 429
- 500
- 501
- 503
{- "total_count": 0,
- "count": 0,
- "has_more": true,
- "limit": 0,
- "offset": 10,
- "items": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "resource_type": "api",
- "resource_name": "string",
- "resource_description": "string",
- "resource_metadata": { },
- "app_metadata": [
- {
- "key": "language",
- "value": "Mongolian"
}
], - "created_date": "2019-08-24T14:15:22Z",
- "updated_date": "2019-08-24T14:15:22Z",
- "aggregations": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "resource_id": "4d5215ed-38bb-48ed-879a-fdb9ca58522f",
- "scopes": 0,
- "clients": 0,
- "created_by": "ee824cad-d7a6-4f48-87dc-e8461a9201c4",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_by": "deea00dc-b6b6-4412-a483-26ac61e1f6fe",
- "updated_at": "2019-08-24T14:15:22Z"
}, - "scopes": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "resource_id": "4d5215ed-38bb-48ed-879a-fdb9ca58522f",
- "scope_name": "string",
- "scope_description": "string",
- "created_by": "ee824cad-d7a6-4f48-87dc-e8461a9201c4",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_by": "deea00dc-b6b6-4412-a483-26ac61e1f6fe",
- "updated_at": "2019-08-24T14:15:22Z"
}
], - "clients": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "resource_id": "4d5215ed-38bb-48ed-879a-fdb9ca58522f",
- "client_id": "5b3fa7ba-57d3-4017-a65b-d57dcd2db643",
- "client_data": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "client_type": "spa",
- "client_name": "Web App",
- "client_secret": "dksafjl3241894019lkj3241",
- "client_secret_expires_at": "2019-08-24T14:15:22Z",
- "client_description": "Web Client App",
- "client_metadata": { },
- "app_metadata": [
- {
- "key": "language",
- "value": "Mongolian"
}
], - "is_public": false,
- "is_first_party": true,
- "is_global": true,
- "tenant_id": "34f5c98e-f430-457b-a812-92637d0c6fd0",
- "created_by": "ee824cad-d7a6-4f48-87dc-e8461a9201c4",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_by": "deea00dc-b6b6-4412-a483-26ac61e1f6fe",
- "updated_at": "2019-08-24T14:15:22Z"
}, - "authorized": true,
- "created_by": "ee824cad-d7a6-4f48-87dc-e8461a9201c4",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_by": "deea00dc-b6b6-4412-a483-26ac61e1f6fe",
- "updated_at": "2019-08-24T14:15:22Z"
}
]
}
]
}
Create a resource
Create a resource
Authorizations:
query Parameters
fields | string This parameter filters the resource attributes. Only the specified attributes are returned. Format: ?fields=id,name |
expand | string Default: "" When this parameter is provided, the specified children are included in the resource payload (instead of just a link). The value of this query parameter is "all" or "". Example: ?expand=all |
header Parameters
Authorization required | string (bearer_authorization) Default: Bearer {{access_token}} Access Token |
Request Body schema: application/json
Create a resource
object (resource_metadata_api) API Resource metadata | |
resource_type required | string (resource_type) Type of Resource |
resource_name required | string Name of Resource |
resource_description | string Description of Resource |
Responses
Request samples
- Payload
{- "resource_metadata": {
- "is_system": false,
- "identifier_url": "string",
- "signing_algorithm": "HS256",
- "signing_secret": "string",
- "token_lifetime": 2592000,
- "rbac_enabled": false,
- "scopes_added": false,
- "skip_consent_for_first_party": false
}, - "resource_type": "api",
- "resource_name": "Human Resources API",
- "resource_description": "Resources for HR"
}
Response samples
- 201
- 400
- 401
- 403
- 405
- 409
- 429
- 500
- 501
- 503
{- "resource_metadata": {
- "is_system": false,
- "identifier_url": "string",
- "signing_algorithm": "HS256",
- "signing_secret": "string",
- "token_lifetime": 2592000,
- "rbac_enabled": false,
- "scopes_added": false,
- "skip_consent_for_first_party": false
}, - "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "resource_type": "api",
- "resource_name": "string",
- "resource_description": "string",
- "app_metadata": [
- {
- "key": "language",
- "value": "Mongolian"
}
], - "created_date": "2019-08-24T14:15:22Z",
- "updated_date": "2019-08-24T14:15:22Z",
- "aggregations": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "resource_id": "4d5215ed-38bb-48ed-879a-fdb9ca58522f",
- "scopes": 0,
- "clients": 0,
- "created_by": "ee824cad-d7a6-4f48-87dc-e8461a9201c4",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_by": "deea00dc-b6b6-4412-a483-26ac61e1f6fe",
- "updated_at": "2019-08-24T14:15:22Z"
}, - "scopes": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "resource_id": "4d5215ed-38bb-48ed-879a-fdb9ca58522f",
- "scope_name": "string",
- "scope_description": "string",
- "created_by": "ee824cad-d7a6-4f48-87dc-e8461a9201c4",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_by": "deea00dc-b6b6-4412-a483-26ac61e1f6fe",
- "updated_at": "2019-08-24T14:15:22Z"
}
], - "clients": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "resource_id": "4d5215ed-38bb-48ed-879a-fdb9ca58522f",
- "client_id": "5b3fa7ba-57d3-4017-a65b-d57dcd2db643",
- "client_data": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "client_type": "spa",
- "client_name": "Web App",
- "client_secret": "dksafjl3241894019lkj3241",
- "client_secret_expires_at": "2019-08-24T14:15:22Z",
- "client_description": "Web Client App",
- "client_metadata": { },
- "app_metadata": [
- {
- "key": "language",
- "value": "Mongolian"
}
], - "is_public": false,
- "is_first_party": true,
- "is_global": true,
- "tenant_id": "34f5c98e-f430-457b-a812-92637d0c6fd0",
- "created_by": "ee824cad-d7a6-4f48-87dc-e8461a9201c4",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_by": "deea00dc-b6b6-4412-a483-26ac61e1f6fe",
- "updated_at": "2019-08-24T14:15:22Z"
}, - "authorized": true,
- "created_by": "ee824cad-d7a6-4f48-87dc-e8461a9201c4",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_by": "deea00dc-b6b6-4412-a483-26ac61e1f6fe",
- "updated_at": "2019-08-24T14:15:22Z"
}
]
}
Get a resource
Retrieve resource details.
Authorizations:
path Parameters
resource_id required | string <uuid> (resource_id) Resource Id. System generated UUID |
query Parameters
fields | string This parameter filters the resource attributes. Only the specified attributes are returned. Format: ?fields=id,name |
expand | string Default: "" When this parameter is provided, the specified children are included in the resource payload (instead of just a link). The value of this query parameter is "all" or "". Example: ?expand=all |
header Parameters
Authorization required | string (bearer_authorization) Default: Bearer {{access_token}} Access Token |
Responses
Response samples
- 200
- 400
- 401
- 403
- 404
- 405
- 429
- 500
- 501
- 503
{- "resource_metadata": {
- "is_system": false,
- "identifier_url": "string",
- "signing_algorithm": "HS256",
- "signing_secret": "string",
- "token_lifetime": 2592000,
- "rbac_enabled": false,
- "scopes_added": false,
- "skip_consent_for_first_party": false
}, - "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "resource_type": "api",
- "resource_name": "string",
- "resource_description": "string",
- "app_metadata": [
- {
- "key": "language",
- "value": "Mongolian"
}
], - "created_date": "2019-08-24T14:15:22Z",
- "updated_date": "2019-08-24T14:15:22Z",
- "aggregations": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "resource_id": "4d5215ed-38bb-48ed-879a-fdb9ca58522f",
- "scopes": 0,
- "clients": 0,
- "created_by": "ee824cad-d7a6-4f48-87dc-e8461a9201c4",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_by": "deea00dc-b6b6-4412-a483-26ac61e1f6fe",
- "updated_at": "2019-08-24T14:15:22Z"
}, - "scopes": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "resource_id": "4d5215ed-38bb-48ed-879a-fdb9ca58522f",
- "scope_name": "string",
- "scope_description": "string",
- "created_by": "ee824cad-d7a6-4f48-87dc-e8461a9201c4",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_by": "deea00dc-b6b6-4412-a483-26ac61e1f6fe",
- "updated_at": "2019-08-24T14:15:22Z"
}
], - "clients": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "resource_id": "4d5215ed-38bb-48ed-879a-fdb9ca58522f",
- "client_id": "5b3fa7ba-57d3-4017-a65b-d57dcd2db643",
- "client_data": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "client_type": "spa",
- "client_name": "Web App",
- "client_secret": "dksafjl3241894019lkj3241",
- "client_secret_expires_at": "2019-08-24T14:15:22Z",
- "client_description": "Web Client App",
- "client_metadata": { },
- "app_metadata": [
- {
- "key": "language",
- "value": "Mongolian"
}
], - "is_public": false,
- "is_first_party": true,
- "is_global": true,
- "tenant_id": "34f5c98e-f430-457b-a812-92637d0c6fd0",
- "created_by": "ee824cad-d7a6-4f48-87dc-e8461a9201c4",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_by": "deea00dc-b6b6-4412-a483-26ac61e1f6fe",
- "updated_at": "2019-08-24T14:15:22Z"
}, - "authorized": true,
- "created_by": "ee824cad-d7a6-4f48-87dc-e8461a9201c4",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_by": "deea00dc-b6b6-4412-a483-26ac61e1f6fe",
- "updated_at": "2019-08-24T14:15:22Z"
}
]
}
Modify a resource
Modify a resource
Authorizations:
path Parameters
resource_id required | string <uuid> (resource_id) Resource Id. System generated UUID |
query Parameters
fields | string This parameter filters the resource attributes. Only the specified attributes are returned. Format: ?fields=id,name |
expand | string Default: "" When this parameter is provided, the specified children are included in the resource payload (instead of just a link). The value of this query parameter is "all" or "". Example: ?expand=all |
header Parameters
Authorization required | string (bearer_authorization) Default: Bearer {{access_token}} Access Token |
Request Body schema: application/json
Update a resource
resource_name | string Name of Resource |
resource_description | string Description of Resource |
object (resource_metadata_api) API Resource metadata | |
Array of objects (app_metadata) application metadata structure for customize your needs. |
Responses
Request samples
- Payload
{- "resource_name": "Changed Resource Name",
- "resource_description": "Changed Resource Description",
- "resource_metadata": {
- "is_system": false,
- "identifier_url": "string",
- "signing_algorithm": "HS256",
- "signing_secret": "string",
- "token_lifetime": 2592000,
- "rbac_enabled": false,
- "scopes_added": false,
- "skip_consent_for_first_party": false
}, - "app_metadata": [
- {
- "key": "language",
- "value": "Mongolian"
}
]
}
Response samples
- 200
- 400
- 401
- 403
- 404
- 405
- 409
- 429
- 500
- 501
- 503
{- "resource_metadata": {
- "is_system": false,
- "identifier_url": "string",
- "signing_algorithm": "HS256",
- "signing_secret": "string",
- "token_lifetime": 2592000,
- "rbac_enabled": false,
- "scopes_added": false,
- "skip_consent_for_first_party": false
}, - "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "resource_type": "api",
- "resource_name": "string",
- "resource_description": "string",
- "app_metadata": [
- {
- "key": "language",
- "value": "Mongolian"
}
], - "created_date": "2019-08-24T14:15:22Z",
- "updated_date": "2019-08-24T14:15:22Z",
- "aggregations": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "resource_id": "4d5215ed-38bb-48ed-879a-fdb9ca58522f",
- "scopes": 0,
- "clients": 0,
- "created_by": "ee824cad-d7a6-4f48-87dc-e8461a9201c4",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_by": "deea00dc-b6b6-4412-a483-26ac61e1f6fe",
- "updated_at": "2019-08-24T14:15:22Z"
}, - "scopes": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "resource_id": "4d5215ed-38bb-48ed-879a-fdb9ca58522f",
- "scope_name": "string",
- "scope_description": "string",
- "created_by": "ee824cad-d7a6-4f48-87dc-e8461a9201c4",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_by": "deea00dc-b6b6-4412-a483-26ac61e1f6fe",
- "updated_at": "2019-08-24T14:15:22Z"
}
], - "clients": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "resource_id": "4d5215ed-38bb-48ed-879a-fdb9ca58522f",
- "client_id": "5b3fa7ba-57d3-4017-a65b-d57dcd2db643",
- "client_data": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "client_type": "spa",
- "client_name": "Web App",
- "client_secret": "dksafjl3241894019lkj3241",
- "client_secret_expires_at": "2019-08-24T14:15:22Z",
- "client_description": "Web Client App",
- "client_metadata": { },
- "app_metadata": [
- {
- "key": "language",
- "value": "Mongolian"
}
], - "is_public": false,
- "is_first_party": true,
- "is_global": true,
- "tenant_id": "34f5c98e-f430-457b-a812-92637d0c6fd0",
- "created_by": "ee824cad-d7a6-4f48-87dc-e8461a9201c4",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_by": "deea00dc-b6b6-4412-a483-26ac61e1f6fe",
- "updated_at": "2019-08-24T14:15:22Z"
}, - "authorized": true,
- "created_by": "ee824cad-d7a6-4f48-87dc-e8461a9201c4",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_by": "deea00dc-b6b6-4412-a483-26ac61e1f6fe",
- "updated_at": "2019-08-24T14:15:22Z"
}
]
}
Delete a resource
Delete a resource
Authorizations:
path Parameters
resource_id required | string <uuid> (resource_id) Resource Id. System generated UUID |
header Parameters
Authorization required | string (bearer_authorization) Default: Bearer {{access_token}} Access Token |
Responses
Response samples
- 400
- 401
- 403
- 404
- 405
- 429
- 500
- 501
- 503
{- "code": "invalid_request",
- "message": "Invalid `fields` parameter. See https://developer.aircampi.com/api/query-fields"
}
Get resource scopes
Retrieve scopes associated with a resouce
Authorizations:
path Parameters
resource_id required | string <uuid> (resource_id) Resource Id. System generated UUID |
query Parameters
fields | string This parameter filters the resource attributes. Only the specified attributes are returned. Format: ?fields=id,name |
expand | string Default: "" When this parameter is provided, the specified children are included in the resource payload (instead of just a link). The value of this query parameter is "all" or "". Example: ?expand=all |
q | string This query parameter defines the where clause. Example: ?q=(id=497f6eca-6276-4993-bfeb-53cbbbba6f08) |
sort | string This parameter sort a resource collection based on the specified attributes. The parameter value is a comma-separated string of attribute names, each optionally followed by a colon and "asc" or "desc". Specify "asc" for ascending and "desc" for descending. For example, ?sort=created_at asc,updated_at desc |
offset | integer >= 0 Default: 0 Used to define the starting position of the item collection. If offset exceeds the item count then no items are returned. |
limit | integer >= 1 Default: 10 This parameter restricts the number of items returned inside the collection. If the limit exceeds the item count then the server will only return the available items. |
total_count | boolean Default: false The item collection representation will include the "estimated row count" when "?total_count=true", otherwise the total_count is not included. |
header Parameters
Authorization required | string (bearer_authorization) Default: Bearer {{access_token}} Access Token |
Responses
Response samples
- 200
- 400
- 401
- 403
- 404
- 405
- 429
- 500
- 501
- 503
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "resource_id": "4d5215ed-38bb-48ed-879a-fdb9ca58522f",
- "scope_name": "string",
- "scope_description": "string",
- "created_by": "ee824cad-d7a6-4f48-87dc-e8461a9201c4",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_by": "deea00dc-b6b6-4412-a483-26ac61e1f6fe",
- "updated_at": "2019-08-24T14:15:22Z"
}
Create a resource scope
Create a resource scope
Authorizations:
path Parameters
resource_id required | string <uuid> (resource_id) Resource Id. System generated UUID |
header Parameters
Authorization required | string (bearer_authorization) Default: Bearer {{access_token}} Access Token |
Request Body schema: application/json
Create a resource scope
scope_name required | string Name of Scope |
scope_description | string Description of Scope |
Responses
Request samples
- Payload
{- "scope_name": "read:employees",
- "scope_description": "Can retrieve employees"
}
Response samples
- 201
- 400
- 401
- 403
- 404
- 405
- 409
- 429
- 500
- 501
- 503
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "resource_id": "4d5215ed-38bb-48ed-879a-fdb9ca58522f",
- "scope_name": "string",
- "scope_description": "string",
- "created_by": "ee824cad-d7a6-4f48-87dc-e8461a9201c4",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_by": "deea00dc-b6b6-4412-a483-26ac61e1f6fe",
- "updated_at": "2019-08-24T14:15:22Z"
}
Get a resource scope
Retrieve resource scope details.
Authorizations:
path Parameters
resource_id required | string <uuid> (resource_id) Resource Id. System generated UUID |
scope_id required | string <uuid> (scope_id) Resource Scope Id. System generated UUID |
query Parameters
fields | string This parameter filters the resource attributes. Only the specified attributes are returned. Format: ?fields=id,name |
expand | string Default: "" When this parameter is provided, the specified children are included in the resource payload (instead of just a link). The value of this query parameter is "all" or "". Example: ?expand=all |
header Parameters
Authorization required | string (bearer_authorization) Default: Bearer {{access_token}} Access Token |
Responses
Response samples
- 200
- 400
- 401
- 403
- 404
- 405
- 429
- 500
- 501
- 503
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "resource_id": "4d5215ed-38bb-48ed-879a-fdb9ca58522f",
- "scope_name": "string",
- "scope_description": "string",
- "created_by": "ee824cad-d7a6-4f48-87dc-e8461a9201c4",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_by": "deea00dc-b6b6-4412-a483-26ac61e1f6fe",
- "updated_at": "2019-08-24T14:15:22Z"
}
Modify a resource scope
Modify a resource scope
Authorizations:
path Parameters
resource_id required | string <uuid> (resource_id) Resource Id. System generated UUID |
scope_id required | string <uuid> (scope_id) Resource Scope Id. System generated UUID |
query Parameters
fields | string This parameter filters the resource attributes. Only the specified attributes are returned. Format: ?fields=id,name |
expand | string Default: "" When this parameter is provided, the specified children are included in the resource payload (instead of just a link). The value of this query parameter is "all" or "". Example: ?expand=all |
header Parameters
Authorization required | string (bearer_authorization) Default: Bearer {{access_token}} Access Token |
Request Body schema: application/json
Update a resource scope
scope_name | string Name of Scope |
scope_description | string Description of Scope |
Responses
Request samples
- Payload
{- "scope_name": "Change Scope Name",
- "scope_description": "Change Scope Description"
}
Response samples
- 200
- 400
- 401
- 403
- 404
- 405
- 409
- 429
- 500
- 501
- 503
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "resource_id": "4d5215ed-38bb-48ed-879a-fdb9ca58522f",
- "scope_name": "string",
- "scope_description": "string",
- "created_by": "ee824cad-d7a6-4f48-87dc-e8461a9201c4",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_by": "deea00dc-b6b6-4412-a483-26ac61e1f6fe",
- "updated_at": "2019-08-24T14:15:22Z"
}
Delete a resource scope
Delete a resource scope
Authorizations:
path Parameters
resource_id required | string <uuid> (resource_id) Resource Id. System generated UUID |
scope_id required | string <uuid> (scope_id) Resource Scope Id. System generated UUID |
header Parameters
Authorization required | string (bearer_authorization) Default: Bearer {{access_token}} Access Token |
Responses
Response samples
- 400
- 401
- 403
- 404
- 405
- 429
- 500
- 501
- 503
{- "code": "invalid_request",
- "message": "Invalid `fields` parameter. See https://developer.aircampi.com/api/query-fields"
}
Get resource clients
Retrieve clients associated with a resouce
Authorizations:
path Parameters
resource_id required | string <uuid> (resource_id) Resource Id. System generated UUID |
query Parameters
fields | string This parameter filters the resource attributes. Only the specified attributes are returned. Format: ?fields=id,name |
expand | string Default: "" When this parameter is provided, the specified children are included in the resource payload (instead of just a link). The value of this query parameter is "all" or "". Example: ?expand=all |
q | string This query parameter defines the where clause. Example: ?q=(id=497f6eca-6276-4993-bfeb-53cbbbba6f08) |
sort | string This parameter sort a resource collection based on the specified attributes. The parameter value is a comma-separated string of attribute names, each optionally followed by a colon and "asc" or "desc". Specify "asc" for ascending and "desc" for descending. For example, ?sort=created_at asc,updated_at desc |
offset | integer >= 0 Default: 0 Used to define the starting position of the item collection. If offset exceeds the item count then no items are returned. |
limit | integer >= 1 Default: 10 This parameter restricts the number of items returned inside the collection. If the limit exceeds the item count then the server will only return the available items. |
total_count | boolean Default: false The item collection representation will include the "estimated row count" when "?total_count=true", otherwise the total_count is not included. |
header Parameters
Authorization required | string (bearer_authorization) Default: Bearer {{access_token}} Access Token |
Responses
Response samples
- 200
- 400
- 401
- 403
- 404
- 405
- 429
- 500
- 501
- 503
{- "total_count": 0,
- "count": 0,
- "has_more": true,
- "limit": 0,
- "offset": 10,
- "items": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "resource_id": "4d5215ed-38bb-48ed-879a-fdb9ca58522f",
- "client_id": "5b3fa7ba-57d3-4017-a65b-d57dcd2db643",
- "client_data": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "client_type": "spa",
- "client_name": "Web App",
- "client_secret": "dksafjl3241894019lkj3241",
- "client_secret_expires_at": "2019-08-24T14:15:22Z",
- "client_description": "Web Client App",
- "client_metadata": { },
- "app_metadata": [
- {
- "key": "language",
- "value": "Mongolian"
}
], - "is_public": false,
- "is_first_party": true,
- "is_global": true,
- "tenant_id": "34f5c98e-f430-457b-a812-92637d0c6fd0",
- "created_by": "ee824cad-d7a6-4f48-87dc-e8461a9201c4",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_by": "deea00dc-b6b6-4412-a483-26ac61e1f6fe",
- "updated_at": "2019-08-24T14:15:22Z"
}, - "authorized": true,
- "created_by": "ee824cad-d7a6-4f48-87dc-e8461a9201c4",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_by": "deea00dc-b6b6-4412-a483-26ac61e1f6fe",
- "updated_at": "2019-08-24T14:15:22Z"
}
]
}
Authorize clients to resource
Authorize clients to resource.
Authorizations:
path Parameters
resource_id required | string <uuid> (resource_id) Resource Id. System generated UUID |
header Parameters
Authorization required | string (bearer_authorization) Default: Bearer {{access_token}} Access Token |
Request Body schema: application/json
List of Clients
clients | Array of strings <uuid> (client_id) |
Responses
Request samples
- Payload
{- "clients": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
]
}
Response samples
- 400
- 401
- 403
- 404
- 405
- 409
- 429
- 500
- 501
- 503
{- "code": "invalid_request",
- "message": "Invalid `fields` parameter. See https://developer.aircampi.com/api/query-fields"
}
Unauthorize clients from resource.
Unauthorize clients from resource
Authorizations:
path Parameters
resource_id required | string <uuid> (resource_id) Resource Id. System generated UUID |
header Parameters
Authorization required | string (bearer_authorization) Default: Bearer {{access_token}} Access Token |
Request Body schema: application/json
List of Clients
clients | Array of strings <uuid> (client_id) |
Responses
Request samples
- Payload
{- "clients": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
]
}
Response samples
- 400
- 401
- 403
- 404
- 405
- 429
- 500
- 501
- 503
{- "code": "invalid_request",
- "message": "Invalid `fields` parameter. See https://developer.aircampi.com/api/query-fields"
}
Tenant Management
Aircampi Auth platform that allows our business-to-business (B2B) customers to better manage their partners and customers, and to customize the ways that end-users access their applications.
A logically-isolated(partitioned) users, roles, groups who share common access with specific privileges to a single software tenant.
No tenant can access the data of another tenant, even though multiple tenants might be running on the same machine.
Tenant, in general, is a term borrowed from software multi-tenant architecture.
Get tenants
Retrieve filtered list of tenants. It works when multi-tenant mode is enabled
Authorizations:
query Parameters
fields | string This parameter filters the resource attributes. Only the specified attributes are returned. Format: ?fields=id,name |
expand | string Default: "" When this parameter is provided, the specified children are included in the resource payload (instead of just a link). The value of this query parameter is "all" or "". Example: ?expand=all |
q | string This query parameter defines the where clause. Example: ?q=(id=497f6eca-6276-4993-bfeb-53cbbbba6f08) |
sort | string This parameter sort a resource collection based on the specified attributes. The parameter value is a comma-separated string of attribute names, each optionally followed by a colon and "asc" or "desc". Specify "asc" for ascending and "desc" for descending. For example, ?sort=created_at asc,updated_at desc |
offset | integer >= 0 Default: 0 Used to define the starting position of the item collection. If offset exceeds the item count then no items are returned. |
limit | integer >= 1 Default: 10 This parameter restricts the number of items returned inside the collection. If the limit exceeds the item count then the server will only return the available items. |
total_count | boolean Default: false The item collection representation will include the "estimated row count" when "?total_count=true", otherwise the total_count is not included. |
header Parameters
Authorization required | string (bearer_authorization) Default: Bearer {{access_token}} Access Token |
Responses
Response samples
- 200
- 400
- 401
- 403
- 405
- 429
- 500
- 501
- 503
{- "total_count": 0,
- "count": 0,
- "has_more": true,
- "limit": 0,
- "offset": 10,
- "items": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "tenant_name": "string",
- "tenant_description": "string",
- "tenant_metadata": {
- "display_name": "My Company Name",
- "branding": {
- "colors": {
- "primary": null,
- "secondary": null,
- "background": null
}, - "font": {
- "url": "string"
}
}, - "support": {
}, - "default_locale": "en_US"
}, - "app_metadata": [
- {
- "key": "language",
- "value": "Mongolian"
}
], - "default": false,
- "created_by": "ee824cad-d7a6-4f48-87dc-e8461a9201c4",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_by": "deea00dc-b6b6-4412-a483-26ac61e1f6fe",
- "updated_at": "2019-08-24T14:15:22Z",
- "aggregations": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "tenant_id": "34f5c98e-f430-457b-a812-92637d0c6fd0",
- "clients": 0,
- "roles": 0,
- "admins": 0,
- "users": 0,
- "groups": 0,
- "created_by": "ee824cad-d7a6-4f48-87dc-e8461a9201c4",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_by": "deea00dc-b6b6-4412-a483-26ac61e1f6fe",
- "updated_at": "2019-08-24T14:15:22Z"
}, - "admins": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "email_verified": true,
- "phone": "+1-202-555-0192",
- "phone_verified": true,
- "nickname": "Joe",
- "firstname": "Bayaraa",
- "middlename": "string",
- "lastname": "Basan",
- "familyname": "string",
- "fullname": "Bayaraa Basan",
- "gender": "male",
- "birthday": "2019-08-24",
- "zoneinfo": "America/Los_Angeles",
- "locale": "en_US",
- "address": {
- "country": "mn",
- "postal_code": 13350,
- "region": "Ulaanbaatar",
- "locality": "Ulaanbaatar",
- "street_address": "string",
- "formatted": "string"
}, - "user_metadata": { },
- "app_metadata": [
- {
- "key": "language",
- "value": "Mongolian"
}
], - "is_blocked": false,
- "is_admin": false,
- "invited_at": "2019-08-24T14:15:22Z",
- "created_by": "ee824cad-d7a6-4f48-87dc-e8461a9201c4",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_by": "deea00dc-b6b6-4412-a483-26ac61e1f6fe",
- "updated_at": "2019-08-24T14:15:22Z"
}
], - "identity_providers": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "tenant_id": "34f5c98e-f430-457b-a812-92637d0c6fd0",
- "provider": "aircampi",
- "enabled": true,
- "created_by": "ee824cad-d7a6-4f48-87dc-e8461a9201c4",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_by": "deea00dc-b6b6-4412-a483-26ac61e1f6fe",
- "updated_at": "2019-08-24T14:15:22Z"
}
]
}
]
}
Create an tenant
Create an tenant
Authorizations:
query Parameters
fields | string This parameter filters the resource attributes. Only the specified attributes are returned. Format: ?fields=id,name |
expand | string Default: "" When this parameter is provided, the specified children are included in the resource payload (instead of just a link). The value of this query parameter is "all" or "". Example: ?expand=all |
header Parameters
Authorization required | string (bearer_authorization) Default: Bearer {{access_token}} Access Token |
Request Body schema: application/json
Create a Tenant
tenant_name required | string Name of Tenant |
tenant_description | string Description of Tenant |
object (tenant_metadata) tenant's metadata structure | |
Array of objects (app_metadata) application metadata structure for customize your needs. |
Responses
Request samples
- Payload
{- "tenant_name": "My Customer Name",
- "tenant_description": "My Customer Description",
- "tenant_metadata": {
- "display_name": "My Company Name",
- "branding": {
- "colors": {
- "primary": null,
- "secondary": null,
- "background": null
}, - "font": {
- "url": "string"
}
}, - "support": {
}, - "default_locale": "en_US"
}, - "app_metadata": [
- {
- "key": "language",
- "value": "Mongolian"
}
]
}
Response samples
- 201
- 400
- 401
- 403
- 405
- 409
- 429
- 500
- 501
- 503
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "tenant_name": "string",
- "tenant_description": "string",
- "tenant_metadata": {
- "display_name": "My Company Name",
- "branding": {
- "colors": {
- "primary": null,
- "secondary": null,
- "background": null
}, - "font": {
- "url": "string"
}
}, - "support": {
}, - "default_locale": "en_US"
}, - "app_metadata": [
- {
- "key": "language",
- "value": "Mongolian"
}
], - "default": false,
- "created_by": "ee824cad-d7a6-4f48-87dc-e8461a9201c4",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_by": "deea00dc-b6b6-4412-a483-26ac61e1f6fe",
- "updated_at": "2019-08-24T14:15:22Z",
- "aggregations": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "tenant_id": "34f5c98e-f430-457b-a812-92637d0c6fd0",
- "clients": 0,
- "roles": 0,
- "admins": 0,
- "users": 0,
- "groups": 0,
- "created_by": "ee824cad-d7a6-4f48-87dc-e8461a9201c4",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_by": "deea00dc-b6b6-4412-a483-26ac61e1f6fe",
- "updated_at": "2019-08-24T14:15:22Z"
}, - "admins": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "email_verified": true,
- "phone": "+1-202-555-0192",
- "phone_verified": true,
- "nickname": "Joe",
- "firstname": "Bayaraa",
- "middlename": "string",
- "lastname": "Basan",
- "familyname": "string",
- "fullname": "Bayaraa Basan",
- "gender": "male",
- "birthday": "2019-08-24",
- "zoneinfo": "America/Los_Angeles",
- "locale": "en_US",
- "address": {
- "country": "mn",
- "postal_code": 13350,
- "region": "Ulaanbaatar",
- "locality": "Ulaanbaatar",
- "street_address": "string",
- "formatted": "string"
}, - "user_metadata": { },
- "app_metadata": [
- {
- "key": "language",
- "value": "Mongolian"
}
], - "is_blocked": false,
- "is_admin": false,
- "invited_at": "2019-08-24T14:15:22Z",
- "created_by": "ee824cad-d7a6-4f48-87dc-e8461a9201c4",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_by": "deea00dc-b6b6-4412-a483-26ac61e1f6fe",
- "updated_at": "2019-08-24T14:15:22Z"
}
], - "identity_providers": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "tenant_id": "34f5c98e-f430-457b-a812-92637d0c6fd0",
- "provider": "aircampi",
- "enabled": true,
- "created_by": "ee824cad-d7a6-4f48-87dc-e8461a9201c4",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_by": "deea00dc-b6b6-4412-a483-26ac61e1f6fe",
- "updated_at": "2019-08-24T14:15:22Z"
}
]
}
Get an tenant
Get an tenant
Authorizations:
path Parameters
tenant_id required | string <uuid> (tenant_id) Tenant Id. System generated UUID |
query Parameters
fields | string This parameter filters the resource attributes. Only the specified attributes are returned. Format: ?fields=id,name |
expand | string Default: "" When this parameter is provided, the specified children are included in the resource payload (instead of just a link). The value of this query parameter is "all" or "". Example: ?expand=all |
header Parameters
Authorization required | string (bearer_authorization) Default: Bearer {{access_token}} Access Token |
Responses
Response samples
- 200
- 400
- 401
- 403
- 404
- 405
- 429
- 500
- 501
- 503
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "tenant_name": "string",
- "tenant_description": "string",
- "tenant_metadata": {
- "display_name": "My Company Name",
- "branding": {
- "colors": {
- "primary": null,
- "secondary": null,
- "background": null
}, - "font": {
- "url": "string"
}
}, - "support": {
}, - "default_locale": "en_US"
}, - "app_metadata": [
- {
- "key": "language",
- "value": "Mongolian"
}
], - "default": false,
- "created_by": "ee824cad-d7a6-4f48-87dc-e8461a9201c4",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_by": "deea00dc-b6b6-4412-a483-26ac61e1f6fe",
- "updated_at": "2019-08-24T14:15:22Z",
- "aggregations": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "tenant_id": "34f5c98e-f430-457b-a812-92637d0c6fd0",
- "clients": 0,
- "roles": 0,
- "admins": 0,
- "users": 0,
- "groups": 0,
- "created_by": "ee824cad-d7a6-4f48-87dc-e8461a9201c4",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_by": "deea00dc-b6b6-4412-a483-26ac61e1f6fe",
- "updated_at": "2019-08-24T14:15:22Z"
}, - "admins": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "email_verified": true,
- "phone": "+1-202-555-0192",
- "phone_verified": true,
- "nickname": "Joe",
- "firstname": "Bayaraa",
- "middlename": "string",
- "lastname": "Basan",
- "familyname": "string",
- "fullname": "Bayaraa Basan",
- "gender": "male",
- "birthday": "2019-08-24",
- "zoneinfo": "America/Los_Angeles",
- "locale": "en_US",
- "address": {
- "country": "mn",
- "postal_code": 13350,
- "region": "Ulaanbaatar"