curl --request POST \
  --url https://{domain}-be.glean.com/rest/api/v1/addcredential \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "datasource": "<string>",
  "datasourceInstance": "<string>",
  "user": "<string>",
  "token": "<string>",
  "metadata": "<string>"
}'

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
Credential content
datasource
string

the datasource the credential applies to

datasourceInstance
string

the datasource instance the credential applies to

user
string

the user info (email or username for example) for the credential

token
string

the token part of the credential (password, apiToken etc)

metadata
string

any metadata associated with the user credential

Response

200

OK