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"
}

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"
}

NameTypeRequiredRestrictionsDescription
emailstringtruenonenone
firstNamestringtruenonenone
lastNamestringtruenonenone

CurrentUser

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

NameTypeRequiredRestrictionsDescription
idstringtruenonenone
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
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
emailstringtruenonenone
firstNamestringtruenonenone
lastNamestringtruenonenone
pictureUrlstring¦nullfalsenonenone

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