API specs
Secrets Vault OIDC Service (0.1.0)
Download OpenAPI specification:Download
Secrets Vault OpenID Connect service with image-based Zero-Knowledge Proof authentication
Register
query Parameters
Auth Req Id (string) or Auth Req Id (null) (Auth Req Id) |
Request Body schema: application/jsonrequired
| username required | string (Username) ^[a-zA-Z0-9_.@-]+$ |
| email required | string <email> (Email) |
| encrypted_commitment required | string (Encrypted Commitment) |
| proto_version required | string (Proto Version) |
Responses
Request samples
- Payload
Content type
application/json
{- "username": "string",
- "email": "user@example.com",
- "encrypted_commitment": "string",
- "proto_version": "string"
}Response samples
- 201
- 422
Content type
application/json
nullGet Challenge
query Parameters
Auth Req Id (string) or Auth Req Id (null) (Auth Req Id) |
Request Body schema: application/jsonrequired
| username required | string (Username) |
| cipherKey required | string (Cipherkey) |
Responses
Request samples
- Payload
Content type
application/json
{- "username": "string",
- "cipherKey": "string"
}Response samples
- 200
- 422
Content type
application/json
{- "challenge_data": "string",
- "proto_version": "string"
}Authenticate
query Parameters
Auth Req Id (string) or Auth Req Id (null) (Auth Req Id) |
Request Body schema: application/jsonrequired
| username required | string (Username) |
| cipherKey required | string (Cipherkey) |
| challenge_id required | string (Challenge Id) |
| challenge_data required | string (Challenge Data) |
BERForm (object) or null |
Responses
Request samples
- Payload
Content type
application/json
{- "username": "string",
- "cipherKey": "string",
- "challenge_id": "string",
- "challenge_data": "string",
- "ber": {
- "ber": {
- "count_bits": 0,
- "error_bits": 0,
- "BER_PERCENT": "string"
}, - "image_dim": [
- 0,
- 0
], - "algorithm_version": "string"
}
}Response samples
- 200
- 422
Content type
application/json
{- "nonce": "string",
- "need_verify": false
}Response samples
- 200
Content type
application/json
{- "sessions": [
- {
- "session_id": "string",
- "user_id": "string",
- "tenant_id": "string",
- "created": {
- "at": "2019-08-24T14:15:22Z",
- "ip": "string",
- "country": "string",
- "user_agent": "string",
- "user_agent_parsed": {
- "browser": {
- "family": "string",
- "version": "string"
}, - "os": {
- "family": "string",
- "version": "string"
}, - "device": {
- "family": "string",
- "brand": "string",
- "model": "string"
}, - "is_mobile": false,
- "is_tablet": false,
- "is_pc": false,
- "is_bot": false
}
}, - "expires_at": "2019-08-24T14:15:22Z",
- "token_issue": {
- "at": "2019-08-24T14:15:22Z",
- "ip": "string",
- "country": "string",
- "user_agent": "string",
- "user_agent_parsed": {
- "browser": {
- "family": "string",
- "version": "string"
}, - "os": {
- "family": "string",
- "version": "string"
}, - "device": {
- "family": "string",
- "brand": "string",
- "model": "string"
}, - "is_mobile": false,
- "is_tablet": false,
- "is_pc": false,
- "is_bot": false
}
}, - "last_access": {
- "at": "2019-08-24T14:15:22Z",
- "ip": "string",
- "country": "string",
- "user_agent": "string",
- "user_agent_parsed": {
- "browser": {
- "family": "string",
- "version": "string"
}, - "os": {
- "family": "string",
- "version": "string"
}, - "device": {
- "family": "string",
- "brand": "string",
- "model": "string"
}, - "is_mobile": false,
- "is_tablet": false,
- "is_pc": false,
- "is_bot": false
}
}
}
], - "total": 0
}Get Client
query Parameters
| client_id required | string (Client Id) |
| tenant_id required | any (Tenant Id) |
Responses
Response samples
- 200
- 422
Content type
application/json
{- "client_id": "string",
- "name": "string",
- "tenant_id": "string",
- "redirect_uris": { },
- "allowed_scopes": [
- "string"
], - "token_endpoint_auth_method": "client_secret_post",
- "logo_uri": "string",
- "op_policy_url": "string",
- "op_tos_url": "string",
- "op_user_agreement_url": "string",
- "client_uri": "string",
- "client_logout_uri": "string",
- "register_enable": false,
- "tenant_name": "string"
}Get Client Tenant
query Parameters
| client_id required | string (Client Id) |
| tenant_id required | any (Tenant Id) |
Responses
Response samples
- 200
- 422
Content type
application/json
{- "client": {
- "client_id": "string",
- "name": "string",
- "tenant_id": "string",
- "redirect_uris": { },
- "allowed_scopes": [
- "string"
], - "token_endpoint_auth_method": "client_secret_post",
- "logo_uri": "string",
- "op_policy_url": "string",
- "op_tos_url": "string",
- "op_user_agreement_url": "string",
- "client_uri": "string",
- "client_logout_uri": "string",
- "register_enable": false,
- "tenant_name": "string"
}, - "tenant": {
- "tenant_id": "string",
- "register_enable": false,
- "is_2fa": false,
- "use_pin": true,
- "use_face_recognition": false,
- "display_name": ""
}
}Request Reset Password
query Parameters
| client_id required | string (Client Id) |
| tenant_id required | string (Tenant Id) |
Request Body schema: application/jsonrequired
| username required | string (Username) |
| email required | string (Email) |
Responses
Request samples
- Payload
Content type
application/json
{- "username": "string",
- "email": "string"
}Response samples
- 200
- 422
Content type
application/json
nullReset Password Code
Request Body schema: application/jsonrequired
| code required | string (Code) |
| username required | string (Username) |
| encrypted_commitment required | string (Encrypted Commitment) |
| proto_version required | string (Proto Version) |
Responses
Request samples
- Payload
Content type
application/json
{- "code": "string",
- "username": "string",
- "encrypted_commitment": "string",
- "proto_version": "string"
}Response samples
- 200
- 422
Content type
application/json
nullChange Password
Authorizations:
APIKeyHeaderHTTPBearer
Request Body schema: application/jsonrequired
| encrypted_commitment required | string (Encrypted Commitment) |
| proto_version required | string (Proto Version) |
Responses
Request samples
- Payload
Content type
application/json
{- "encrypted_commitment": "string",
- "proto_version": "string"
}Response samples
- 200
- 422
Content type
application/json
nullToken Exchange
Request Body schema: application/x-www-form-urlencodedrequired
| client_id required | string (Client Id) |
| grant_type required | string (Grant Type) |
| tenant_id required | string (Tenant Id) |
Client Secret (string) or Client Secret (null) (Client Secret) | |
Redirect Uri (string) or Redirect Uri (null) (Redirect Uri) | |
Code (string) or Code (null) (Code) | |
Refresh Token (string) or Refresh Token (null) (Refresh Token) | |
Code Verifier (string) or Code Verifier (null) (Code Verifier) |
Responses
Response samples
- 200
- 422
Content type
application/json
{- "access_token": "string",
- "refresh_token": "string",
- "id_token": "string",
- "token_type": "Bearer",
- "expires_in": 0
}Token Exchange
path Parameters
| tenant_id required | string (Tenant Id) |
Request Body schema: application/x-www-form-urlencodedrequired
| client_id required | string (Client Id) |
| grant_type required | string (Grant Type) |
Client Secret (string) or Client Secret (null) (Client Secret) | |
Redirect Uri (string) or Redirect Uri (null) (Redirect Uri) | |
Code (string) or Code (null) (Code) | |
Refresh Token (string) or Refresh Token (null) (Refresh Token) | |
Code Verifier (string) or Code Verifier (null) (Code Verifier) |
Responses
Response samples
- 200
- 422
Content type
application/json
{- "access_token": "string",
- "refresh_token": "string",
- "id_token": "string",
- "token_type": "Bearer",
- "expires_in": 0
}Token Exchange Standard
path Parameters
| tenant_id required | string (Tenant Id) |
Request Body schema: application/x-www-form-urlencodedrequired
| client_id required | string (Client Id) |
| grant_type required | string (Grant Type) |
Client Secret (string) or Client Secret (null) (Client Secret) | |
Redirect Uri (string) or Redirect Uri (null) (Redirect Uri) | |
Code (string) or Code (null) (Code) | |
Refresh Token (string) or Refresh Token (null) (Refresh Token) | |
Code Verifier (string) or Code Verifier (null) (Code Verifier) |
Responses
Response samples
- 200
- 422
Content type
application/json
{- "access_token": "string",
- "refresh_token": "string",
- "id_token": "string",
- "token_type": "Bearer",
- "expires_in": 0
}Response samples
- 200
Content type
application/json
{- "user_id": "string",
- "username": "string",
- "email": "string",
- "tenant_id": "string",
- "is_disabled": false,
- "is_verified": false,
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "locale": "string",
- "roles": [
- "string"
]
}List Users
Authorizations:
APIKeyHeaderHTTPBearer
path Parameters
| tenant_id required | string (Tenant Id) |
query Parameters
| username | string (Username) Default: "" |
string (Email) Default: "" | |
| limit | integer (Limit) Default: 10 |
| offset | integer (Offset) Default: 0 |
Responses
Response samples
- 200
- 422
Content type
application/json
{- "data": [
- {
- "user_id": "string",
- "username": "string",
- "email": "string",
- "tenant_id": "string",
- "is_disabled": false,
- "is_verified": false,
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "locale": "string",
- "roles": [
- "string"
]
}
], - "has_next": true,
- "total_count": 0
}Get User By Name
Authorizations:
APIKeyHeaderHTTPBearer
path Parameters
| tenant_id required | string (Tenant Id) |
| username required | string (Username) |
Responses
Response samples
- 200
- 422
Content type
application/json
{- "user_id": "string",
- "username": "string",
- "email": "string",
- "tenant_id": "string",
- "is_disabled": false,
- "is_verified": false,
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "locale": "string",
- "roles": [
- "string"
]
}Get User
Authorizations:
APIKeyHeaderHTTPBearer
path Parameters
| tenant_id required | string (Tenant Id) |
| user_id required | string (User Id) |
Responses
Response samples
- 200
- 422
Content type
application/json
{- "user_id": "string",
- "username": "string",
- "email": "string",
- "tenant_id": "string",
- "is_disabled": false,
- "is_verified": false,
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "locale": "string",
- "roles": [
- "string"
]
}Update User
Authorizations:
APIKeyHeaderHTTPBearer
path Parameters
| user_id required | string (User Id) |
| tenant_id required | string (Tenant Id) |
Request Body schema: application/jsonrequired
| user_id required | string (User Id) |
| username required | string (Username) |
| email required | string (Email) |
| tenant_id required | string (Tenant Id) |
| is_disabled | boolean (Is Disabled) Default: false |
| is_verified | boolean (Is Verified) Default: false |
| created_at | string <date-time> (Created At) |
Updated At (string) or Updated At (null) (Updated At) | |
Locale (string) or Locale (null) (Locale) | |
Array of Roles (strings) or Roles (null) (Roles) |
Responses
Request samples
- Payload
Content type
application/json
{- "user_id": "string",
- "username": "string",
- "email": "string",
- "tenant_id": "string",
- "is_disabled": false,
- "is_verified": false,
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "locale": "string",
- "roles": [
- "string"
]
}Response samples
- 200
- 422
Content type
application/json
{- "user_id": "string",
- "username": "string",
- "email": "string",
- "tenant_id": "string",
- "is_disabled": false,
- "is_verified": false,
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "locale": "string",
- "roles": [
- "string"
]
}Create User
Authorizations:
APIKeyHeaderHTTPBearer
path Parameters
| tenant_id required | string (Tenant Id) |
Request Body schema: application/jsonrequired
| user_id required | string (User Id) |
| username required | string (Username) |
| email required | string (Email) |
| tenant_id required | string (Tenant Id) |
| is_disabled | boolean (Is Disabled) Default: false |
| is_verified | boolean (Is Verified) Default: false |
| created_at | string <date-time> (Created At) |
Updated At (string) or Updated At (null) (Updated At) | |
Locale (string) or Locale (null) (Locale) | |
Array of Roles (strings) or Roles (null) (Roles) |
Responses
Request samples
- Payload
Content type
application/json
{- "user_id": "string",
- "username": "string",
- "email": "string",
- "tenant_id": "string",
- "is_disabled": false,
- "is_verified": false,
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "locale": "string",
- "roles": [
- "string"
]
}Response samples
- 201
- 422
Content type
application/json
{- "user_id": "string",
- "username": "string",
- "email": "string",
- "tenant_id": "string",
- "is_disabled": false,
- "is_verified": false,
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "locale": "string",
- "roles": [
- "string"
]
}Batch Create User
Authorizations:
APIKeyHeaderHTTPBearer
path Parameters
| tenant_id required | string (Tenant Id) |
Request Body schema: application/jsonrequired
required | Array of objects (Users) | ||||||||||||||||||||
Array
| |||||||||||||||||||||
Responses
Request samples
- Payload
Content type
application/json
{- "users": [
- {
- "user_id": "string",
- "username": "string",
- "email": "string",
- "tenant_id": "string",
- "is_disabled": false,
- "is_verified": false,
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "locale": "string",
- "roles": [
- "string"
]
}
]
}Response samples
- 201
- 422
Content type
application/json
{- "success_created_count": 0,
- "fail_create_usernames": [
- "string"
], - "duplicate_usernames": [
- "string"
]
}Batch Delete User
Authorizations:
APIKeyHeaderHTTPBearer
path Parameters
| tenant_id required | string (Tenant Id) |
Request Body schema: application/jsonrequired
| users_ids required | Array of strings (Users Ids) |
Responses
Request samples
- Payload
Content type
application/json
{- "users_ids": [
- "string"
]
}Response samples
- 201
- 422
Content type
application/json
nullCreate User Key
Authorizations:
APIKeyHeaderHTTPBearer
Request Body schema: application/jsonrequired
| name required | string (Name) |
| scopes required | Array of strings (Scopes) |
| tenant_id required | string (Tenant Id) |
Responses
Request samples
- Payload
Content type
application/json
{- "name": "string",
- "scopes": [
- "string"
], - "tenant_id": "string"
}Response samples
- 201
- 422
Content type
application/json
{- "key_id": "string",
- "key_hash": "string",
- "user_id": "string",
- "tenant_id": "string",
- "created_at": {
- "at": "2019-08-24T14:15:22Z",
- "ip": "string",
- "country": "string",
- "user_agent": "string",
- "user_agent_parsed": {
- "browser": {
- "family": "string",
- "version": "string"
}, - "os": {
- "family": "string",
- "version": "string"
}, - "device": {
- "family": "string",
- "brand": "string",
- "model": "string"
}, - "is_mobile": false,
- "is_tablet": false,
- "is_pc": false,
- "is_bot": false
}
}, - "name": "",
- "scopes": [
- "string"
], - "last_use_at": {
- "at": "2019-08-24T14:15:22Z",
- "ip": "string",
- "country": "string",
- "user_agent": "string",
- "user_agent_parsed": {
- "browser": {
- "family": "string",
- "version": "string"
}, - "os": {
- "family": "string",
- "version": "string"
}, - "device": {
- "family": "string",
- "brand": "string",
- "model": "string"
}, - "is_mobile": false,
- "is_tablet": false,
- "is_pc": false,
- "is_bot": false
}
}, - "is_active": true,
- "api_key": "string"
}Response samples
- 200
Content type
application/json
{- "api_keys": [
- {
- "key_id": "string",
- "key_hash": "string",
- "user_id": "string",
- "tenant_id": "string",
- "created_at": {
- "at": "2019-08-24T14:15:22Z",
- "ip": "string",
- "country": "string",
- "user_agent": "string",
- "user_agent_parsed": {
- "browser": {
- "family": "string",
- "version": "string"
}, - "os": {
- "family": "string",
- "version": "string"
}, - "device": {
- "family": "string",
- "brand": "string",
- "model": "string"
}, - "is_mobile": false,
- "is_tablet": false,
- "is_pc": false,
- "is_bot": false
}
}, - "name": "",
- "scopes": [
- "string"
], - "last_use_at": {
- "at": "2019-08-24T14:15:22Z",
- "ip": "string",
- "country": "string",
- "user_agent": "string",
- "user_agent_parsed": {
- "browser": {
- "family": "string",
- "version": "string"
}, - "os": {
- "family": "string",
- "version": "string"
}, - "device": {
- "family": "string",
- "brand": "string",
- "model": "string"
}, - "is_mobile": false,
- "is_tablet": false,
- "is_pc": false,
- "is_bot": false
}
}, - "is_active": true,
- "username": ""
}
]
}Regenerate Api Key
Authorizations:
APIKeyHeaderHTTPBearer
path Parameters
| key_id required | string (Key Id) |
Responses
Response samples
- 200
- 422
Content type
application/json
{- "key_id": "string",
- "key_hash": "string",
- "user_id": "string",
- "tenant_id": "string",
- "created_at": {
- "at": "2019-08-24T14:15:22Z",
- "ip": "string",
- "country": "string",
- "user_agent": "string",
- "user_agent_parsed": {
- "browser": {
- "family": "string",
- "version": "string"
}, - "os": {
- "family": "string",
- "version": "string"
}, - "device": {
- "family": "string",
- "brand": "string",
- "model": "string"
}, - "is_mobile": false,
- "is_tablet": false,
- "is_pc": false,
- "is_bot": false
}
}, - "name": "",
- "scopes": [
- "string"
], - "last_use_at": {
- "at": "2019-08-24T14:15:22Z",
- "ip": "string",
- "country": "string",
- "user_agent": "string",
- "user_agent_parsed": {
- "browser": {
- "family": "string",
- "version": "string"
}, - "os": {
- "family": "string",
- "version": "string"
}, - "device": {
- "family": "string",
- "brand": "string",
- "model": "string"
}, - "is_mobile": false,
- "is_tablet": false,
- "is_pc": false,
- "is_bot": false
}
}, - "is_active": true,
- "api_key": "string"
}Read Clients
Authorizations:
APIKeyHeaderHTTPBearer
query Parameters
| tenant_id required | string (Tenant Id) |
| skip | integer (Skip) Default: 0 |
| limit | integer (Limit) Default: 100 |
Responses
Response samples
- 200
- 422
Content type
application/json
{- "clients": [
- {
- "client_id": "string",
- "name": "string",
- "tenant_id": "string",
- "redirect_uris": { },
- "allowed_scopes": [
- "string"
], - "token_endpoint_auth_method": "client_secret_post",
- "logo_uri": "string",
- "op_policy_url": "string",
- "op_tos_url": "string",
- "op_user_agreement_url": "string",
- "client_uri": "string",
- "client_logout_uri": "string",
- "register_enable": false,
- "tenant_name": "string",
- "client_secret": "string",
- "client_type": "public",
- "is_lock": false,
- "sing_alg": "RS256",
- "flow": {
- "type": "microsoft-mfa",
- "issuer": "string"
}
}
]
}Create Client
Authorizations:
APIKeyHeaderHTTPBearer
Request Body schema: application/jsonrequired
| client_id required | string (Client Id) |
| name required | string (Name) |
| tenant_id required | string (Tenant Id) |
| redirect_uris | Array of strings (Redirect Uris) Default: [] |
| allowed_scopes | Array of strings (Allowed Scopes) |
| token_endpoint_auth_method | string (Token Endpoint Auth Method) Default: "client_secret_post" Value: "client_secret_post" |
Logo Uri (string) or Logo Uri (null) (Logo Uri) | |
Op Policy Url (string) or Op Policy Url (null) (Op Policy Url) | |
Op Tos Url (string) or Op Tos Url (null) (Op Tos Url) | |
Op User Agreement Url (string) or Op User Agreement Url (null) (Op User Agreement Url) | |
Client Uri (string) or Client Uri (null) (Client Uri) | |
Client Logout Uri (string) or Client Logout Uri (null) (Client Logout Uri) | |
| register_enable | boolean (Register Enable) Default: false |
Tenant Name (string) or Tenant Name (null) (Tenant Name) | |
Client Secret (string) or Client Secret (null) (Client Secret) | |
| client_type | string (ClientType) Default: "confidential" Enum: "public" "confidential" |
| is_lock | boolean (Is Lock) Default: false |
| sing_alg | string (AvailableSingAlg) Default: "EdDSA" Enum: "RS256" "EdDSA" |
ClientFlow (object) or null |
Responses
Request samples
- Payload
Content type
application/json
{- "client_id": "string",
- "name": "string",
- "tenant_id": "string",
- "redirect_uris": { },
- "allowed_scopes": [
- "string"
], - "token_endpoint_auth_method": "client_secret_post",
- "logo_uri": "string",
- "op_policy_url": "string",
- "op_tos_url": "string",
- "op_user_agreement_url": "string",
- "client_uri": "string",
- "client_logout_uri": "string",
- "register_enable": false,
- "tenant_name": "string",
- "client_secret": "string",
- "client_type": "public",
- "is_lock": false,
- "sing_alg": "RS256",
- "flow": {
- "type": "microsoft-mfa",
- "issuer": "string"
}
}Response samples
- 200
- 422
Content type
application/json
{- "client_id": "string",
- "name": "string",
- "tenant_id": "string",
- "redirect_uris": { },
- "allowed_scopes": [
- "string"
], - "token_endpoint_auth_method": "client_secret_post",
- "logo_uri": "string",
- "op_policy_url": "string",
- "op_tos_url": "string",
- "op_user_agreement_url": "string",
- "client_uri": "string",
- "client_logout_uri": "string",
- "register_enable": false,
- "tenant_name": "string",
- "client_secret": "string",
- "client_type": "public",
- "is_lock": false,
- "sing_alg": "RS256",
- "flow": {
- "type": "microsoft-mfa",
- "issuer": "string"
}
}Update Client
Authorizations:
APIKeyHeaderHTTPBearer
path Parameters
| client_id required | string (Client Id) |
Request Body schema: application/jsonrequired
| client_id required | string (Client Id) |
| name required | string (Name) |
| tenant_id required | string (Tenant Id) |
| redirect_uris | Array of strings (Redirect Uris) Default: [] |
| allowed_scopes | Array of strings (Allowed Scopes) |
| token_endpoint_auth_method | string (Token Endpoint Auth Method) Default: "client_secret_post" Value: "client_secret_post" |
Logo Uri (string) or Logo Uri (null) (Logo Uri) | |
Op Policy Url (string) or Op Policy Url (null) (Op Policy Url) | |
Op Tos Url (string) or Op Tos Url (null) (Op Tos Url) | |
Op User Agreement Url (string) or Op User Agreement Url (null) (Op User Agreement Url) | |
Client Uri (string) or Client Uri (null) (Client Uri) | |
Client Logout Uri (string) or Client Logout Uri (null) (Client Logout Uri) | |
| register_enable | boolean (Register Enable) Default: false |
Tenant Name (string) or Tenant Name (null) (Tenant Name) | |
Client Secret (string) or Client Secret (null) (Client Secret) | |
| client_type | string (ClientType) Default: "confidential" Enum: "public" "confidential" |
| is_lock | boolean (Is Lock) Default: false |
| sing_alg | string (AvailableSingAlg) Default: "EdDSA" Enum: "RS256" "EdDSA" |
ClientFlow (object) or null |
Responses
Request samples
- Payload
Content type
application/json
{- "client_id": "string",
- "name": "string",
- "tenant_id": "string",
- "redirect_uris": { },
- "allowed_scopes": [
- "string"
], - "token_endpoint_auth_method": "client_secret_post",
- "logo_uri": "string",
- "op_policy_url": "string",
- "op_tos_url": "string",
- "op_user_agreement_url": "string",
- "client_uri": "string",
- "client_logout_uri": "string",
- "register_enable": false,
- "tenant_name": "string",
- "client_secret": "string",
- "client_type": "public",
- "is_lock": false,
- "sing_alg": "RS256",
- "flow": {
- "type": "microsoft-mfa",
- "issuer": "string"
}
}Response samples
- 200
- 422
Content type
application/json
nullCreate User Key
Authorizations:
APIKeyHeaderHTTPBearer
Request Body schema: application/jsonrequired
| name required | string (Name) |
| scopes required | Array of strings (Scopes) |
| tenant_id required | string (Tenant Id) |
Responses
Request samples
- Payload
Content type
application/json
{- "name": "string",
- "scopes": [
- "string"
], - "tenant_id": "string"
}Response samples
- 201
- 422
Content type
application/json
{- "key_id": "string",
- "key_hash": "string",
- "user_id": "string",
- "tenant_id": "string",
- "created_at": {
- "at": "2019-08-24T14:15:22Z",
- "ip": "string",
- "country": "string",
- "user_agent": "string",
- "user_agent_parsed": {
- "browser": {
- "family": "string",
- "version": "string"
}, - "os": {
- "family": "string",
- "version": "string"
}, - "device": {
- "family": "string",
- "brand": "string",
- "model": "string"
}, - "is_mobile": false,
- "is_tablet": false,
- "is_pc": false,
- "is_bot": false
}
}, - "name": "",
- "scopes": [
- "string"
], - "last_use_at": {
- "at": "2019-08-24T14:15:22Z",
- "ip": "string",
- "country": "string",
- "user_agent": "string",
- "user_agent_parsed": {
- "browser": {
- "family": "string",
- "version": "string"
}, - "os": {
- "family": "string",
- "version": "string"
}, - "device": {
- "family": "string",
- "brand": "string",
- "model": "string"
}, - "is_mobile": false,
- "is_tablet": false,
- "is_pc": false,
- "is_bot": false
}
}, - "is_active": true,
- "api_key": "string"
}List User Keys
Authorizations:
APIKeyHeaderHTTPBearer
query Parameters
| tenant_id required | string (Tenant Id) |
Responses
Response samples
- 200
- 422
Content type
application/json
{- "api_keys": [
- {
- "key_id": "string",
- "key_hash": "string",
- "user_id": "string",
- "tenant_id": "string",
- "created_at": {
- "at": "2019-08-24T14:15:22Z",
- "ip": "string",
- "country": "string",
- "user_agent": "string",
- "user_agent_parsed": {
- "browser": {
- "family": "string",
- "version": "string"
}, - "os": {
- "family": "string",
- "version": "string"
}, - "device": {
- "family": "string",
- "brand": "string",
- "model": "string"
}, - "is_mobile": false,
- "is_tablet": false,
- "is_pc": false,
- "is_bot": false
}
}, - "name": "",
- "scopes": [
- "string"
], - "last_use_at": {
- "at": "2019-08-24T14:15:22Z",
- "ip": "string",
- "country": "string",
- "user_agent": "string",
- "user_agent_parsed": {
- "browser": {
- "family": "string",
- "version": "string"
}, - "os": {
- "family": "string",
- "version": "string"
}, - "device": {
- "family": "string",
- "brand": "string",
- "model": "string"
}, - "is_mobile": false,
- "is_tablet": false,
- "is_pc": false,
- "is_bot": false
}
}, - "is_active": true,
- "username": ""
}
]
}Regenerate Api Key
Authorizations:
APIKeyHeaderHTTPBearer
path Parameters
| key_id required | string (Key Id) |
Responses
Response samples
- 200
- 422
Content type
application/json
{- "key_id": "string",
- "key_hash": "string",
- "user_id": "string",
- "tenant_id": "string",
- "created_at": {
- "at": "2019-08-24T14:15:22Z",
- "ip": "string",
- "country": "string",
- "user_agent": "string",
- "user_agent_parsed": {
- "browser": {
- "family": "string",
- "version": "string"
}, - "os": {
- "family": "string",
- "version": "string"
}, - "device": {
- "family": "string",
- "brand": "string",
- "model": "string"
}, - "is_mobile": false,
- "is_tablet": false,
- "is_pc": false,
- "is_bot": false
}
}, - "name": "",
- "scopes": [
- "string"
], - "last_use_at": {
- "at": "2019-08-24T14:15:22Z",
- "ip": "string",
- "country": "string",
- "user_agent": "string",
- "user_agent_parsed": {
- "browser": {
- "family": "string",
- "version": "string"
}, - "os": {
- "family": "string",
- "version": "string"
}, - "device": {
- "family": "string",
- "brand": "string",
- "model": "string"
}, - "is_mobile": false,
- "is_tablet": false,
- "is_pc": false,
- "is_bot": false
}
}, - "is_active": true,
- "api_key": "string"
}Create Tenant
Authorizations:
APIKeyHeaderHTTPBearer
Request Body schema: application/jsonrequired
| tenant_id required | string (Tenant Id) |
| register_enable | boolean (Register Enable) Default: false |
| is_2fa | boolean (Is 2Fa) Default: false |
| use_pin | boolean (Use Pin) Default: true |
| use_face_recognition | boolean (Use Face Recognition) Default: false |
| display_name | string (Display Name) Default: "" |
Responses
Request samples
- Payload
Content type
application/json
{- "tenant_id": "string",
- "register_enable": false,
- "is_2fa": false,
- "use_pin": true,
- "use_face_recognition": false,
- "display_name": ""
}Response samples
- 201
- 422
Content type
application/json
nullUpdate Tenant
Authorizations:
APIKeyHeaderHTTPBearer
path Parameters
| tenant_id required | string (Tenant Id) |
Request Body schema: application/jsonrequired
| register_enable | boolean (Register Enable) Default: false |
| use_pin | boolean (Use Pin) Default: true |
| use_face_recognition | boolean (Use Face Recognition) Default: false |
| display_name required | string (Display Name) |
Responses
Request samples
- Payload
Content type
application/json
{- "register_enable": false,
- "use_pin": true,
- "use_face_recognition": false,
- "display_name": "string"
}Response samples
- 200
- 422
Content type
application/json
null