curl --request POST \
  --url https://{domain}-be.glean.com/rest/api/v1/peoplesuggest \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "categories": [
    "INVITE_INACTIVE_PROMO"
  ],
  "departments": [
    "<string>"
  ]
}'
{
  "suggestions": [
    {
      "category": "INVITE_INACTIVE_PROMO",
      "people": [
        {
          "name": "George Clooney",
          "obfuscatedId": "abc123"
        }
      ]
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

X-Scio-Actas
string

Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens).

X-Glean-Auth-Type
string

Auth type being used to access the endpoint (should be non-empty only for global tokens).

Body

application/json
Includes request params for type of suggestions.
categories
enum<string>[]
required

Categories of data requested. Request can include single or multiple categories.

Available options:
INVITE_INACTIVE_PROMO,
INVITE_NONUSERS
departments
string[]

Departments that the data is requested for. If empty, corresponds to whole company.

Response

200
application/json
OK
suggestions
object[]

Information about people suggestions for asked categories.