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

Tenant

GetTenants

POST /Tenant

Body parameter

{
"offset": 0,
"limit": 25,
"tenantIds": [
"string"
]
}

Parameters

NameInTypeRequiredDescription
bodybodyGetTenantsRequestfalsenone

Responses

StatusMeaningDescriptionSchema
200OKOKTenantIPagedResponse

AddTenant

POST /Tenant/create

Body parameter

{
"tenantId": "string",
"tenantName": "string",
"tenantType": "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

CreateUser

POST /User

Body parameter

{
"email": "string"
}

Parameters

NameInTypeRequiredDescription
bodybodyCreateUserRequestfalsenone

Responses

StatusMeaningDescriptionSchema
200OKOKUser

GetUsers

GET /User

Parameters

NameInTypeRequiredDescription
Offsetqueryinteger(int32)falseHow far to skip into a collection
Limitqueryinteger(int32)falseHow many results to return

Responses

StatusMeaningDescriptionSchema
200OKOKUserIPagedResponse

SignUp

POST /User/signup

Body parameter

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

Parameters

NameInTypeRequiredDescription
bodybodySignupUserRequestfalsenone

Responses

StatusMeaningDescriptionSchema
200OKOKUser
400Bad RequestBad RequestProblemDetails

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

SuspendUser

PUT /User/suspend

Body parameter

{
"email": "string"
}

Parameters

NameInTypeRequiredDescription
bodybodySuspendUserRequestfalsenone

Responses

StatusMeaningDescriptionSchema
200OKOKNone

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",
"tenantType": "string"
}

NameTypeRequiredRestrictionsDescription
tenantIdstringtruenonenone
tenantNamestringtruenonenone
tenantTypestringtruenonenone

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

GetTenantsRequest

{
"offset": 0,
"limit": 25,
"tenantIds": [
"string"
]
}

NameTypeRequiredRestrictionsDescription
offsetinteger(int32)truenoneHow far to skip into a collection
limitinteger(int32)truenoneHow many results to return
tenantIds[string]¦nullfalsenoneList of Zentry Pass Tenant Ids

GetUserTenantsResponse

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

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

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

SignupUserRequest

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

NameTypeRequiredRestrictionsDescription
emailstringtruenonenone
passwordstringtruenonenone

SuspendUserRequest

{
"email": "string"
}

NameTypeRequiredRestrictionsDescription
emailstringtruenoneThe email of the user to suspend

Tenant

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

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
tenantTypestringtruenoneThe type of the tenant

TenantIPagedResponse

{
"data": [
{
"id": "184d3163ee1ffbbdb38b6c07",
"dateCreated": "2019-08-24T14:15:22Z",
"dateUpdated": "2019-08-24T14:15:22Z",
"tenantId": "504d3163bb1ffbbdb02b6c43",
"tenantName": "Zentry Pass",
"tenantType": "Individual"
}
],
"pagedRequest": {
"offset": 0,
"limit": 25
},
"totalCount": 100
}

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

User

{
"id": "string",
"email": "string",
"emailConfirmed": true,
"isSuspended": true
}

NameTypeRequiredRestrictionsDescription
idstringtruenonenone
emailstringtruenonenone
emailConfirmedbooleantruenonenone
isSuspendedbooleantruenonenone

UserIPagedResponse

{
"data": [
{
"id": "string",
"email": "string",
"emailConfirmed": true,
"isSuspended": true
}
],
"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