1. Identity
Spencer Integration API
  • Spencer Integration API
  • Identity
    • Request access token
      POST
  • News
    • Fetch news publications
      GET
    • Fetch news publications for userlist
      GET
    • Create news draft
      POST
  • Users
    • Create user
      POST
    • Fetch user
      GET
    • Update user
      PUT
    • Delete user
      DELETE
    • Check if user exists
      HEAD
    • Add user profile picture
      POST
    • Create user tag
      POST
    • Update user tag
      PUT
    • Check if user tag exists
      HEAD
  • Document library
    • Fetch node
      GET
  • Notifications
    • Create notification
      POST
  1. Identity

Request access token

POST
https://{{auth_domain}}/auth/oauth2/realms/root/realms/{{tenant}}/access_token

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Body Params application/x-www-form-urlencoded

Request Code Samples

Shell
HTTP
Request Request Example
Shell
HTTP
curl --location --globoff 'https://{{auth_domain}}/auth/oauth2/realms/root/realms/{{tenant}}/access_token' \
--header 'Authorization: Bearer <token>' \
--data-urlencode 'grant_type=client_credentials' \
--data-urlencode 'client_id={{agent_api_client_id}}' \
--data-urlencode 'client_secret={{agent_api_client_secret}}'

Responses

🟢200
application/json
OK
Bodyapplication/json

Example
{
    "access_token": "eyJhbGciOiJSUzI1NiIsInR5cCI6ImF0K2p3dCJ9.eyJuYmYiOjE2Mjk4ODU4MTksImV4cCI6MTYyOTg4OTQxOSwiaXNzIjoiaHR0cHM6Ly9zcGVuY2VybXVsdGlzc28tcHJvZHVjdGlvbi1pZGVudGl0eS5zcGVuY2VyLmNvIiwiYXVkIjoiaHR0cHM6Ly9zcGVuY2VybXVsdGlzc28tcHJvZHVjdGlvbi1pZGVudGl0eS5zcGVuY2VyLmNvL3Jlc291cmNlcyIsImNsaWVudF9pZCI6ImFnZW50DSWvbyIsImN1c3RvbWVyIjoidm9vIiwianRpIjoiQ0M1NjgxRDQ5QUVDNTE3RDgxQzUwRUFERUFBN0JGRTkiLCJpYXQiOjE2Mjk4ODU4MTksInNjb3BlIjpbIndyaXRlIl19.eqODicTcpKzZfg7ARpH7GZ71H25q0Rul1A4kMc2xreqcgh6ciA7et78pHWzZ5jwRGV1M4BGBcgrDDQetvUorJW32PNSk2vUpEQDghgw8AU9mZz3WR9L97krEPFFcgAhdjL0Agcz-4uLE8VeI4hjytT_ENQYV6OjUClObzZs5Z_11EPdp6eQO4fgDM49--Cu9pZgj85SsCcDyl4IQOIj0VvLSfKto3b1gI_MWgfeJGGID3hMXuA5VQGHgFvYGqV3L2wVzH90AznK1pZl-JCIV20tiKKdTzfj2ZHUgbGJjygrI0BJ-tIYUdpDrr6b1TEJ0-pkO9b8plo0i01LMcw_jXQ",
    "expires_in": 3600,
    "token_type": "Bearer",
    "scope": "write"
}
⚪0
🟠400400.badRequest
🟠401401.unauthorized
🟠403403.forbidden
🟠404404.notFound
🔴500500.internalServerError
Previous
Spencer Integration API
Next
Fetch news publications
Built with