Zentry.Identity.Api v1.0
Base URLs:
Authentication
- API Key (API_KEY)
- Parameter Name: Api-Key Authentication, in: header.
Authorization
Token
POST /connect/token
Body parameter
grant_type: string
username: string
password: string
refresh_token: string
Parameters
Name | In | Type | Required | Description |
---|---|---|---|---|
tenant-id | header | string | false | none |
body | body | object | false | none |
» grant_type | body | string | false | none |
» username | body | string | false | none |
» password | body | string | false | none |
» refresh_token | body | string | false | none |
Responses
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | OK | LoginResponse |
LegacyLogin
POST /login
Body parameter
{
"email": "string",
"password": "string",
"twoFactorCode": "string",
"twoFactorRecoveryCode": "string"
}
Parameters
Name | In | Type | Required | Description |
---|---|---|---|---|
body | body | LoginRequest | false | none |
Responses
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | OK | LegacyLoginResponse |
Tenant
AddTenant
POST /Tenant
Body parameter
{
"tenantId": "string",
"tenantName": "string"
}
Parameters
Name | In | Type | Required | Description |
---|---|---|---|---|
body | body | AddTenantRequest | false | none |
Responses
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | OK | None |
TwoFactorCode
SendTwoFactorCode
POST /TwoFactorCode/send
Responses
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | OK | None |
VerifyTwoFactorCode
POST /TwoFactorCode/verify
Body parameter
{
"code": "string"
}
Parameters
Name | In | Type | Required | Description |
---|---|---|---|---|
body | body | VerifyTwoFactorCodeRequest | false | none |
Responses
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | OK | None |
User
CreateAdminUser
POST /User/admin
Responses
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | OK | None |
CreateUser
POST /User
Body parameter
{
"email": "string"
}
Parameters
Name | In | Type | Required | Description |
---|---|---|---|---|
body | body | CreateUserRequest | false | none |
Responses
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | OK | User |
AddUserClaim
POST /User/claim
Body parameter
{
"email": "string",
"type": "string",
"value": "string"
}
Parameters
Name | In | Type | Required | Description |
---|---|---|---|---|
body | body | AddUserClaimRequest | false | none |
Responses
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | OK | None |
AddUserRole
POST /User/role
Body parameter
{
"email": "string",
"role": "string",
"tenantId": "string"
}
Parameters
Name | In | Type | Required | Description |
---|---|---|---|---|
body | body | AddUserRoleRequest | false | none |
Responses
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | OK | None |
RemoveUserRole
DELETE /User/role
Body parameter
{
"email": "string",
"role": "string",
"tenantId": "string"
}
Parameters
Name | In | Type | Required | Description |
---|---|---|---|---|
body | body | RemoveUserRoleRequest | false | none |
Responses
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | OK | None |
GetUsersWithRole
POST /User/with-role
Body parameter
{
"offset": 0,
"limit": 25,
"role": "string",
"tenantId": "string"
}
Parameters
Name | In | Type | Required | Description |
---|---|---|---|---|
body | body | GetUsersWithRoleRequest | false | none |
Responses
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | OK | UserIPagedResponse |
GetApiKey
GET /User/api-key
Responses
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | OK | GetApiKeyResponse |
GetUserTenants
GET /User/tenants
Responses
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | OK | GetUserTenantsResponse |
Zentry.Identity.Api
post__forgotPassword
POST /forgotPassword
Body parameter
{
"email": "string"
}
Parameters
Name | In | Type | Required | Description |
---|---|---|---|---|
body | body | ForgotPasswordRequest | true | none |
Responses
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | OK | None |
400 | Bad Request | Bad Request | HttpValidationProblemDetails |
post__resetPassword
POST /resetPassword
Body parameter
{
"email": "string",
"resetCode": "string",
"newPassword": "string"
}
Parameters
Name | In | Type | Required | Description |
---|---|---|---|---|
body | body | ResetPasswordRequest | true | none |
Responses
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | OK | None |
400 | Bad Request | Bad Request | HttpValidationProblemDetails |
Schemas
AddTenantRequest
{
"tenantId": "string",
"tenantName": "string"
}
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
tenantId | string | true | none | none |
tenantName | string | true | none | none |
AddUserClaimRequest
{
"email": "string",
"type": "string",
"value": "string"
}
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
string | true | none | none | |
type | string | true | none | none |
value | string | true | none | none |
AddUserRoleRequest
{
"email": "string",
"role": "string",
"tenantId": "string"
}
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
string | true | none | none | |
role | string | true | none | none |
tenantId | string | true | none | none |
CreateUserRequest
{
"email": "string"
}
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
string | true | none | none |
ForgotPasswordRequest
{
"email": "string"
}
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
string | true | none | none |
GetApiKeyResponse
{
"apiKey": "string"
}
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
apiKey | string | true | none | none |
GetUserTenantsResponse
{
"tenants": [
{
"id": "184d3163ee1ffbbdb38b6c07",
"dateCreated": "2019-08-24T14:15:22Z",
"dateUpdated": "2019-08-24T14:15:22Z",
"tenantId": "504d3163bb1ffbbdb02b6c43",
"tenantName": "Zentry Pass"
}
]
}
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
tenants | [Tenant]¦null | false | none | none |
GetUsersWithRoleRequest
{
"offset": 0,
"limit": 25,
"role": "string",
"tenantId": "string"
}
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
offset | integer(int32) | true | none | How far to skip into a collection |
limit | integer(int32) | true | none | How many results to return |
role | string | true | none | none |
tenantId | string | true | none | none |
HttpValidationProblemDetails
{
"type": "string",
"title": "string",
"status": 0,
"detail": "string",
"instance": "string",
"property1": null,
"property2": null,
"errors": {
"property1": [
"string"
],
"property2": [
"string"
]
}
}
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
anonymous | ProblemDetails | false | none | none |
and
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
anonymous | object | false | none | none |
» additionalProperties | any | false | none | none |
» errors | object | true | none | none |
»» additionalProperties | [string] | false | none | none |
IPagedRequest
{
"offset": 0,
"limit": 25
}
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
offset | integer(int32) | true | read-only | How far to skip into a collection |
limit | integer(int32) | true | read-only | How many results to return |
LegacyLoginResponse
{
"accessToken": "string"
}
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
accessToken | string | true | none | none |
LoginRequest
{
"email": "string",
"password": "string",
"twoFactorCode": "string",
"twoFactorRecoveryCode": "string"
}
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
string | true | none | none | |
password | string | true | none | none |
twoFactorCode | string¦null | false | none | none |
twoFactorRecoveryCode | string¦null | false | none | none |
LoginResponse
{
"access_token": "string",
"refresh_token": "string",
"expires_in": 0
}
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
access_token | string | true | none | none |
refresh_token | string | true | none | none |
expires_in | integer(int64) | true | none | none |
ProblemDetails
{
"type": "string",
"title": "string",
"status": 0,
"detail": "string",
"instance": "string",
"property1": null,
"property2": null
}
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
additionalProperties | any | false | none | none |
type | string¦null | false | none | none |
title | string¦null | false | none | none |
status | integer(int32)¦null | false | none | none |
detail | string¦null | false | none | none |
instance | string¦null | false | none | none |
RemoveUserRoleRequest
{
"email": "string",
"role": "string",
"tenantId": "string"
}
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
string | true | none | none | |
role | string | true | none | none |
tenantId | string | true | none | none |
ResetPasswordRequest
{
"email": "string",
"resetCode": "string",
"newPassword": "string"
}
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
string | true | none | none | |
resetCode | string | true | none | none |
newPassword | string | true | none | none |
Tenant
{
"id": "184d3163ee1ffbbdb38b6c07",
"dateCreated": "2019-08-24T14:15:22Z",
"dateUpdated": "2019-08-24T14:15:22Z",
"tenantId": "504d3163bb1ffbbdb02b6c43",
"tenantName": "Zentry Pass"
}
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
id | string | true | none | The unique identifier for this entity |
dateCreated | string(date-time) | true | none | The initial date this entity was created |
dateUpdated | string(date-time) | true | none | The last time this entity was updated |
tenantId | string | true | none | The id of the tenant. |
tenantName | string | true | none | The name of the tenant |
User
{
"id": "string",
"email": "string"
}
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
id | string | true | none | none |
string | true | none | none |
UserIPagedResponse
{
"data": [
{
"id": "string",
"email": "string"
}
],
"pagedRequest": {
"offset": 0,
"limit": 25
},
"totalCount": 100
}
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
data | [User] | true | read-only | The paged data |
pagedRequest | IPagedRequest | true | none | none |
totalCount | integer(int32) | true | read-only | The total number of items available |
VerifyTwoFactorCodeRequest
{
"code": "string"
}
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
code | string | true | none | none |