Users

View your profile

For simplified API requests, replace your user ID with self when making a call.

Fetch your profile

GET https://web.r0app.com/api/v1/users/:user_id

Example request

curl https://web.r0app.com/api/v1/users/self \
    -X GET \
    -H 'Authorization: Bearer <token>'

View a user's profile

For simplified API requests, replace your user ID with self when making a call.

Fetch a user profile

GET https://web.r0app.com/api/v1/orgs/:org_id/users/:user_id

Example request

curl https://web.r0app.com/api/v1/orgs/:org_id/users/self \
    -X GET \
    -H 'Authorization: Bearer <token>'

Update user profile

Update your profile

PATCH https://web.r0app.com/api/v1/users/:user_id

Request Body

Name
Type
Description

user[first_name]

String

user[last_name]

String

Example request

curl https://web.r0app.com/api/v1/users/:user_id \
    -X PATCH \
    -H 'Authorization: Bearer <token>' \
    -d 'user[last_name]=Simpson'

Additional information

User notifications can also be edited via this endpoint. User notifications allow you to control what types of email messages you receive from R0. Notifications by default include the status and ID. For more information about specific subscriptions, refer to the Notification subscriptions page.

Example notification update request body:

{
  "user": {
    "first_name": "Homer",
    "notifications": [
      {
        "notif_id": "1ee2e713-027e-60e2-b17b-a61f3c9c0acb",
        "notif_status": "disabled"
      }
    ]
  }
}

Last updated