Reference
People
GET/api/v1/peopleSearch people
Finds people by name or email address, 50 per page, by last name. Optionally only the people of one company.scope customers:read
Query
| query | stringWords to find in first name, last name or email. |
| company | stringA company id, to list only its people. |
| include_inactive | booleanInclude deactivated rows. Default: only active ones, as the lists in nxva.base show. |
| page | integer1-based page of 50 rows. Omit for the first page. |
Response 200
| items[] | object[] |
| items[].id | string |
| items[].name | string |
| items[].email | string | null |
| items[].phone | string | null |
| items[].position | string | null |
| items[].company | object | null |
| items[].company.id | string |
| items[].company.name | string |
| items[].is_active | boolean |
| items[].url | string |
| page | integer |
| total | integer |
| has_more | boolean |
Schema
{
"type": "object",
"properties": {
"items": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string"
},
"email": {
"type": [
"string",
"null"
]
},
"phone": {
"type": [
"string",
"null"
]
},
"position": {
"type": [
"string",
"null"
]
},
"company": {
"anyOf": [
{
"type": "object",
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string"
}
},
"required": [
"id",
"name"
],
"additionalProperties": false
},
{
"type": "null"
}
]
},
"is_active": {
"type": "boolean"
},
"url": {
"type": "string"
}
},
"required": [
"id",
"name",
"email",
"phone",
"position",
"company",
"is_active",
"url"
],
"additionalProperties": false
}
},
"page": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
"total": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
"has_more": {
"type": "boolean"
}
},
"required": [
"items",
"page",
"total",
"has_more"
],
"additionalProperties": false
}Refusals are problems with a code — see Errors.
POST/api/v1/peopleCreate person
Creates a contact person, with or without a company. Refused when the email address already belongs to somebody, naming that person. Search first with search_people.scope customers:write
Body (JSON)
| last_namerequired | string |
| first_name | stringFirst name. An empty string clears it; omit it to leave it as it is. |
| salutation | one of Herr, Frau, "Herr" or "Frau", used in letters and mails. An empty string leaves it open for a person to fill in. |
| stringEmail address. Unique: two people cannot share one. An empty string clears it; omit it to leave it as it is. | |
| phone | stringPhone number. An empty string clears it; omit it to leave it as it is. |
| position | stringJob title. An empty string clears it; omit it to leave it as it is. |
| company | stringThe id of the company they work for, from search_companies. |
Response 200
| id | string |
| created | boolean |
| name | string |
| is_active | boolean |
| support_access | one of not_invited, invited, linked, withdrawn |
| salutation | string | null |
| string | null | |
| phone | string | null |
| position | string | null |
| company | object | null |
| company.id | string |
| company.name | string |
| url | string |
Schema
{
"type": "object",
"properties": {
"id": {
"type": "string"
},
"created": {
"type": "boolean"
},
"name": {
"type": "string"
},
"is_active": {
"type": "boolean"
},
"support_access": {
"type": "string",
"enum": [
"not_invited",
"invited",
"linked",
"withdrawn"
]
},
"salutation": {
"type": [
"string",
"null"
]
},
"email": {
"type": [
"string",
"null"
]
},
"phone": {
"type": [
"string",
"null"
]
},
"position": {
"type": [
"string",
"null"
]
},
"company": {
"anyOf": [
{
"type": "object",
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string"
}
},
"required": [
"id",
"name"
],
"additionalProperties": false
},
{
"type": "null"
}
]
},
"url": {
"type": "string"
}
},
"required": [
"id",
"created",
"name",
"is_active",
"support_access",
"salutation",
"email",
"phone",
"position",
"company",
"url"
],
"additionalProperties": false
}Refusals are problems with a code — see Errors.
GET/api/v1/people/{id}Get person
One person: contact data, company, their access to the support site (not_invited, invited, linked, withdrawn), and the tickets they raised.scope customers:read
Path
| idrequired | stringThe person's id, from search_people or get_company. |
Response 200
| id | string |
| salutation | string | null |
| first_name | string | null |
| last_name | string |
| name | string |
| string | null | |
| phone | string | null |
| position | string | null |
| is_active | boolean |
| company | object | null |
| company.id | string |
| company.name | string |
| support_access | one of not_invited, invited, linked, withdrawn |
| tickets[]optional | object[] |
| tickets[].id | string |
| tickets[].number | string |
| tickets[].title | string |
| tickets[].status | string |
| url | string |
Schema
{
"type": "object",
"properties": {
"id": {
"type": "string"
},
"salutation": {
"type": [
"string",
"null"
]
},
"first_name": {
"type": [
"string",
"null"
]
},
"last_name": {
"type": "string"
},
"name": {
"type": "string"
},
"email": {
"type": [
"string",
"null"
]
},
"phone": {
"type": [
"string",
"null"
]
},
"position": {
"type": [
"string",
"null"
]
},
"is_active": {
"type": "boolean"
},
"company": {
"anyOf": [
{
"type": "object",
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string"
}
},
"required": [
"id",
"name"
],
"additionalProperties": false
},
{
"type": "null"
}
]
},
"support_access": {
"type": "string",
"enum": [
"not_invited",
"invited",
"linked",
"withdrawn"
]
},
"tickets": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"number": {
"type": "string"
},
"title": {
"type": "string"
},
"status": {
"type": "string"
}
},
"required": [
"id",
"number",
"title",
"status"
],
"additionalProperties": false
}
},
"url": {
"type": "string"
}
},
"required": [
"id",
"salutation",
"first_name",
"last_name",
"name",
"email",
"phone",
"position",
"is_active",
"company",
"support_access",
"url"
],
"additionalProperties": false
}Refusals are problems with a code — see Errors.
PATCH/api/v1/people/{id}Update person
Changes a person's name, salutation, contact details or company. Only the fields given change. company: "none" detaches them from their company.scope customers:write
Path
| idrequired | stringThe person's id, from search_people. |
Body (JSON)
| last_name | string |
| first_name | stringFirst name. An empty string clears it; omit it to leave it as it is. |
| salutation | one of Herr, Frau, "Herr" or "Frau", used in letters and mails. An empty string leaves it open for a person to fill in. |
| stringEmail address. Unique: two people cannot share one. An empty string clears it; omit it to leave it as it is. | |
| phone | stringPhone number. An empty string clears it; omit it to leave it as it is. |
| position | stringJob title. An empty string clears it; omit it to leave it as it is. |
| company | stringA company id, or "none". |
| active | booleanfalse deactivates the person: they stay, with their quotes and tickets, but are no longer offered. true activates them again. |
Response 200
| id | string |
| created | boolean |
| name | string |
| is_active | boolean |
| support_access | one of not_invited, invited, linked, withdrawn |
| salutation | string | null |
| string | null | |
| phone | string | null |
| position | string | null |
| company | object | null |
| company.id | string |
| company.name | string |
| url | string |
Schema
{
"type": "object",
"properties": {
"id": {
"type": "string"
},
"created": {
"type": "boolean"
},
"name": {
"type": "string"
},
"is_active": {
"type": "boolean"
},
"support_access": {
"type": "string",
"enum": [
"not_invited",
"invited",
"linked",
"withdrawn"
]
},
"salutation": {
"type": [
"string",
"null"
]
},
"email": {
"type": [
"string",
"null"
]
},
"phone": {
"type": [
"string",
"null"
]
},
"position": {
"type": [
"string",
"null"
]
},
"company": {
"anyOf": [
{
"type": "object",
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string"
}
},
"required": [
"id",
"name"
],
"additionalProperties": false
},
{
"type": "null"
}
]
},
"url": {
"type": "string"
}
},
"required": [
"id",
"created",
"name",
"is_active",
"support_access",
"salutation",
"email",
"phone",
"position",
"company",
"url"
],
"additionalProperties": false
}Refusals are problems with a code — see Errors.
POST/api/v1/people/{id}/withdraw-support-accessWithdraw support access
Takes a person's access to the support site away: a linked account is no longer recognised, and an outstanding invitation can no longer be redeemed. Takes effect on their next request. Nobody is mailed. Inviting is not a tool: it mails the customer.scope customers:write
Path
| idrequired | stringThe person's id, from search_people. |
Response 200
| id | string |
| created | boolean |
| name | string |
| is_active | boolean |
| support_access | one of not_invited, invited, linked, withdrawn |
| salutation | string | null |
| string | null | |
| phone | string | null |
| position | string | null |
| company | object | null |
| company.id | string |
| company.name | string |
| url | string |
Schema
{
"type": "object",
"properties": {
"id": {
"type": "string"
},
"created": {
"type": "boolean"
},
"name": {
"type": "string"
},
"is_active": {
"type": "boolean"
},
"support_access": {
"type": "string",
"enum": [
"not_invited",
"invited",
"linked",
"withdrawn"
]
},
"salutation": {
"type": [
"string",
"null"
]
},
"email": {
"type": [
"string",
"null"
]
},
"phone": {
"type": [
"string",
"null"
]
},
"position": {
"type": [
"string",
"null"
]
},
"company": {
"anyOf": [
{
"type": "object",
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string"
}
},
"required": [
"id",
"name"
],
"additionalProperties": false
},
{
"type": "null"
}
]
},
"url": {
"type": "string"
}
},
"required": [
"id",
"created",
"name",
"is_active",
"support_access",
"salutation",
"email",
"phone",
"position",
"company",
"url"
],
"additionalProperties": false
}Refusals are problems with a code — see Errors.