Zum Inhalt

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

querystringWords to find in first name, last name or email.
companystringA company id, to list only its people.
include_inactivebooleanInclude deactivated rows. Default: only active ones, as the lists in nxva.base show.
pageinteger1-based page of 50 rows. Omit for the first page.

Response 200

items[]object[]
items[].idstring
items[].namestring
items[].emailstring | null
items[].phonestring | null
items[].positionstring | null
items[].companyobject | null
items[].company.idstring
items[].company.namestring
items[].is_activeboolean
items[].urlstring
pageinteger
totalinteger
has_moreboolean
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_namerequiredstring
first_namestringFirst name. An empty string clears it; omit it to leave it as it is.
salutationone of Herr, Frau, "Herr" or "Frau", used in letters and mails. An empty string leaves it open for a person to fill in.
emailstringEmail address. Unique: two people cannot share one. An empty string clears it; omit it to leave it as it is.
phonestringPhone number. An empty string clears it; omit it to leave it as it is.
positionstringJob title. An empty string clears it; omit it to leave it as it is.
companystringThe id of the company they work for, from search_companies.

Response 200

idstring
createdboolean
namestring
is_activeboolean
support_accessone of not_invited, invited, linked, withdrawn
salutationstring | null
emailstring | null
phonestring | null
positionstring | null
companyobject | null
company.idstring
company.namestring
urlstring
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

idrequiredstringThe person's id, from search_people or get_company.

Response 200

idstring
salutationstring | null
first_namestring | null
last_namestring
namestring
emailstring | null
phonestring | null
positionstring | null
is_activeboolean
companyobject | null
company.idstring
company.namestring
support_accessone of not_invited, invited, linked, withdrawn
tickets[]optionalobject[]
tickets[].idstring
tickets[].numberstring
tickets[].titlestring
tickets[].statusstring
urlstring
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

idrequiredstringThe person's id, from search_people.

Body (JSON)

last_namestring
first_namestringFirst name. An empty string clears it; omit it to leave it as it is.
salutationone of Herr, Frau, "Herr" or "Frau", used in letters and mails. An empty string leaves it open for a person to fill in.
emailstringEmail address. Unique: two people cannot share one. An empty string clears it; omit it to leave it as it is.
phonestringPhone number. An empty string clears it; omit it to leave it as it is.
positionstringJob title. An empty string clears it; omit it to leave it as it is.
companystringA company id, or "none".
activebooleanfalse deactivates the person: they stay, with their quotes and tickets, but are no longer offered. true activates them again.

Response 200

idstring
createdboolean
namestring
is_activeboolean
support_accessone of not_invited, invited, linked, withdrawn
salutationstring | null
emailstring | null
phonestring | null
positionstring | null
companyobject | null
company.idstring
company.namestring
urlstring
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

idrequiredstringThe person's id, from search_people.

Response 200

idstring
createdboolean
namestring
is_activeboolean
support_accessone of not_invited, invited, linked, withdrawn
salutationstring | null
emailstring | null
phonestring | null
positionstring | null
companyobject | null
company.idstring
company.namestring
urlstring
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.