Skip to main content

Zentry.Users.Api v1.0

Base URLs:

Authentication

  • API Key (API_KEY)
    • Parameter Name: Api-Key Authentication, in: header.

User

GetCurrentUser

GET /User/me

Responses

StatusMeaningDescriptionSchema
200OKOKCurrentUser

CreateOrUpdateUser

POST /User/create

Body parameter

{
"email": "string",
"firstName": "string",
"lastName": "string",
"createUserTenant": true
}

Parameters

NameInTypeRequiredDescription
bodybodyCreateOrUpdateUserRequestfalsenone

Responses

StatusMeaningDescriptionSchema
200OKOKUser

GetUsers

POST /User

Body parameter

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

Parameters

NameInTypeRequiredDescription
bodybodyGetUsersRequestfalsenone

Responses

StatusMeaningDescriptionSchema
200OKOKUserIPagedResponse

Schemas

CreateOrUpdateUserRequest

{
"email": "string",
"firstName": "string",
"lastName": "string",
"createUserTenant": true
}

NameTypeRequiredRestrictionsDescription
emailstringtruenonenone
firstNamestringtruenonenone
lastNamestringtruenonenone
createUserTenantbooleantruenoneWhether or not to create a new tenant for the user account

CurrentUser

{
"id": "string",
"roles": [
"string"
],
"tenantId": "string",
"tenantName": "string",
"tenantType": "string",
"employerIds": [
"string"
],
"workspaceId": "string",
"email": "string",
"emailConfirmed": true,
"firstName": "string",
"lastName": "string",
"pictureUrl": "string",
"isInternal": true
}

NameTypeRequiredRestrictionsDescription
idstringtruenoneThe id of the user
roles[string]¦nullfalsenoneThe roles for this user
tenantIdstring¦nullfalsenoneThe tenant this user is currently authenticated to
tenantNamestring¦nullfalsenoneThe tenant this user is currently authenticated to
tenantTypestring¦nullfalsenoneThe type of tenant this user is currently authenticated to
employerIds[string]¦nullfalsenoneThis is a legacy property and should not be used anymore. Please use "TenantId" instead
workspaceIdstring¦nullfalsenoneThis is a legacy property and should not be used anymore. Please use "TenantId" instead
emailstringtruenoneThe email of the user
emailConfirmedbooleantruenoneFlag indicating if the current user's email has been confirmed
firstNamestringtruenoneThe first name of the user
lastNamestringtruenoneThe last name of the user
pictureUrlstring¦nullfalsenoneThe url to the picture of the user
isInternalbooleantruenoneFlag inidcating if the user is an internal user

GetUsersRequest

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

NameTypeRequiredRestrictionsDescription
anonymousUserQueryfalsenonenone

and

NameTypeRequiredRestrictionsDescription
anonymousobjectfalsenonenone

IPagedRequest

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

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

User

{
"id": "string",
"email": "string",
"firstName": "string",
"lastName": "string",
"pictureUrl": "string"
}

NameTypeRequiredRestrictionsDescription
idstringtruenonenone
emailstringtruenonenone
firstNamestringtruenonenone
lastNamestringtruenonenone
pictureUrlstring¦nullfalsenonenone

UserIPagedResponse

{
"data": [
{
"id": "string",
"email": "string",
"firstName": "string",
"lastName": "string",
"pictureUrl": "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

UserQuery

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

NameTypeRequiredRestrictionsDescription
offsetinteger(int32)truenoneHow far to skip into a collection
limitinteger(int32)truenoneHow many results to return
ids[string]¦nullfalsenonenone
emails[string]¦nullfalsenonenone