Skip to main content

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

NameInTypeRequiredDescription
tenant-idheaderstringfalsenone
bodybodyobjectfalsenone
» grant_typebodystringfalsenone
» usernamebodystringfalsenone
» passwordbodystringfalsenone
» refresh_tokenbodystringfalsenone

Responses

StatusMeaningDescriptionSchema
200OKOKLoginResponse

LegacyLogin

POST /login

Body parameter

{
"email": "string",
"password": "string",
"twoFactorCode": "string",
"twoFactorRecoveryCode": "string"
}

Parameters

NameInTypeRequiredDescription
bodybodyLoginRequestfalsenone

Responses

StatusMeaningDescriptionSchema
200OKOKLegacyLoginResponse

Tenant

AddTenant

POST /Tenant

Body parameter

{
"tenantId": "string",
"tenantName": "string"
}

Parameters

NameInTypeRequiredDescription
bodybodyAddTenantRequestfalsenone

Responses

StatusMeaningDescriptionSchema
200OKOKNone

TwoFactorCode

SendTwoFactorCode

POST /TwoFactorCode/send

Responses

StatusMeaningDescriptionSchema
200OKOKNone

VerifyTwoFactorCode

POST /TwoFactorCode/verify

Body parameter

{
"code": "string"
}

Parameters

NameInTypeRequiredDescription
bodybodyVerifyTwoFactorCodeRequestfalsenone

Responses

StatusMeaningDescriptionSchema
200OKOKNone

User

CreateAdminUser

POST /User/admin

Responses

StatusMeaningDescriptionSchema
200OKOKNone

CreateUser

POST /User

Body parameter

{
"email": "string"
}

Parameters

NameInTypeRequiredDescription
bodybodyCreateUserRequestfalsenone

Responses

StatusMeaningDescriptionSchema
200OKOKUser

AddUserClaim

POST /User/claim

Body parameter

{
"email": "string",
"type": "string",
"value": "string"
}

Parameters

NameInTypeRequiredDescription
bodybodyAddUserClaimRequestfalsenone

Responses

StatusMeaningDescriptionSchema
200OKOKNone

AddUserRole

POST /User/role

Body parameter

{
"email": "string",
"role": "string",
"tenantId": "string"
}

Parameters

NameInTypeRequiredDescription
bodybodyAddUserRoleRequestfalsenone

Responses

StatusMeaningDescriptionSchema
200OKOKNone

RemoveUserRole

DELETE /User/role

Body parameter

{
"email": "string",
"role": "string",
"tenantId": "string"
}

Parameters

NameInTypeRequiredDescription
bodybodyRemoveUserRoleRequestfalsenone

Responses

StatusMeaningDescriptionSchema
200OKOKNone

GetUsersWithRole

POST /User/with-role

Body parameter

{
"offset": 0,
"limit": 25,
"role": "string",
"tenantId": "string"
}

Parameters

NameInTypeRequiredDescription
bodybodyGetUsersWithRoleRequestfalsenone

Responses

StatusMeaningDescriptionSchema
200OKOKUserIPagedResponse

GetApiKey

GET /User/api-key

Responses

StatusMeaningDescriptionSchema
200OKOKGetApiKeyResponse

GetUserTenants

GET /User/tenants

Responses

StatusMeaningDescriptionSchema
200OKOKGetUserTenantsResponse

Zentry.Identity.Api

post__forgotPassword

POST /forgotPassword

Body parameter

{
"email": "string"
}

Parameters

NameInTypeRequiredDescription
bodybodyForgotPasswordRequesttruenone

Responses

StatusMeaningDescriptionSchema
200OKOKNone
400Bad RequestBad RequestHttpValidationProblemDetails

post__resetPassword

POST /resetPassword

Body parameter

{
"email": "string",
"resetCode": "string",
"newPassword": "string"
}

Parameters

NameInTypeRequiredDescription
bodybodyResetPasswordRequesttruenone

Responses

StatusMeaningDescriptionSchema
200OKOKNone
400Bad RequestBad RequestHttpValidationProblemDetails

Schemas

AddTenantRequest

{
"tenantId": "string",
"tenantName": "string"
}

NameTypeRequiredRestrictionsDescription
tenantIdstringtruenonenone
tenantNamestringtruenonenone

AddUserClaimRequest

{
"email": "string",
"type": "string",
"value": "string"
}

NameTypeRequiredRestrictionsDescription
emailstringtruenonenone
typestringtruenonenone
valuestringtruenonenone

AddUserRoleRequest

{
"email": "string",
"role": "string",
"tenantId": "string"
}

NameTypeRequiredRestrictionsDescription
emailstringtruenonenone
rolestringtruenonenone
tenantIdstringtruenonenone

CreateUserRequest

{
"email": "string"
}

NameTypeRequiredRestrictionsDescription
emailstringtruenonenone

ForgotPasswordRequest

{
"email": "string"
}

NameTypeRequiredRestrictionsDescription
emailstringtruenonenone

GetApiKeyResponse

{
"apiKey": "string"
}

NameTypeRequiredRestrictionsDescription
apiKeystringtruenonenone

GetUserTenantsResponse

{
"tenants": [
{
"id": "184d3163ee1ffbbdb38b6c07",
"dateCreated": "2019-08-24T14:15:22Z",
"dateUpdated": "2019-08-24T14:15:22Z",
"tenantId": "504d3163bb1ffbbdb02b6c43",
"tenantName": "Zentry Pass"
}
]
}

NameTypeRequiredRestrictionsDescription
tenants[Tenant]¦nullfalsenonenone

GetUsersWithRoleRequest

{
"offset": 0,
"limit": 25,
"role": "string",
"tenantId": "string"
}

NameTypeRequiredRestrictionsDescription
offsetinteger(int32)truenoneHow far to skip into a collection
limitinteger(int32)truenoneHow many results to return
rolestringtruenonenone
tenantIdstringtruenonenone

HttpValidationProblemDetails

{
"type": "string",
"title": "string",
"status": 0,
"detail": "string",
"instance": "string",
"property1": null,
"property2": null,
"errors": {
"property1": [
"string"
],
"property2": [
"string"
]
}
}

NameTypeRequiredRestrictionsDescription
anonymousProblemDetailsfalsenonenone

and

NameTypeRequiredRestrictionsDescription
anonymousobjectfalsenonenone
» additionalPropertiesanyfalsenonenone
» errorsobjecttruenonenone
»» additionalProperties[string]falsenonenone

IPagedRequest

{
"offset": 0,
"limit": 25
}

NameTypeRequiredRestrictionsDescription
offsetinteger(int32)trueread-onlyHow far to skip into a collection
limitinteger(int32)trueread-onlyHow many results to return

LegacyLoginResponse

{
"accessToken": "string"
}

NameTypeRequiredRestrictionsDescription
accessTokenstringtruenonenone

LoginRequest

{
"email": "string",
"password": "string",
"twoFactorCode": "string",
"twoFactorRecoveryCode": "string"
}

NameTypeRequiredRestrictionsDescription
emailstringtruenonenone
passwordstringtruenonenone
twoFactorCodestring¦nullfalsenonenone
twoFactorRecoveryCodestring¦nullfalsenonenone

LoginResponse

{
"access_token": "string",
"refresh_token": "string",
"expires_in": 0
}

NameTypeRequiredRestrictionsDescription
access_tokenstringtruenonenone
refresh_tokenstringtruenonenone
expires_ininteger(int64)truenonenone

ProblemDetails

{
"type": "string",
"title": "string",
"status": 0,
"detail": "string",
"instance": "string",
"property1": null,
"property2": null
}

NameTypeRequiredRestrictionsDescription
additionalPropertiesanyfalsenonenone
typestring¦nullfalsenonenone
titlestring¦nullfalsenonenone
statusinteger(int32)¦nullfalsenonenone
detailstring¦nullfalsenonenone
instancestring¦nullfalsenonenone

RemoveUserRoleRequest

{
"email": "string",
"role": "string",
"tenantId": "string"
}

NameTypeRequiredRestrictionsDescription
emailstringtruenonenone
rolestringtruenonenone
tenantIdstringtruenonenone

ResetPasswordRequest

{
"email": "string",
"resetCode": "string",
"newPassword": "string"
}

NameTypeRequiredRestrictionsDescription
emailstringtruenonenone
resetCodestringtruenonenone
newPasswordstringtruenonenone

Tenant

{
"id": "184d3163ee1ffbbdb38b6c07",
"dateCreated": "2019-08-24T14:15:22Z",
"dateUpdated": "2019-08-24T14:15:22Z",
"tenantId": "504d3163bb1ffbbdb02b6c43",
"tenantName": "Zentry Pass"
}

NameTypeRequiredRestrictionsDescription
idstringtruenoneThe unique identifier for this entity
dateCreatedstring(date-time)truenoneThe initial date this entity was created
dateUpdatedstring(date-time)truenoneThe last time this entity was updated
tenantIdstringtruenoneThe id of the tenant.
tenantNamestringtruenoneThe name of the tenant

User

{
"id": "string",
"email": "string"
}

NameTypeRequiredRestrictionsDescription
idstringtruenonenone
emailstringtruenonenone

UserIPagedResponse

{
"data": [
{
"id": "string",
"email": "string"
}
],
"pagedRequest": {
"offset": 0,
"limit": 25
},
"totalCount": 100
}

NameTypeRequiredRestrictionsDescription
data[User]trueread-onlyThe paged data
pagedRequestIPagedRequesttruenonenone
totalCountinteger(int32)trueread-onlyThe total number of items available

VerifyTwoFactorCodeRequest

{
"code": "string"
}

NameTypeRequiredRestrictionsDescription
codestringtruenonenone