Simple In/Out API v4 Documentation

Welcome to the Simple In/Out API! You can use our API to access Simple In/Out data. You can request both read and write access.

The Simple In/Out v4 API is a RESTful (mostly) API protected by OAuth 2.

Rate Limiting

APIv4 is protected by daily rate limits. Currently, your application can access APIv4 up to 10,000 times per 24 hour period. Every request to APIv4 will return with two headers: X-RateLimit-Limit and X-RateLimit-Remaining. X-RateLimit-Limit will indicate the total number of requests that can be made against APIv4 over a 24 hour period (always 10,000 for now). X-RateLimit-Remaining will indicate how many requests you have left.

When you’ve run out of requests, APIv4 will return a HTTP status of 429 indicating Too Many Requests.

Expansions

Some of our APIs allow you to include additional information. This saves on API calls, as you can retrieve related information in the primary call and avoid additional requests.

When an API supports including additional information, it does so via the expand query parameter. This is a comma-delimited list of resources to include. We support expansions via embedding directly into the payload.

The Meta object

Most API payloads include a meta object to provide additional details about the requested resource(s). This includes paging most often, and sometimes additional information about the user making the request. For some payloads there may be additional items in the meta.

Here’s an example of a meta object

{"meta": {
  "paging": {
    "page": 1,
    "page_size": 25,
    "page_count": 2,
    "count": 47,
    "previous_page": null,
    "next_page": 2,
    "first_href": "https://www.simpleinout.com/api/v4/beacons",
    "last_href": "https://www.simpleinout.com/api/v4/beacons?page=2",
    "previous_href": null,
    "next_href": "https://www.simpleinout.com/api/v4/beacons?page=2"
  },
  "last_updated_at": {
    "beacons": 1435250484,
    "favorites": 1437151284,
    "fences": 1436546484,
    "groups": 1436287284,
    "networks": 1436287284,
    "settings": 1439916084
  }
}}

Pagination

Pagination occurs when requesting multiple objects. Information about this appears in the meta object.

Name Description
page the page number currently being returned
page_size the number of results per page
page_count the total number of pages available
count the total number of results
previous_page the number of the previous page
next_page the number of the next page
first_href the URL of the API call for the first page of results
last_href the URL of the API call for the last page of results
previous_href the URL of the API call for the page of results prior to the current page
next_href the URL of the API call for the page of results after the current page

Last Update At

The last_updated_at attribute in the meta object returns the epoch time indicating the last time certain resources have been updated. This applies to the authorized user’s company. By storing these dates, you can discover when resources have been updated without having to poll those resources on a regular basis.

If Modified Since and If None Match

Most of the GET requests to the API support the If-Modified-Since and If-None-Match headers. If these two headers are present, the GET request will only return a payload if the relevant data has been updated since the time specified in the If-Modified-Since header and the ETag in the If-None-Match header. If it has been updated since, the payload will be the same as usual. If the data has not been updated, the return will be empty with a HTTP status of 304 (Not Modified). The format of the time is in the HTTP specification, while the ETag should be the same as that returned when a request has been made previously.

When a GET API returns data, the Last-Modified header will be present providing the exact time it’s been modified. This date should be used for future If-Modified-Since requests. The ETag header will be present providing the hash value representing the returned payload. This hash should be used for future If-None-Match requests.

Range Searching

Some integer or date/time fields can be searched by using operators. This permits exact searches, as well as less than, greater than, or between. For these fields, you have an array of options.

  • For exact matches, simply include the value. Date/time fields use epoch time, so it’s almost impossible to get an exact match to the second. Examples are 18 or 1524168783.
  • For ranges based on a single value, you may prepend a symbol to the front of the value. The symbols <, >, <=, or >= are supported. Examples are <18 or >=1524168783.
  • For between range searches, the .. operator is used in between the two values. This includes the values on both ends, as well as those in between. Examples are 9..18 or 1523854800..1524459599.

Sorting

When requesting multiple objects, most of the time you’ll have some sorting options available. Sorting occurs by passing in the sort query parameter. The value is a comma-delimited string of fields in the order you wish them to be sorted. By default, all fields will sort in ascending fashion, but you can sort in descending fashion by including a - sign before the field. An example of this would be sort=name,-begin_at.

Errors

Error objects in Simple In/Out consist of three parts: code, message, and details.

  • code corresponds with those listed below. These provide context as to what type of error occurred.
  • message is an English plain-text reading of what happened. This should be used for further developer debugging, but should not be relied on to remain consistent over time. While these messages can be displayed to end-users, it is highly discouraged as they can change without notice and they are always going to be in English.
  • details provides an array of information in the case of validation failures. This will typically be populated with 5005 validation errors, though they also can appear with improperly formatted status updates (2002). The format of the objects in the array are key: value pairs, whereby key is the name of a field and value is one of a number of possible strings to indicated more specifically what was invalid with the input. Please note that while the key will typically be a parameter on the object, it can occasionally be base for errors that fail validation but don’t apply to a particular field.

An example of an error payload:

{
  "code": 5005,
  "message": "Validation Failure: Name can't be blank, UUID is invalid, Beacons exceed company limit of 100",
  "details": [
    { "name": "blank" },
    { "uuid": "invalid" },
    { "base": "greater_than" }
  ]
}

Error Codes

1002: Company is Disabled

Either the user’s company was on a trial and the trial has expired or the company has let their subscription to Simple In/Out expire. This error will present itself on almost all APIs and will return with the status code 403.


2002: Status Failure

The status update could not be completed.


5001: Bad Range

The integer or date value/range is invalid.


5002: Unknown Sort

The sort requested does not exist. The full message of this error will provide more explanation.


5003: Unknown Expansion

The expansion requested does not exist. The full message of this error will provide more explanation.


5005: Validation Failure

When attempting to create/update/delete the object, some data was either missing or invalid. The full message of this error will provide more explanation.


5007: Parameters Missing

A required parameter for this API was missing.


5008: Array Required

A parameter which is required to be an array was passed something other than an array.


5009: Unknown Only

The only field requested does not exist. The full message of this error will provide more explanation.


5010: Invalid Float

The floating point number is invalid.


5012: Invalid JSON

The posted JSON body is invalid.


5013: Invalid Page Size of Zero

The page_size parameter cannot be zero.


5014: Invalid mime-type requested

An invalid mime-type was requested.

Error Details

taken

The attribute is not unique

inclusion

The attribute is not in the list of acceptable values

invalid

The attribute is not valid

empty

The attribute cannot be empty

blank

The attribute cannot be blank

too_long

The attribute is too long

not_a_hex

The attribute is not a valid hex color code

not_a_number

The attribute is not a number

not_an_integer

The attribute is not an integer

greater_than

The attribute is greater than a predefined limit

greater_than_or_equal_to

The attribute is greater than or equal to a predefined limit

less_than

The attribute is less than a predefined floor

less_than_or_equal_to

The attribute is greater than or equal to a predefined floor

too_long

The attribute is longer than allowed

too_short

The attribute is shorter than allowed

Forbidden Requests (403)

When the user is authenticated, but doesn’t have the necessary permissions to perform an action, the server will respond with the status code of 403 and include the user’s privileges in the payload.

Example payload:

{
  "company": {
    "id": "1",
    "scheduled_statuses": true
  },
  "user": {
    "id": "5",
    "roles": {
      "name": "Regular User",
      "billing": false
      "followed_users": false,
      "reminders": false,
      "safeties": false,
      "user_board": true,
      "manage_company_and_users": false,
      "manage_groups_and_memberships": false,
      "manage_others_archives": false,
      "manage_others_futures": false,
      "manage_others_status": false,
      "manage_own_archives": false,
      "manage_own_futures": true,
      "manage_own_status": true,
      "view_others_archives": true,
      "view_others_futures": true,
      "view_others_reports": false,
      "view_user_board_updated_at": true,
      "member_board": false,
      "manage_member_archives": false,
      "manage_member_futures": false,
      "manage_member_status": false,
      "view_member_archives": false,
      "view_member_futures": false,
      "view_member_reports": false,
      "created_at": 1506268448,
      "updated_at": 1506269853
    }
  }
}

The privileges payload may not exist on all forbidden responses. In the cases when an error code is used, such as when a company is disabled, only the code and message will be returned.

Web Hooks

Web Hooks are a great way to be notified when something happens inside Simple In/Out. When you add a Web Hook URL to Simple In/Out, we’ll send a request to that URL with JSON in the body to tell you about things that have happened.

Currently, this applies to only three event types: status.new, status.schedule, and status.destroy, though many may be added in the future. It is strongly advised that you code against the type attribute on the root of the JSON object to avoid new event types being added in the future having unexpected impacts on your code.

The root JSON keys define the basics and out of the box are compatible with Slack’s incoming webhooks. This also means that the text with be formatted in Markdown. Within the data object is much of the information specific to Simple In/Out, including ids that can be used in combination with APIv4 to request further information.

{
  "username": "Bojack Horseman",
  "email": "[email protected]",
  "icon_url": "http://bojackhorseman.com/avatar.gif",
  "text": "*In*: In Hollywoo",
  "type": "status.new",
  "data": {
    "user_id": "34858",
    "status": "in",
    "comment": "In Hollywoo",
    "created_at": 1448046759,
    "admin": {
      "id": "2844", "name": "Princess Carolyn"
    },
    "application": {
      "id": "84774", "name": "Simple In/Out iOS"
    }
  }
}



Authentication

Authorization

Authorization is required to access the Simple In/Out API. This results in a HTTP 302 redirect to simpleinout.com. There, Simple In/Out will ask the user for their credentials and verify they wish to grant your application permission to act on their behalf. If they allow it, Simple In/Out will send a request to your redirect_uri with a code that you can use in the Authorization Code grant to have access and refresh tokens to access the API.

Endpoint

GET /oauth/authorize

Parameters

Name Description
response_type required (string) the type of authorization to use, in this case always 'code'
client_id required (string) your API client key
redirect_uri required (string) the URI to return the user to after authenticating, must match those registered with Simple In/Out
scope required (string) requested scope, either 'read' or 'write', by default 'read'
locale (string) the language for authorization. Available locales: en, en-au, en-ca, en-gb, es, fr, fr-ca. Defaults to 'en'

Request

Route

GET /oauth/authorize?response_type=code&client_id=PLACE_YOUR_API_CLIENT_ID_HERE&redirect_uri=https%3A%2F%2Fwww.simplymadeapps.com%2Fredirect%2Furl&scope=write&locale=en

Headers

Content-Type: application/json

Query Parameters

response_type=code
client_id=PLACE_YOUR_API_CLIENT_ID_HERE
redirect_uri=https://www.simplymadeapps.com/redirect/url
scope=write
locale=en

cURL

curl -g "https://www.simpleinout.com/oauth/authorize?response_type=code&client_id=PLACE_YOUR_API_CLIENT_ID_HERE&redirect_uri=https%3A%2F%2Fwww.simplymadeapps.com%2Fredirect%2Furl&scope=write&locale=en" -X GET \
	-H "Version: HTTP/1.0" \
	-H "Content-Type: application/json"

Response

Simulated Response

Status

302

Body

<html><body>You are being <a href="http://example.org/oauth/authorize?client_id=PLACE_YOUR_API_CLIENT_ID_HERE&amp;redirect_uri=https%3A%2F%2Fwww.simplymadeapps.com%2Fredirect%2Furl&amp;response_type=code&amp;scope=write&amp;user_confirmed=true&amp;locale=en">redirected</a>.</body></html>

Authorization Code grant

Authorization Code should be used for accessing the API on behalf of a particular user. This is useful for pulling information about the user, or customizing the return of some APIs by the user’s preference.

The first step here is to have your user authorize your app for use. To do this, send your user to our site as noted to the left, passing your client_id and your redirect_uri. We’ll handle asking for the user, authenticating they are who they say they are, and handling the authorization (asking the user for permission on your behalf).

Once your user successfully authorizes your application, they will be redirected back to you. In this response will be a code in the form of a query string. Use this code to request tokens from Simple In/Out. You’ll then receive an access token and refresh token.

Endpoint

POST /oauth/token

Parameters

Name Description
grant_type required (string) type of grant to use
client_id required (string) your API client key
client_secret required (string) your API client secret
code required (string) if using Authorization Code grant, this is the code that is returned from Simple In/Out
redirect_uri required (string) the URI to return the user to after authenticating, must match those registered with Simple In/Out
scope (string) requested scope, either 'read' or 'write', defaults to 'read'

Request

Route

POST /oauth/token

Headers

Content-Type: application/json

Body

{
  "grant_type": "authorization_code",
  "client_id": "YOUR_API_CLIENT_ID",
  "client_secret": "YOUR_API_CLIENT_SECRET",
  "code": "EWdbZKJdzNmGWggpWrp2VSJbjd9pHjyH30hUeh4_xeY",
  "redirect_uri": "https://www.simplymadeapps.com/redirect/url"
}

cURL

curl "https://www.simpleinout.com/oauth/token" -d '{"grant_type":"authorization_code","client_id":"YOUR_API_CLIENT_ID","client_secret":"YOUR_API_CLIENT_SECRET","code":"EWdbZKJdzNmGWggpWrp2VSJbjd9pHjyH30hUeh4_xeY","redirect_uri":"https://www.simplymadeapps.com/redirect/url"}' -X POST \
	-H "Version: HTTP/1.0" \
	-H "Content-Type: application/json"

Response

Simulated Response

Response Fields

Name Description
access_token (string) the access token used to make API requests
refresh_token (string) used with the Refresh Token grant type to request a new token
token_type (string) identifies the type of token
expires_in (integer) length of time, in seconds, that the token will be honored
scope (string) the scope of the token, either 'read' or 'write'
created_at (integer) the time the token was issued
user (object) the authenticated user's id, company id, and role.

Status

200

Headers

ETag: W/"f03f0cf40b6cc610406ca8c9601083b4"

Body

{
  "access_token": "_Iw7yvkGorGG-Ob8IRLY9C1-suL_rmhroAKXyLmLAqM",
  "token_type": "Bearer",
  "expires_in": 7200,
  "refresh_token": "YdUMAl9Ts6tiRZOANsl3JJQUuZbM698gZUefF-XQRZU",
  "scope": "write",
  "created_at": 1726148188,
  "user": {
    "id": "760737",
    "company_id": "421941",
    "roles": {
      "id": "1871359",
      "name": "Administrator",
      "billing": true,
      "followed_users": true,
      "reminders": true,
      "safeties": true,
      "user_board": true,
      "manage_company_and_users": true,
      "manage_groups_and_memberships": true,
      "manage_others_archives": true,
      "manage_others_futures": true,
      "manage_others_status": true,
      "manage_own_archives": true,
      "manage_own_futures": true,
      "manage_own_status": true,
      "view_others_archives": true,
      "view_others_futures": true,
      "view_others_reports": true,
      "view_user_board_updated_at": true,
      "member_board": false,
      "manage_member_archives": false,
      "manage_member_futures": false,
      "manage_member_status": false,
      "view_member_archives": false,
      "view_member_futures": false,
      "view_member_reports": false,
      "created_at": 1726148188,
      "updated_at": 1726148188
    }
  }
}

Refresh Token grant

Refresh Token should be used to renew your access token in the event that it has expired. This is useful for regaining access without again having to as the user for credentials.

Endpoint

POST /oauth/token

Parameters

Name Description
grant_type required (string) type of grant to use, in this case always 'refresh_token'
client_id required (string) your API client key
client_secret required (string) your API client secret
refresh_token required (string) your refresh token

Request

Route

POST /oauth/token

Headers

Content-Type: application/json

Body

{
  "grant_type": "refresh_token",
  "client_id": "YOUR_API_CLIENT_ID",
  "client_secret": "YOUR_API_CLIENT_SECRET",
  "refresh_token": "dbqn4a1ggtg2q1y1kriiesyaz8a5hpe3"
}

cURL

curl "https://www.simpleinout.com/oauth/token" -d '{"grant_type":"refresh_token","client_id":"YOUR_API_CLIENT_ID","client_secret":"YOUR_API_CLIENT_SECRET","refresh_token":"dbqn4a1ggtg2q1y1kriiesyaz8a5hpe3"}' -X POST \
	-H "Version: HTTP/1.0" \
	-H "Content-Type: application/json"

Response

Simulated Response

Response Fields

Name Description
access_token (string) the access token used to make API requests
refresh_token (string) used with the Refresh Token grant type to request a new token
token_type (string) identifies the type of token
expires_in (integer) length of time, in seconds, that the token will be honored
scope (string) the scope of the token, either 'read' or 'write'
created_at (integer) the time the token was issued
user (object) the authenticated user's id and role.

Status

200

Headers

ETag: W/"3279636d07fb64c11dd2c3ac1ec0275d"

Body

{
  "access_token": "LzAuyY--vrWIm8bRg0ldOJ9K14sA8VnoAqhe0iw0T3M",
  "token_type": "Bearer",
  "expires_in": 604800,
  "refresh_token": "GRAwax0qad84b_zL0B3TNUqHRNnnjTxQmmjdMm35WhE",
  "scope": "write",
  "created_at": 1726148188,
  "user": {
    "id": "760743",
    "company_id": "421945",
    "roles": {
      "id": "1871375",
      "name": "Administrator",
      "billing": true,
      "followed_users": true,
      "reminders": true,
      "safeties": true,
      "user_board": true,
      "manage_company_and_users": true,
      "manage_groups_and_memberships": true,
      "manage_others_archives": true,
      "manage_others_futures": true,
      "manage_others_status": true,
      "manage_own_archives": true,
      "manage_own_futures": true,
      "manage_own_status": true,
      "view_others_archives": true,
      "view_others_futures": true,
      "view_others_reports": true,
      "view_user_board_updated_at": true,
      "member_board": false,
      "manage_member_archives": false,
      "manage_member_futures": false,
      "manage_member_status": false,
      "view_member_archives": false,
      "view_member_futures": false,
      "view_member_reports": false,
      "created_at": 1726148188,
      "updated_at": 1726148188
    }
  }
}

Revoke a token

Revokes a token, rendering it invalid.

Endpoint

POST /oauth/revoke

Parameters

Name Description
client_id required (string) your API client key
client_secret required (string) your API client secret
token required (string) the token to revoke

Request

Route

POST /oauth/revoke

Headers

Content-Type: application/json

Body

{
  "client_id": "5838101789273",
  "client_secret": "8982241843900",
  "token": "SIVYnFItZfY5LIG4gPNEE7JQ34pUA3ude4lmGzjB49E"
}

cURL

curl "https://www.simpleinout.com/oauth/revoke" -d '{"client_id":"5838101789273","client_secret":"8982241843900","token":"SIVYnFItZfY5LIG4gPNEE7JQ34pUA3ude4lmGzjB49E"}' -X POST \
	-H "Version: HTTP/1.0" \
	-H "Content-Type: application/json"

Response

Simulated Response

Status

200

Headers

ETag: W/"44136fa355b3678a1146ad16f7e8649e"

Body

{}

Token information

Provides details about the OAuth token.

Endpoint

GET /oauth/token/info

Request

Route

GET /oauth/token/info

Headers

Content-Type: application/json
Authorization: Bearer YJsKZ5JvthWPsY4z7v_0srvIqMQCxjA_rGAatcXz1c4

cURL

curl -g "https://www.simpleinout.com/oauth/token/info" -X GET \
	-H "Version: HTTP/1.0" \
	-H "Content-Type: application/json" \
	-H "Authorization: Bearer YJsKZ5JvthWPsY4z7v_0srvIqMQCxjA_rGAatcXz1c4"

Response

Simulated Response

Response Fields

Name Description
resource_owner_id (integer) the id of the user
scopes (array) the scopes this token is authorized to use
expires_in_seconds (integer) the number of seconds until the token expires
application (object) information about the application
created_at (integer) the time the token was issued

Status

200

Headers

ETag: W/"bf8c524cc6a5110ae647a5a1401f50a5"

Body

{
  "resource_owner_id": 760741,
  "scope": [
    "read"
  ],
  "expires_in": 604800,
  "application": {
    "uid": "8221060324901"
  },
  "created_at": 1726148188
}

Beacons

Create a beacon

Creates a new beacon. Once this beacon is created, it will appear in the company’s beacons within the Simple In/Out apps. The UUID can then be added to a hardware beacon to broadcast. Users must have a role that permits managing the company to create beacons. Companies are limited to 100 Beacons.

Endpoint

POST /api/v4/beacons

Parameters

Name Description
beacon[name] required (string) the name of the beacon
beacon[uuid] (string) the unique beacon identifier
beacon[comment_on_entry] (string) the comment applied to status updates on entry, defaults to 'In at {name}'
beacon[comment_on_exit] (string) the comment applied to status updates on exit, defaults to 'Left {name}'
beacon[status_on_entry] (string) the status to apply on entry: 'in', 'remote', 'busy', 'break', 'out', 'sick', 'vacation', or 'off', defaults to 'in'
beacon[status_on_exit] (string) the status to apply on exit: 'in', 'remote', 'busy', 'break', 'out', 'sick', 'vacation', or 'off', defaults to 'out'

Request

Route

POST /api/v4/beacons

Headers

Content-Type: application/json
Authorization: Bearer Vo-ouu2xMWLKHVk9CEgxG9hoDohZ-M9GPyuuCoAAqIE

Body

{
  "beacon": {
    "name": "My Office",
    "uuid": "6EA4801F-4D41-4114-AFA7-7EC977C81B41"
  }
}

cURL

curl "https://www.simpleinout.com/api/v4/beacons" -d '{"beacon":{"name":"My Office","uuid":"6EA4801F-4D41-4114-AFA7-7EC977C81B41"}}' -X POST \
	-H "Version: HTTP/1.0" \
	-H "Content-Type: application/json" \
	-H "Authorization: Bearer Vo-ouu2xMWLKHVk9CEgxG9hoDohZ-M9GPyuuCoAAqIE"

Response

Simulated Response

Response Fields

Name Description
beacons (object) the newly created beacon attributes

Status

201

Headers

ETag: W/"9d2076263c74c4ce8d14c997d3351bc1"

Body

{
  "beacons": {
    "id": "21920",
    "name": "My Office",
    "uuid": "6EA4801F-4D41-4114-AFA7-7EC977C81B41",
    "comment_on_entry": "In at My Office",
    "comment_on_exit": "Left My Office",
    "entry": true,
    "exit": true,
    "status_on_entry": "in",
    "status_on_exit": "out",
    "created_at": 1726148188,
    "updated_at": 1726148188
  },
  "meta": {
    "last_updated_at": {
      "beacons": 1726148188,
      "desktop_presences": 1717767388,
      "favorites": 1717767388,
      "fences": 1719063388,
      "groups": 1718112988,
      "networks": 1718026588,
      "roles": 1726148188,
      "settings": 1726148188
    }
  }
}

Delete a beacon

Deletes an existing beacon. Users must have a role that permits managing the company to delete beacons.

Endpoint

DELETE /api/v4/beacons/:id

Request

Route

DELETE /api/v4/beacons/21919

Headers

Content-Type: application/json
Authorization: Bearer ZlV6MLK3qRWExBly4ttbHu6EtGfJWIcBEVS2R96p-n8

cURL

curl "https://www.simpleinout.com/api/v4/beacons/21919" -d '' -X DELETE \
	-H "Version: HTTP/1.0" \
	-H "Content-Type: application/json" \
	-H "Authorization: Bearer ZlV6MLK3qRWExBly4ttbHu6EtGfJWIcBEVS2R96p-n8"

Response

Simulated Response

Status

204

List all beacons

Return a list of all the beacons belonging to the company.

Endpoint

GET /api/v4/beacons

Parameters

Name Description
sort (string) order of the return with optional '-' to denote descending, possibilities include: 'name'
page_size (integer) number of results to return per page, defaults to 25
page (integer) page number of results

Request

Route

GET /api/v4/beacons

Headers

Content-Type: application/json
Authorization: Bearer VkqjcX99mjzUXKOZy47HCIbn-4Tx44NPxpd3bUcVGq8

cURL

curl -g "https://www.simpleinout.com/api/v4/beacons" -X GET \
	-H "Version: HTTP/1.0" \
	-H "Content-Type: application/json" \
	-H "Authorization: Bearer VkqjcX99mjzUXKOZy47HCIbn-4Tx44NPxpd3bUcVGq8"

Response

Simulated Response

Response Fields

Name Description
beacons (array) an array of beacons

Status

200

Headers

ETag: W/"b35902caec5f46c1f2d33b6c7b77451c"
Last-Modified: Thu, 12 Sep 2024 13:36:28 GMT

Body

{
  "beacons": [
    {
      "id": "21917",
      "name": "1 - Cecileberg",
      "uuid": "16F0AA14-B1CB-43BA-B9A6-D6A87FEAE214",
      "comment_on_entry": "In at 1 - Cecileberg",
      "comment_on_exit": "Left 1 - Cecileberg",
      "entry": true,
      "exit": true,
      "status_on_entry": "in",
      "status_on_exit": "out",
      "created_at": 1726148188,
      "updated_at": 1726148188
    },
    {
      "id": "21918",
      "name": "2 - Deckowtown",
      "uuid": "EA865FC7-471D-4240-A5D5-F4EC01120FB3",
      "comment_on_entry": "In at 2 - Deckowtown",
      "comment_on_exit": "Left 2 - Deckowtown",
      "entry": true,
      "exit": true,
      "status_on_entry": "in",
      "status_on_exit": "out",
      "created_at": 1726148188,
      "updated_at": 1726148188
    }
  ],
  "meta": {
    "paging": {
      "page": 1,
      "page_size": 25,
      "page_count": 1,
      "count": 2,
      "previous_page": null,
      "next_page": null,
      "first_href": "http://example.org/api/v4/beacons",
      "last_href": "http://example.org/api/v4/beacons",
      "previous_href": null,
      "next_href": null
    },
    "last_updated_at": {
      "beacons": 1726148188,
      "desktop_presences": 1723901788,
      "favorites": 1725024988,
      "fences": 1722778588,
      "groups": 1719408988,
      "networks": 1724938588,
      "roles": 1726148188,
      "settings": 1726148188
    }
  }
}

Update a beacon

Updates an existing beacon. Please note that if the UUID of the beacon is updated, any corresponding hardware must also be updated to broadcast the new UUID. Users must have a role that permits managing the company to update beacons.

Endpoint

PATCH /api/v4/beacons/:id

Parameters

Name Description
beacon[name] (string) the name of the beacon
beacon[uuid] (string) the unique beacon identifier
beacon[comment_on_entry] (string) the comment applied to status updates on entry, defaults to 'In at {name}'
beacon[comment_on_exit] (string) the comment applied to status updates on exit, defaults to 'Left {name}'
beacon[status_on_entry] (string) the status to apply on entry: 'in', 'remote', 'busy', 'break', 'out', 'sick', 'vacation', or 'off', defaults to 'in'
beacon[status_on_exit] (string) the status to apply on exit: 'in', 'remote', 'busy', 'break', 'out', 'sick', 'vacation', or 'off', defaults to 'out'

Request

Route

PATCH /api/v4/beacons/21921

Headers

Content-Type: application/json
Authorization: Bearer rV2Bf6fHDuT-5ybvhwkUEk4FAy_UQQs149Bjh8NQ8iA

Body

{
  "beacon": {
    "name": "My Renamed Office"
  }
}

cURL

curl "https://www.simpleinout.com/api/v4/beacons/21921" -d '{"beacon":{"name":"My Renamed Office"}}' -X PATCH \
	-H "Version: HTTP/1.0" \
	-H "Content-Type: application/json" \
	-H "Authorization: Bearer rV2Bf6fHDuT-5ybvhwkUEk4FAy_UQQs149Bjh8NQ8iA"

Response

Simulated Response

Response Fields

Name Description
beacons (object) the newly updated beacon attributes

Status

200

Headers

ETag: W/"b6cc63e998fc31553d79c69143f8a8a7"

Body

{
  "beacons": {
    "id": "21921",
    "name": "My Renamed Office",
    "uuid": "F3CD486D-5C5E-4502-AD8E-D2C8D49DBD06",
    "comment_on_entry": "In at 4 - South Eloy",
    "comment_on_exit": "Left 4 - South Eloy",
    "entry": true,
    "exit": true,
    "status_on_entry": "in",
    "status_on_exit": "out",
    "created_at": 1726148188,
    "updated_at": 1726148188
  },
  "meta": {
    "last_updated_at": {
      "beacons": 1726148188,
      "desktop_presences": 1720704988,
      "favorites": 1721655388,
      "fences": 1722951388,
      "groups": 1722260188,
      "networks": 1722000988,
      "roles": 1726148188,
      "settings": 1726148188
    }
  }
}

Companies

Retrieve the current company

Return the company the authorized user belongs to.

Endpoint

GET /api/v4/companies/my

Parameters

Name Description
expand (string) comma-delimited list of extra information to include in the response, possibilities include: 'billing', 'beacons', 'fences', 'groups', 'favorites', 'networks', 'roles'

Request

Route

GET /api/v4/companies/my

Headers

Content-Type: application/json
Authorization: Bearer UyCFkhpjZ0B8ArjAp4DD2idzCcA5KRvHsOiDSWye5u8

cURL

curl -g "https://www.simpleinout.com/api/v4/companies/my" -X GET \
	-H "Version: HTTP/1.0" \
	-H "Content-Type: application/json" \
	-H "Authorization: Bearer UyCFkhpjZ0B8ArjAp4DD2idzCcA5KRvHsOiDSWye5u8"

Response

Simulated Response

Response Fields

Name Description
companies[name] (string) the authorized user's company name
companies[logo_url] (string) url of an image to be used as a fullscreen logo
companies[default_role_id] (string) the unique identifier for the default role
companies[scheduled_statuses] (boolean) whether Scheduled Statuses feature is enabled
companies[available_statuses] (array) the statuses that are available to the company
companies[created_at] (integer) epoch time the company was created

Status

200

Headers

ETag: W/"9474f19b4587694fe896c078635e477a"
Last-Modified: Thu, 12 Sep 2024 13:36:26 GMT

Body

{
  "companies": {
    "id": "421896",
    "available_statuses": [
      "in",
      "out"
    ],
    "name": "Dicki, Reinger and Bernier",
    "scheduled_statuses": true,
    "default_role_id": "1871181",
    "logo_url": null,
    "created_at": 1726148186
  },
  "meta": {
    "last_updated_at": {
      "beacons": 1719408986,
      "desktop_presences": 1724420186,
      "favorites": 1717940186,
      "fences": 1722260186,
      "groups": 1723815386,
      "networks": 1720618586,
      "roles": 1726148186,
      "settings": 1726148186
    }
  }
}

Futures

Delete a future status

Deletes an existing scheduled status. The company must have scheduled statuses turned on. Users must have a role that permits managing their own scheduled statuses to delete one of their scheduled statuses. Users must have a role that permits managing the scheduled statuses of others to delete another user’s scheduled status.

Endpoint

DELETE /api/v4/futures/:id

Request

Route

DELETE /api/v4/futures/18946

Headers

Content-Type: application/json
Authorization: Bearer 6QORcPspz6q-Ogn_Z3hyjj8sW5TSS2TIZ9H03gTYKD0

cURL

curl "https://www.simpleinout.com/api/v4/futures/18946" -d '' -X DELETE \
	-H "Version: HTTP/1.0" \
	-H "Content-Type: application/json" \
	-H "Authorization: Bearer 6QORcPspz6q-Ogn_Z3hyjj8sW5TSS2TIZ9H03gTYKD0"

Response

Simulated Response

Status

204

List future statuses

List all the scheduled statuses. The company must have scheduled statuses turned on. Users must have a role that permits viewing the scheduled statuses of others or only the authorized user’s scheduled statuses will be returned.

Endpoint

GET /api/v4/futures

Parameters

Name Description
page_size (integer) number of results to return per page, defaults to 25
page (integer) page number of results
status (string) the status: 'in', 'remote', 'busy', 'break', 'out', 'sick', or 'vacation'
comment (string) the comment, case sensitive, included with the status change
apply_at (string) a date range string for the time this status will be added
user_id (string) the ID of a particular user
sort (string) order of the return with optional '-' to denote descending, possibilities include: 'apply_at', 'status', 'comment'"
expand (string) comma-delimited list of extra information to include in the response, possibilities include: 'user', 'changed_by_user'

Request

Route

GET /api/v4/futures

Headers

Content-Type: application/json
Authorization: Bearer 1-hPpuceqsDt_YcyZc3cM6Gfe2eljw2g6Nt8OeysJDI

cURL

curl -g "https://www.simpleinout.com/api/v4/futures" -X GET \
	-H "Version: HTTP/1.0" \
	-H "Content-Type: application/json" \
	-H "Authorization: Bearer 1-hPpuceqsDt_YcyZc3cM6Gfe2eljw2g6Nt8OeysJDI"

Response

Simulated Response

Response Fields

Name Description
futures (array) an array of matching future statuses

Status

200

Headers

ETag: W/"23eeabcb66f78075f89f2c11706587b8"
Last-Modified: Thu, 12 Sep 2024 13:36:26 GMT

Body

{
  "futures": [
    {
      "id": "18947",
      "status": "out",
      "comment": "On Vacation, back Monday",
      "apply_at": 1728738000,
      "user_id": "760675",
      "changed_by_user_id": null
    },
    {
      "id": "18948",
      "status": "out",
      "comment": "At the conference this week",
      "apply_at": 1741784400,
      "user_id": "760675",
      "changed_by_user_id": null
    }
  ],
  "meta": {
    "paging": {
      "page": 1,
      "page_size": 25,
      "page_count": 1,
      "count": 2,
      "previous_page": null,
      "next_page": null,
      "first_href": "http://example.org/api/v4/futures",
      "last_href": "http://example.org/api/v4/futures",
      "previous_href": null,
      "next_href": null
    },
    "last_updated_at": {
      "beacons": 1719840986,
      "desktop_presences": 1720791386,
      "favorites": 1718544986,
      "fences": 1724420186,
      "groups": 1719754586,
      "networks": 1720186586,
      "roles": 1726148186,
      "settings": 1726148186
    }
  }
}

Geofences

Create a fence

Creates a new fence. Once this fence is created, it will appear in the company’s fences within the Simple In/Out apps and website. Users must have a role that permits managing the company to create fences. Companies are limited to 150 Geofences.

Endpoint

POST /api/v4/fences

Parameters

Name Description
fence[name] required (string) the name of the fence
fence[latitude] required (float) the latitude of the center point of the fence
fence[longitude] required (float) the longitude of the center point of the fence
fence[radius] required (integer) the radius of the fence, in meters
fence[comment_on_entry] (string) the comment applied to status updates on entry, defaults to 'In at {name}'
fence[comment_on_exit] (string) the comment applied to status updates on exit, defaults to 'Left {name}'
fence[status_on_entry] (string) the status to apply on entry: 'in', 'remote', 'busy', 'break', 'out', 'sick', 'vacation', or 'off', defaults to 'in'
fence[status_on_exit] (string) the status to apply on exit: 'in', 'remote', 'busy', 'break', 'out', 'sick', 'vacation', or 'off', defaults to 'out'

Request

Route

POST /api/v4/fences

Headers

Content-Type: application/json
Authorization: Bearer Q21Q2THSNKKZv-k2-ozeleSDlX9JroRzz2QfnumA82I

Body

{
  "fence": {
    "name": "My Office",
    "latitude": 46.877931,
    "longitude": -96.787459,
    "radius": 150
  }
}

cURL

curl "https://www.simpleinout.com/api/v4/fences" -d '{"fence":{"name":"My Office","latitude":46.877931,"longitude":-96.787459,"radius":150}}' -X POST \
	-H "Version: HTTP/1.0" \
	-H "Content-Type: application/json" \
	-H "Authorization: Bearer Q21Q2THSNKKZv-k2-ozeleSDlX9JroRzz2QfnumA82I"

Response

Simulated Response

Response Fields

Name Description
fences (object) the newly created fence attributes

Status

201

Headers

ETag: W/"c9dce7c256406ef5bdc80c2c309c2c30"

Body

{
  "fences": {
    "id": "7884",
    "name": "My Office",
    "latitude": "46.877931",
    "longitude": "-96.787459",
    "radius": 150,
    "comment_on_entry": "In at My Office",
    "comment_on_exit": "Left My Office",
    "entry": true,
    "exit": true,
    "status_on_entry": "in",
    "status_on_exit": "out",
    "created_at": 1726148186,
    "updated_at": 1726148186
  },
  "meta": {
    "last_updated_at": {
      "beacons": 1720445786,
      "desktop_presences": 1718458586,
      "favorites": 1717594586,
      "fences": 1726148186,
      "groups": 1723728986,
      "networks": 1725975386,
      "roles": 1726148186,
      "settings": 1726148186
    }
  }
}

Delete a fence

Deletes an existing fence. Users must have a role that permits managing the company to delete fences.

Endpoint

DELETE /api/v4/fences/:id

Request

Route

DELETE /api/v4/fences/7885

Headers

Content-Type: application/json
Authorization: Bearer oi221PqZEJvih6FrjVB6s0X2Tq77G9FvJkCvODU7_0w

cURL

curl "https://www.simpleinout.com/api/v4/fences/7885" -d '' -X DELETE \
	-H "Version: HTTP/1.0" \
	-H "Content-Type: application/json" \
	-H "Authorization: Bearer oi221PqZEJvih6FrjVB6s0X2Tq77G9FvJkCvODU7_0w"

Response

Simulated Response

Status

204

List all fences

Return a list of all the fences belonging to the company.

Endpoint

GET /api/v4/fences

Parameters

Name Description
sort (string) order of the return with optional '-' to denote descending, possibilities include: 'name', 'radius
page_size (integer) number of results to return per page, defaults to 25
page (integer) page number of results

Request

Route

GET /api/v4/fences

Headers

Content-Type: application/json
Authorization: Bearer -DnK9ca94u6BE1Y2wILNQeUam0yMi1B8SkpQXFSIbZI

cURL

curl -g "https://www.simpleinout.com/api/v4/fences" -X GET \
	-H "Version: HTTP/1.0" \
	-H "Content-Type: application/json" \
	-H "Authorization: Bearer -DnK9ca94u6BE1Y2wILNQeUam0yMi1B8SkpQXFSIbZI"

Response

Simulated Response

Response Fields

Name Description
fences (array) an array of fences

Status

200

Headers

ETag: W/"0551b8544a05722b72e3ce53a5ec44a0"
Last-Modified: Thu, 12 Sep 2024 13:36:26 GMT

Body

{
  "fences": [
    {
      "id": "7886",
      "name": "2 - Cinthiaside",
      "latitude": "56.1042756632",
      "longitude": "153.0973325515",
      "radius": 1418,
      "comment_on_entry": "In at 2 - Cinthiaside",
      "comment_on_exit": "Left 2 - Cinthiaside",
      "entry": true,
      "exit": true,
      "status_on_entry": "in",
      "status_on_exit": "out",
      "created_at": 1726148186,
      "updated_at": 1726148186
    },
    {
      "id": "7887",
      "name": "3 - East Robbyn",
      "latitude": "-29.7086096709",
      "longitude": "113.0254691975",
      "radius": 355,
      "comment_on_entry": "In at 3 - East Robbyn",
      "comment_on_exit": "Left 3 - East Robbyn",
      "entry": true,
      "exit": true,
      "status_on_entry": "in",
      "status_on_exit": "out",
      "created_at": 1726148186,
      "updated_at": 1726148186
    }
  ],
  "meta": {
    "paging": {
      "page": 1,
      "page_size": 25,
      "page_count": 1,
      "count": 2,
      "previous_page": null,
      "next_page": null,
      "first_href": "http://example.org/api/v4/fences",
      "last_href": "http://example.org/api/v4/fences",
      "previous_href": null,
      "next_href": null
    },
    "last_updated_at": {
      "beacons": 1722260186,
      "desktop_presences": 1726061786,
      "favorites": 1718890586,
      "fences": 1726148186,
      "groups": 1724247386,
      "networks": 1718890586,
      "roles": 1726148186,
      "settings": 1726148186
    }
  }
}

Update a fence

Updates an existing fence. Users must have a role that permits managing the company to update fences.

Endpoint

PATCH /api/v4/fences/:id

Parameters

Name Description
fence[name] (string) the name of the fence
fence[latitude] (float) the latitude of the center point of the fence
fence[longitude] (float) the longitude of the center point of the fence
fence[radius] (integer) the radius of the fence, in meters
fence[comment_on_entry] (string) the comment applied to status updates on entry, defaults to 'In at {name}'
fence[comment_on_exit] (string) the comment applied to status updates on exit, defaults to 'Left {name}'
fence[status_on_entry] (string) the status to apply on entry: 'in', 'remote', 'busy', 'break', 'out', 'sick', 'vacation', or 'off', defaults to 'in'
fence[status_on_exit] (string) the status to apply on exit: 'in', 'remote', 'busy', 'break', 'out', 'sick', 'vacation', or 'off', defaults to 'out'

Request

Route

PATCH /api/v4/fences/7888

Headers

Content-Type: application/json
Authorization: Bearer RtA-6UcmrgLbuMsTPFnfNXzooN1azLYqRn7mwkTLfC0

Body

{
  "fence": {
    "name": "My Renamed Geofence"
  }
}

cURL

curl "https://www.simpleinout.com/api/v4/fences/7888" -d '{"fence":{"name":"My Renamed Geofence"}}' -X PATCH \
	-H "Version: HTTP/1.0" \
	-H "Content-Type: application/json" \
	-H "Authorization: Bearer RtA-6UcmrgLbuMsTPFnfNXzooN1azLYqRn7mwkTLfC0"

Response

Simulated Response

Response Fields

Name Description
fences (object) the newly updated fence attributes

Status

200

Headers

ETag: W/"bc6c99bbeb8bc7a4876c35606b3118c4"

Body

{
  "fences": {
    "id": "7888",
    "name": "My Renamed Geofence",
    "latitude": "58.3774822952",
    "longitude": "-170.0531931349",
    "radius": 18039,
    "comment_on_entry": "In at 4 - Aiville",
    "comment_on_exit": "Left 4 - Aiville",
    "entry": true,
    "exit": true,
    "status_on_entry": "in",
    "status_on_exit": "out",
    "created_at": 1726148186,
    "updated_at": 1726148186
  },
  "meta": {
    "last_updated_at": {
      "beacons": 1719754586,
      "desktop_presences": 1721309786,
      "favorites": 1724938586,
      "fences": 1726148186,
      "groups": 1720186586,
      "networks": 1725975386,
      "roles": 1726148186,
      "settings": 1726148186
    }
  }
}

Groups

Create a group

Creates a new group. Once this group is created, it will appear in the company’s groups within the Simple In/Out apps and website. Users must have a role that permits managing groups/memberships to create groups. Companies are limited to 100 Groups.

Endpoint

POST /api/v4/groups

Parameters

Name Description
group[name] required (string) the name of the group

Request

Route

POST /api/v4/groups

Headers

Content-Type: application/json
Authorization: Bearer pMY5vgEc2051QUThSjT4Qf9hnUeXdcI5h4pC3CkzG_4

Body

{
  "group": {
    "name": "New Department"
  }
}

cURL

curl "https://www.simpleinout.com/api/v4/groups" -d '{"group":{"name":"New Department"}}' -X POST \
	-H "Version: HTTP/1.0" \
	-H "Content-Type: application/json" \
	-H "Authorization: Bearer pMY5vgEc2051QUThSjT4Qf9hnUeXdcI5h4pC3CkzG_4"

Response

Simulated Response

Response Fields

Name Description
groups (object) the newly created group attributes

Status

201

Headers

ETag: W/"3abfdf526bd39a741004bf9ba9e82f5b"

Body

{
  "groups": {
    "id": "40676",
    "name": "New Department"
  },
  "meta": {
    "last_updated_at": {
      "beacons": 1723728986,
      "desktop_presences": 1724333786,
      "favorites": 1723901786,
      "fences": 1724592986,
      "groups": 1726148186,
      "networks": 1724074586,
      "roles": 1726148186,
      "settings": 1726148186
    }
  }
}

Delete a group

Deletes an existing group. Users must have a role that permits managing groups/memberships to delete groups.

Endpoint

DELETE /api/v4/groups/:id

Request

Route

DELETE /api/v4/groups/40677

Headers

Content-Type: application/json
Authorization: Bearer gwPpKZg2Ivr5_Rd4z5eRc7pMgh2TcLC13SyDpigUnC4

cURL

curl "https://www.simpleinout.com/api/v4/groups/40677" -d '' -X DELETE \
	-H "Version: HTTP/1.0" \
	-H "Content-Type: application/json" \
	-H "Authorization: Bearer gwPpKZg2Ivr5_Rd4z5eRc7pMgh2TcLC13SyDpigUnC4"

Response

Simulated Response

Status

204

List all groups

Return a list of all the groups belonging to the company.

Endpoint

GET /api/v4/groups

Parameters

Name Description
sort (string) order of the return with optional '-' to denote descending, possibilities include: 'name'
page_size (integer) number of results to return per page, defaults to 25
page (integer) page number of results

Request

Route

GET /api/v4/groups

Headers

Content-Type: application/json
Authorization: Bearer ST6yz91MYOyZjAVTMAgMLxYrYJN5IDgEBKR2RtsD1SM

cURL

curl -g "https://www.simpleinout.com/api/v4/groups" -X GET \
	-H "Version: HTTP/1.0" \
	-H "Content-Type: application/json" \
	-H "Authorization: Bearer ST6yz91MYOyZjAVTMAgMLxYrYJN5IDgEBKR2RtsD1SM"

Response

Simulated Response

Response Fields

Name Description
groups (array) an array of groups

Status

200

Headers

ETag: W/"9bc9ce2c7761b9f9ef1a2b4019a5fe8a"
Last-Modified: Thu, 12 Sep 2024 13:36:26 GMT

Body

{
  "groups": [
    {
      "id": "40673",
      "name": "Hilpert Inc7"
    },
    {
      "id": "40674",
      "name": "Harber, Stark and Wilderman8"
    }
  ],
  "meta": {
    "paging": {
      "page": 1,
      "page_size": 25,
      "page_count": 1,
      "count": 2,
      "previous_page": null,
      "next_page": null,
      "first_href": "http://example.org/api/v4/groups",
      "last_href": "http://example.org/api/v4/groups",
      "previous_href": null,
      "next_href": null
    },
    "last_updated_at": {
      "beacons": 1726061785,
      "desktop_presences": 1723815385,
      "favorites": 1725370585,
      "fences": 1724420185,
      "groups": 1726148186,
      "networks": 1721568985,
      "roles": 1726148185,
      "settings": 1726148185
    }
  }
}

Update a group

Updates an existing group. Users must have a role that permits managing groups/memberships to update groups.

Endpoint

PATCH /api/v4/groups/:id

Parameters

Name Description
group[name] (string) the name of the group

Request

Route

PATCH /api/v4/groups/40675

Headers

Content-Type: application/json
Authorization: Bearer TFBqi2TZBLq9aJxOk-RNAJ7cQZlbNaPnot47ZeKoe2w

Body

{
  "group": {
    "name": "Renamed Department"
  }
}

cURL

curl "https://www.simpleinout.com/api/v4/groups/40675" -d '{"group":{"name":"Renamed Department"}}' -X PATCH \
	-H "Version: HTTP/1.0" \
	-H "Content-Type: application/json" \
	-H "Authorization: Bearer TFBqi2TZBLq9aJxOk-RNAJ7cQZlbNaPnot47ZeKoe2w"

Response

Simulated Response

Response Fields

Name Description
groups (object) the newly updated group attributes

Status

200

Headers

ETag: W/"f77ae1e60254ba74e9e10371a4a06159"

Body

{
  "groups": {
    "id": "40675",
    "name": "Renamed Department"
  },
  "meta": {
    "last_updated_at": {
      "beacons": 1718112986,
      "desktop_presences": 1718199386,
      "favorites": 1723988186,
      "fences": 1717680986,
      "groups": 1726148186,
      "networks": 1718544986,
      "roles": 1726148186,
      "settings": 1726148186
    }
  }
}

Networks

Create a network

Creates a new network. Once this network is created, it will appear in the company’s networks within the Simple In/Out apps. Users must have a role that permits managing the company to create networks. Companies are limited to 100 Networks.

Endpoint

POST /api/v4/networks

Parameters

Name Description
network[name] required (string) the name of the network, no longer than 44 characters
network[ssid] required (string) the unique network identifier, no longer than 250 characters
network[comment_on_entry] (string) the comment applied to status updates on entry, defaults to 'In at {name}'
network[comment_on_exit] (string) the comment applied to status updates on exit, defaults to 'Left {name}'
network[status_on_entry] (string) the status to apply on entry: 'in', 'remote', 'busy', 'break', 'out', 'sick', 'vacation', or 'off', defaults to 'in'
network[status_on_exit] (string) the status to apply on exit: 'in', 'remote', 'busy', 'break', 'out', 'sick', 'vacation', or 'off', defaults to 'out'

Request

Route

POST /api/v4/networks

Headers

Content-Type: application/json
Authorization: Bearer MQqjhDE4oUsqRT7ycAf273T2hoGDnAZttKC352BRQ7A

Body

{
  "network": {
    "name": "My Office",
    "ssid": "Office WiFi Hotspot"
  }
}

cURL

curl "https://www.simpleinout.com/api/v4/networks" -d '{"network":{"name":"My Office","ssid":"Office WiFi Hotspot"}}' -X POST \
	-H "Version: HTTP/1.0" \
	-H "Content-Type: application/json" \
	-H "Authorization: Bearer MQqjhDE4oUsqRT7ycAf273T2hoGDnAZttKC352BRQ7A"

Response

Simulated Response

Response Fields

Name Description
networks (object) the newly created network attributes

Status

201

Headers

ETag: W/"18b6139b482e45ebb0e73761515fc8ac"

Body

{
  "networks": {
    "id": "7291",
    "name": "My Office",
    "ssid": "Office WiFi Hotspot",
    "comment_on_entry": "In at My Office",
    "comment_on_exit": "Left My Office",
    "entry": true,
    "exit": true,
    "status_on_entry": "in",
    "status_on_exit": "out",
    "created_at": 1726148187,
    "updated_at": 1726148187
  },
  "meta": {
    "last_updated_at": {
      "beacons": 1720100187,
      "desktop_presences": 1724247387,
      "favorites": 1722346587,
      "fences": 1720445787,
      "groups": 1724160987,
      "networks": 1726148187,
      "roles": 1726148187,
      "settings": 1726148187
    }
  }
}

Delete a network

Deletes an existing network. Users must have a role that permits managing the company to delete networks.

Endpoint

DELETE /api/v4/networks/:id

Request

Route

DELETE /api/v4/networks/7288

Headers

Content-Type: application/json
Authorization: Bearer cjBtCKSYvzDx0zRQG35IXbN_V7HemwclwoejJHBnLHo

cURL

curl "https://www.simpleinout.com/api/v4/networks/7288" -d '' -X DELETE \
	-H "Version: HTTP/1.0" \
	-H "Content-Type: application/json" \
	-H "Authorization: Bearer cjBtCKSYvzDx0zRQG35IXbN_V7HemwclwoejJHBnLHo"

Response

Simulated Response

Status

204

List all networks

Return a list of all the networks belonging to the company.

Endpoint

GET /api/v4/networks

Parameters

Name Description
sort (string) order of the return with optional '-' to denote descending, possibilities include: 'name'
page_size (integer) number of results to return per page, defaults to 25
page (integer) page number of results

Request

Route

GET /api/v4/networks

Headers

Content-Type: application/json
Authorization: Bearer xXfKGgAsTntHXdMsh0giLVhN7zQKogSnzrUJQ5x-Yto

cURL

curl -g "https://www.simpleinout.com/api/v4/networks" -X GET \
	-H "Version: HTTP/1.0" \
	-H "Content-Type: application/json" \
	-H "Authorization: Bearer xXfKGgAsTntHXdMsh0giLVhN7zQKogSnzrUJQ5x-Yto"

Response

Simulated Response

Response Fields

Name Description
networks (array) an array of networks

Status

200

Headers

ETag: W/"9f9f1c3f8ae6badb996aef72cb409bf5"
Last-Modified: Thu, 12 Sep 2024 13:36:27 GMT

Body

{
  "networks": [
    {
      "id": "7289",
      "name": "2 - Orlandoberg",
      "ssid": "adigs6vj1xyatb672l44mfcj29rmq71g",
      "comment_on_entry": "In at 2 - Orlandoberg",
      "comment_on_exit": "Left 2 - Orlandoberg",
      "entry": true,
      "exit": true,
      "status_on_entry": "in",
      "status_on_exit": "out",
      "created_at": 1726148187,
      "updated_at": 1726148187
    },
    {
      "id": "7290",
      "name": "3 - Emilhaven",
      "ssid": "5bzyvb4ctt5neqdkrjts9t70999odzu6",
      "comment_on_entry": "In at 3 - Emilhaven",
      "comment_on_exit": "Left 3 - Emilhaven",
      "entry": true,
      "exit": true,
      "status_on_entry": "in",
      "status_on_exit": "out",
      "created_at": 1726148187,
      "updated_at": 1726148187
    }
  ],
  "meta": {
    "paging": {
      "page": 1,
      "page_size": 25,
      "page_count": 1,
      "count": 2,
      "previous_page": null,
      "next_page": null,
      "first_href": "http://example.org/api/v4/networks",
      "last_href": "http://example.org/api/v4/networks",
      "previous_href": null,
      "next_href": null
    },
    "last_updated_at": {
      "beacons": 1720532187,
      "desktop_presences": 1724506587,
      "favorites": 1717940187,
      "fences": 1725543387,
      "groups": 1719322587,
      "networks": 1726148187,
      "roles": 1726148187,
      "settings": 1726148187
    }
  }
}

Update a network

Updates an existing network. Please note that if the SSID of the network is updated, any corresponding hardware must also be updated to broadcast the new SSID. Users must have a role that permits managing the company to update networks.

Endpoint

PATCH /api/v4/networks/:id

Parameters

Name Description
network[name] (string) the name of the network, no longer than 44 characters
network[ssid] (string) the unique network identifier, no longer than 250 characters
network[comment_on_entry] (string) the comment applied to status updates on entry, defaults to 'In at {name}'
network[comment_on_exit] (string) the comment applied to status updates on exit, defaults to 'Left {name}'
network[status_on_entry] (string) the status to apply on entry: 'in', 'remote', 'busy', 'break', 'out', 'sick', 'vacation', or 'off', defaults to 'in'
network[status_on_exit] (string) the status to apply on exit: 'in', 'remote', 'busy', 'break', 'out', 'sick', 'vacation', or 'off', defaults to 'out'

Request

Route

PATCH /api/v4/networks/7292

Headers

Content-Type: application/json
Authorization: Bearer W5i7-BuaNkBqqHr-esS0h92SV4WK0k3V6tc-FVSDKgk

Body

{
  "network": {
    "name": "My Renamed Office"
  }
}

cURL

curl "https://www.simpleinout.com/api/v4/networks/7292" -d '{"network":{"name":"My Renamed Office"}}' -X PATCH \
	-H "Version: HTTP/1.0" \
	-H "Content-Type: application/json" \
	-H "Authorization: Bearer W5i7-BuaNkBqqHr-esS0h92SV4WK0k3V6tc-FVSDKgk"

Response

Simulated Response

Response Fields

Name Description
networks (object) the newly updated network attributes

Status

200

Headers

ETag: W/"e12e7fed0be7a573d6e9ea846ff405a9"

Body

{
  "networks": {
    "id": "7292",
    "name": "My Renamed Office",
    "ssid": "pff1dq5bqdl4o14bzz07u22w1t0qo8vv",
    "comment_on_entry": "In at 4 - O'Connertown",
    "comment_on_exit": "Left 4 - O'Connertown",
    "entry": true,
    "exit": true,
    "status_on_entry": "in",
    "status_on_exit": "out",
    "created_at": 1726148187,
    "updated_at": 1726148187
  },
  "meta": {
    "last_updated_at": {
      "beacons": 1726061787,
      "desktop_presences": 1723728987,
      "favorites": 1717680987,
      "fences": 1717940187,
      "groups": 1724765787,
      "networks": 1726148187,
      "roles": 1726148187,
      "settings": 1726148187
    }
  }
}

Ok

Make sure things are Ok

This API is only used to verify you’ve successfully authorized.

Endpoint

GET /api/v4/ok

Request

Route

GET /api/v4/ok

Headers

Content-Type: application/json
Authorization: Bearer FCvQADVgDSYzTCRS93zrzyK0JFqavMh0BBlQnJol6UM

cURL

curl -g "https://www.simpleinout.com/api/v4/ok" -X GET \
	-H "Version: HTTP/1.0" \
	-H "Content-Type: application/json" \
	-H "Authorization: Bearer FCvQADVgDSYzTCRS93zrzyK0JFqavMh0BBlQnJol6UM"

Response

Simulated Response

Status

204

Roles

Create a role

Creates a new role. Once this role is created, it will be available to assign to users within the Simple In/Out apps and website. Users must have a role that permits managing the company to create roles. Companies are limited to 100 Roles.

Endpoint

POST /api/v4/roles

Parameters

Name Description
role[name] required (string) the name of the role, no longer than 255 characters, must be unique for the company
role[billing] (boolean) these users can change the company's plan, credit card, and invoice email/information.
role[followed_users] (boolean) these users can receive notifications on their devices when another user updates their status.
role[reminders] (boolean) these users can manage notifications sent to other users reminding them to update their status.
role[safeties] (boolean) these users can receive notifications when another user hasn't updated their status.
role[user_board] (boolean) these users can see all other users and their current status.
role[manage_groups_and_memberships] (boolean) these users can manage groups and which users are assigned to each group.
role[manage_others_archives] (boolean) these users can change the past statuses of all others by adding and deleting status updates.
role[manage_others_futures] (boolean) these users can schedule future status updates for all other users.
role[manage_others_status] (boolean) these users can change the current status of all users.
role[manage_own_archives] (boolean) these users can change their own past statuses by adding and deleting status updates.
role[manage_own_futures] (boolean) these users can schedule future status updates for themselves.
role[manage_own_status] (boolean) these users can update their own status from any device or the website. If a user is not allowed to update their own status, they can only update their status from a common device running FrontDesk or TimeClock.
role[view_others_archives] (boolean) these users can view the past status updates made by all other users.
role[view_others_futures] (boolean) these users can view the scheduled status updates for all users.
role[view_others_reports] (boolean) these users can run reports on the status history of all other users.
role[view_user_board_updated_at] (boolean) these users can view the time that status updates were made on the board.
role[member_board] (boolean) these users can see other users within the same groups and their current status.
role[manage_member_archives] (boolean) these users can change the past statuses of users within the same groups by adding and deleting status updates.
role[manage_member_futures] (boolean) these users can schedule future status updates for users within the same groups.
role[manage_member_status] (boolean) these users can change the current status of users within the same groups.
role[view_member_archives] (boolean) these users can view the past status updates made by users within the same groups.
role[view_member_futures] (boolean) these users can view the scheduled status updates for users within the same groups.
role[view_member_reports] (boolean) these users can run reports on the status history of users within the same groups.

Request

Route

POST /api/v4/roles

Headers

Content-Type: application/json
Authorization: Bearer OfUbN7VjN4zYMJHVBaXvAi3N_hJPEis0TP7pqWlGxsA

Body

{
  "role": {
    "name": "Billing Role",
    "billing": true,
    "followed_users": false,
    "reminders": false,
    "safeties": false,
    "user_board": false,
    "manage_groups_and_memberships": false,
    "manage_others_archives": false,
    "manage_others_futures": false,
    "manage_others_status": false,
    "manage_own_archives": false,
    "manage_own_futures": false,
    "manage_own_status": false,
    "view_others_archives": false,
    "view_others_futures": false,
    "view_others_reports": false,
    "view_user_board_updated_at": false,
    "member_board": false,
    "manage_member_archives": false,
    "manage_member_futures": false,
    "manage_member_status": false,
    "view_member_archives": false,
    "view_member_futures": false,
    "view_member_reports": false
  }
}

cURL

curl "https://www.simpleinout.com/api/v4/roles" -d '{"role":{"name":"Billing Role","billing":true,"followed_users":false,"reminders":false,"safeties":false,"user_board":false,"manage_groups_and_memberships":false,"manage_others_archives":false,"manage_others_futures":false,"manage_others_status":false,"manage_own_archives":false,"manage_own_futures":false,"manage_own_status":false,"view_others_archives":false,"view_others_futures":false,"view_others_reports":false,"view_user_board_updated_at":false,"member_board":false,"manage_member_archives":false,"manage_member_futures":false,"manage_member_status":false,"view_member_archives":false,"view_member_futures":false,"view_member_reports":false}}' -X POST \
	-H "Version: HTTP/1.0" \
	-H "Content-Type: application/json" \
	-H "Authorization: Bearer OfUbN7VjN4zYMJHVBaXvAi3N_hJPEis0TP7pqWlGxsA"

Response

Simulated Response

Response Fields

Name Description
roles (object) the newly created role attributes

Status

201

Headers

ETag: W/"7519575219c97a5f9ae5fe951587273c"

Body

{
  "roles": {
    "id": "1871139",
    "name": "Billing Role",
    "billing": true,
    "followed_users": false,
    "reminders": false,
    "safeties": false,
    "user_board": false,
    "manage_company_and_users": false,
    "manage_groups_and_memberships": false,
    "manage_others_archives": false,
    "manage_others_futures": false,
    "manage_others_status": false,
    "manage_own_archives": false,
    "manage_own_futures": false,
    "manage_own_status": false,
    "view_others_archives": false,
    "view_others_futures": false,
    "view_others_reports": false,
    "member_board": false,
    "manage_member_archives": false,
    "manage_member_futures": false,
    "manage_member_status": false,
    "view_member_archives": false,
    "view_member_futures": false,
    "view_member_reports": false,
    "view_user_board_updated_at": false,
    "created_at": 1726148186,
    "updated_at": 1726148186
  },
  "meta": {
    "last_updated_at": {
      "beacons": 1723642586,
      "desktop_presences": 1720791386,
      "favorites": 1726148186,
      "fences": 1721136986,
      "groups": 1722692186,
      "networks": 1718631386,
      "roles": 1726148186,
      "settings": 1726148186
    }
  }
}

Delete a role

Deletes an existing role. Users must have a role that permits managing the company to delete roles.

Endpoint

DELETE /api/v4/roles/:id

Request

Route

DELETE /api/v4/roles/1871153

Headers

Content-Type: application/json
Authorization: Bearer 6ZcrPINIAF0co8yturXqynrENMtKAdH308bGlbbaIok

cURL

curl "https://www.simpleinout.com/api/v4/roles/1871153" -d '' -X DELETE \
	-H "Version: HTTP/1.0" \
	-H "Content-Type: application/json" \
	-H "Authorization: Bearer 6ZcrPINIAF0co8yturXqynrENMtKAdH308bGlbbaIok"

Response

Simulated Response

Status

204

List all roles

Return a list of all the roles belonging to the company.

Endpoint

GET /api/v4/roles

Parameters

Name Description
sort (string) order of the return with optional '-' to denote descending, possibilities include: 'name'
page_size (integer) number of results to return per page, defaults to 25
page (integer) page number of results

Request

Route

GET /api/v4/roles

Headers

Content-Type: application/json
Authorization: Bearer jaLxP8tsGxuuAyrOnWASMCC5hKaZUpArYlERGa2Q6fg

cURL

curl -g "https://www.simpleinout.com/api/v4/roles" -X GET \
	-H "Version: HTTP/1.0" \
	-H "Content-Type: application/json" \
	-H "Authorization: Bearer jaLxP8tsGxuuAyrOnWASMCC5hKaZUpArYlERGa2Q6fg"

Response

Simulated Response

Response Fields

Name Description
roles (array) an array of roles

Status

200

Headers

ETag: W/"632dc1198bf337f0e72c8ebaf08f6138"
Last-Modified: Thu, 12 Sep 2024 13:36:26 GMT

Body

{
  "roles": [
    {
      "id": "1871141",
      "name": "Manager",
      "billing": false,
      "followed_users": false,
      "reminders": false,
      "safeties": false,
      "user_board": true,
      "manage_company_and_users": false,
      "manage_groups_and_memberships": false,
      "manage_others_archives": false,
      "manage_others_futures": true,
      "manage_others_status": true,
      "manage_own_archives": false,
      "manage_own_futures": true,
      "manage_own_status": true,
      "view_others_archives": true,
      "view_others_futures": true,
      "view_others_reports": true,
      "member_board": false,
      "manage_member_archives": false,
      "manage_member_futures": false,
      "manage_member_status": false,
      "view_member_archives": false,
      "view_member_futures": false,
      "view_member_reports": false,
      "view_user_board_updated_at": true,
      "created_at": 1726148186,
      "updated_at": 1726148186
    },
    {
      "id": "1871143",
      "name": "Limited User",
      "billing": false,
      "followed_users": false,
      "reminders": false,
      "safeties": false,
      "user_board": true,
      "manage_company_and_users": false,
      "manage_groups_and_memberships": false,
      "manage_others_archives": false,
      "manage_others_futures": false,
      "manage_others_status": false,
      "manage_own_archives": false,
      "manage_own_futures": false,
      "manage_own_status": false,
      "view_others_archives": true,
      "view_others_futures": true,
      "view_others_reports": false,
      "member_board": false,
      "manage_member_archives": false,
      "manage_member_futures": false,
      "manage_member_status": false,
      "view_member_archives": false,
      "view_member_futures": false,
      "view_member_reports": false,
      "view_user_board_updated_at": true,
      "created_at": 1726148186,
      "updated_at": 1726148186
    },
    {
      "id": "1871140",
      "name": "Administrator",
      "billing": true,
      "followed_users": true,
      "reminders": true,
      "safeties": true,
      "user_board": true,
      "manage_company_and_users": true,
      "manage_groups_and_memberships": true,
      "manage_others_archives": true,
      "manage_others_futures": true,
      "manage_others_status": true,
      "manage_own_archives": true,
      "manage_own_futures": true,
      "manage_own_status": true,
      "view_others_archives": true,
      "view_others_futures": true,
      "view_others_reports": true,
      "member_board": false,
      "manage_member_archives": false,
      "manage_member_futures": false,
      "manage_member_status": false,
      "view_member_archives": false,
      "view_member_futures": false,
      "view_member_reports": false,
      "view_user_board_updated_at": true,
      "created_at": 1726148186,
      "updated_at": 1726148186
    },
    {
      "id": "1871142",
      "name": "Regular User",
      "billing": false,
      "followed_users": false,
      "reminders": false,
      "safeties": false,
      "user_board": true,
      "manage_company_and_users": false,
      "manage_groups_and_memberships": false,
      "manage_others_archives": false,
      "manage_others_futures": false,
      "manage_others_status": false,
      "manage_own_archives": false,
      "manage_own_futures": true,
      "manage_own_status": true,
      "view_others_archives": true,
      "view_others_futures": true,
      "view_others_reports": false,
      "member_board": false,
      "manage_member_archives": false,
      "manage_member_futures": false,
      "manage_member_status": false,
      "view_member_archives": false,
      "view_member_futures": false,
      "view_member_reports": false,
      "view_user_board_updated_at": true,
      "created_at": 1726148186,
      "updated_at": 1726148186
    }
  ],
  "meta": {
    "paging": {
      "page": 1,
      "page_size": 25,
      "page_count": 1,
      "count": 4,
      "previous_page": null,
      "next_page": null,
      "first_href": "http://example.org/api/v4/roles",
      "last_href": "http://example.org/api/v4/roles",
      "previous_href": null,
      "next_href": null
    },
    "last_updated_at": {
      "beacons": 1722519386,
      "desktop_presences": 1720013786,
      "favorites": 1723815386,
      "fences": 1720877786,
      "groups": 1726061786,
      "networks": 1724852186,
      "roles": 1726148186,
      "settings": 1726148186
    }
  }
}

Retrieve a role

Retrieve an existing role.

Endpoint

GET /api/v4/roles/:id

Request

Route

GET /api/v4/roles/1871158

Headers

Content-Type: application/json
Authorization: Bearer pAy4JpDGe3mhAatANXgN3ob_fklvF6IsGcu2eNLHQDg

cURL

curl -g "https://www.simpleinout.com/api/v4/roles/1871158" -X GET \
	-H "Version: HTTP/1.0" \
	-H "Content-Type: application/json" \
	-H "Sio-Version: 1.0.0" \
	-H "Authorization: Bearer pAy4JpDGe3mhAatANXgN3ob_fklvF6IsGcu2eNLHQDg"

Response

Simulated Response

Response Fields

Name Description
roles (object) the role attributes

Status

200

Headers

ETag: W/"52b49746fee854b14a9d0bc150761ac4"
Last-Modified: Thu, 12 Sep 2024 13:36:26 GMT

Body

{
  "roles": {
    "id": "1871158",
    "name": "Kohler-McGlynn",
    "billing": false,
    "followed_users": false,
    "reminders": false,
    "safeties": false,
    "user_board": false,
    "manage_company_and_users": false,
    "manage_groups_and_memberships": false,
    "manage_others_archives": false,
    "manage_others_futures": false,
    "manage_others_status": false,
    "manage_own_archives": false,
    "manage_own_futures": false,
    "manage_own_status": false,
    "view_others_archives": false,
    "view_others_futures": false,
    "view_others_reports": false,
    "member_board": false,
    "manage_member_archives": false,
    "manage_member_futures": false,
    "manage_member_status": false,
    "view_member_archives": false,
    "view_member_futures": false,
    "view_member_reports": false,
    "view_user_board_updated_at": false,
    "created_at": 1726148186,
    "updated_at": 1726148186
  },
  "meta": {
    "last_updated_at": {
      "beacons": 1718199386,
      "desktop_presences": 1719927386,
      "favorites": 1725716186,
      "fences": 1719581786,
      "groups": 1724506586,
      "networks": 1723037786,
      "roles": 1726148186,
      "settings": 1726148186
    },
    "update_available": false
  }
}

Update a role

Updates an existing role. Users must have a role that permits managing the company to update roles.

Endpoint

PATCH /api/v4/roles/:id

Parameters

Name Description
role[name] (string) the name of the role, no longer than 255 characters, must be unique for the company
role[billing] (boolean) these users can change the company's plan, credit card, and invoice email/information.
role[followed_users] (boolean) these users can receive notifications on their devices when another user updates their status.
role[reminders] (boolean) these users can manage notifications sent to other users reminding them to update their status.
role[safeties] (boolean) these users can receive notifications when another user hasn't updated their status.
role[user_board] (boolean) these users can see all other users and their current status.
role[manage_groups_and_memberships] (boolean) these users can manage groups and which users are assigned to each group.
role[manage_others_archives] (boolean) these users can change the past statuses of all others by adding and deleting status updates.
role[manage_others_futures] (boolean) these users can schedule future status updates for all other users.
role[manage_others_status] (boolean) these users can change the current status of all users.
role[manage_own_archives] (boolean) these users can change their own past statuses by adding and deleting status updates.
role[manage_own_futures] (boolean) these users can schedule future status updates for themselves.
role[manage_own_status] (boolean) these users can update their own status from any device or the website. If a user is not allowed to update their own status, they can only update their status from a common device running FrontDesk or TimeClock.
role[view_others_archives] (boolean) these users can view the past status updates made by all other users.
role[view_others_futures] (boolean) these users can view the scheduled status updates for all users.
role[view_others_reports] (boolean) these users can run reports on the status history of all other users.
role[view_user_board_updated_at] (boolean) these users can view the time that status updates were made on the board.
role[member_board] (boolean) these users can see other users within the same groups and their current status.
role[manage_member_archives] (boolean) these users can change the past statuses of users within the same groups by adding and deleting status updates.
role[manage_member_futures] (boolean) these users can schedule future status updates for users within the same groups.
role[manage_member_status] (boolean) these users can change the current status of users within the same groups.
role[view_member_archives] (boolean) these users can view the past status updates made by users within the same groups.
role[view_member_futures] (boolean) these users can view the scheduled status updates for users within the same groups.
role[view_member_reports] (boolean) these users can run reports on the status history of users within the same groups.

Request

Route

PATCH /api/v4/roles/1871148

Headers

Content-Type: application/json
Authorization: Bearer yQYkSeUbUwqNrS55qoQxVyreBoFDfAz3_8z-feGO5xo

Body

{
  "role": {
    "name": "My Renamed Role",
    "billing": false,
    "view_others_archives": true,
    "view_others_futures": true
  }
}

cURL

curl "https://www.simpleinout.com/api/v4/roles/1871148" -d '{"role":{"name":"My Renamed Role","billing":false,"view_others_archives":true,"view_others_futures":true}}' -X PATCH \
	-H "Version: HTTP/1.0" \
	-H "Content-Type: application/json" \
	-H "Authorization: Bearer yQYkSeUbUwqNrS55qoQxVyreBoFDfAz3_8z-feGO5xo"

Response

Simulated Response

Response Fields

Name Description
roles (object) the newly updated role attributes

Status

200

Headers

ETag: W/"b70b6399074037b542787dc5434a1932"

Body

{
  "roles": {
    "id": "1871148",
    "name": "My Renamed Role",
    "billing": false,
    "followed_users": false,
    "reminders": false,
    "safeties": false,
    "user_board": false,
    "manage_company_and_users": false,
    "manage_groups_and_memberships": false,
    "manage_others_archives": false,
    "manage_others_futures": false,
    "manage_others_status": false,
    "manage_own_archives": false,
    "manage_own_futures": false,
    "manage_own_status": false,
    "view_others_archives": true,
    "view_others_futures": true,
    "view_others_reports": false,
    "member_board": false,
    "manage_member_archives": false,
    "manage_member_futures": false,
    "manage_member_status": false,
    "view_member_archives": false,
    "view_member_futures": false,
    "view_member_reports": false,
    "view_user_board_updated_at": false,
    "created_at": 1726148186,
    "updated_at": 1726148186
  },
  "meta": {
    "last_updated_at": {
      "beacons": 1725975386,
      "desktop_presences": 1724074586,
      "favorites": 1718890586,
      "fences": 1718112986,
      "groups": 1723642586,
      "networks": 1721914586,
      "roles": 1726148186,
      "settings": 1726148186
    }
  }
}

Statuses

List statuses

List all the statuses within the time period specified by the ‘created_at’ date range. Users must have a role that permits viewing the status history of others or only the authorized user’s statuses will be returned.

Endpoint

GET /api/v4/statuses

Parameters

Name Description
page_size (integer) number of results to return per page, defaults to 25
page (integer) page number of results
created_at required (string) a date range string for the time the status was created
status (string) the status: 'in', 'remote', 'busy', 'break', 'out', 'sick', or 'vacation'
comment (string) the comment, case sensitive, included with the status change
automatic (boolean) only find automatic statuses
user_id (string) the ID of a particular user
sort (string) order of the return with optional '-' to denote descending, possibilities include: 'created_at', 'status', 'comment', 'automatic'
expand (string) comma-delimited list of extra information to include in the response, possibilities include: 'user', 'user.favorites', 'user.latest', 'user.memberships', 'user.memberships.group', 'user.phones', 'user.recents', 'changed_by_user', 'application'

Request

Route

GET /api/v4/statuses?created_at=1725512400..1725771599

Headers

Content-Type: application/json
Authorization: Bearer -Xu45DIM3DQmkZT_riZEbfxB00-K39kTdrTntP3OJuM

Query Parameters

created_at=1725512400..1725771599

cURL

curl -g "https://www.simpleinout.com/api/v4/statuses?created_at=1725512400..1725771599" -X GET \
	-H "Version: HTTP/1.0" \
	-H "Content-Type: application/json" \
	-H "Authorization: Bearer -Xu45DIM3DQmkZT_riZEbfxB00-K39kTdrTntP3OJuM"

Response

Simulated Response

Response Fields

Name Description
statuses (array) an array of matching statuses

Status

200

Headers

ETag: W/"c9af2beebb9625964bb3d0c4184beda4"
Last-Modified: Fri, 06 Sep 2024 14:00:00 GMT

Body

{
  "statuses": [
    {
      "status": "in",
      "comment": "At Work",
      "automatic": false,
      "user_id": "760717",
      "changed_by_user_id": null,
      "created_at": 1725519600
    },
    {
      "status": "out",
      "comment": "Left Work",
      "automatic": true,
      "user_id": "760717",
      "changed_by_user_id": null,
      "created_at": 1725534000
    },
    {
      "status": "in",
      "comment": "At Work",
      "automatic": false,
      "user_id": "760717",
      "changed_by_user_id": null,
      "created_at": 1725537600
    },
    {
      "status": "out",
      "comment": "Left Work",
      "automatic": false,
      "user_id": "760717",
      "changed_by_user_id": null,
      "created_at": 1725555600
    },
    {
      "status": "in",
      "comment": "At Work",
      "automatic": true,
      "user_id": "760717",
      "changed_by_user_id": null,
      "created_at": 1725606000
    },
    {
      "status": "out",
      "comment": "Left Work",
      "automatic": true,
      "user_id": "760717",
      "changed_by_user_id": null,
      "created_at": 1725627600
    },
    {
      "status": "out",
      "comment": "On Vacation",
      "automatic": false,
      "user_id": "760717",
      "changed_by_user_id": "760718",
      "created_at": 1725631200
    }
  ],
  "meta": {
    "paging": {
      "page": 1,
      "page_size": 25,
      "page_count": 1,
      "count": 7,
      "previous_page": null,
      "next_page": null,
      "first_href": "http://example.org/api/v4/statuses?created_at=1725512400..1725771599",
      "last_href": "http://example.org/api/v4/statuses?created_at=1725512400..1725771599",
      "previous_href": null,
      "next_href": null
    },
    "last_updated_at": {
      "beacons": 1726061788,
      "desktop_presences": 1721309788,
      "favorites": 1721223388,
      "fences": 1725111388,
      "groups": 1726061788,
      "networks": 1725284188,
      "roles": 1726148188,
      "settings": 1726148188
    }
  }
}

Users

Archive a user

Archives an existing user. Users must have a role that permits managing users.

Endpoint

POST /api/v4/users/:id/archive

Request

Route

POST /api/v4/users/760735/archive

Headers

Content-Type: application/json
Authorization: Bearer ebACi-_F0QnpjdgEDGE5AIG4-JfsbWI-70vnTuqUr3M

cURL

curl "https://www.simpleinout.com/api/v4/users/760735/archive" -d '' -X POST \
	-H "Version: HTTP/1.0" \
	-H "Content-Type: application/json" \
	-H "Authorization: Bearer ebACi-_F0QnpjdgEDGE5AIG4-JfsbWI-70vnTuqUr3M"

Response

Simulated Response

Status

204

Create a future status update for a user

Add a scheduled status for a specific user. Users must have a role that permits managing their own scheduled statuses if updating themselves or be permitted to manage the scheduled statuses of others if updating another user. The company must also have scheduled statuses enabled.

Endpoint

POST /api/v4/users/:id/futures

Parameters

Name Description
future[status] required (string) must be 'in', 'remote', 'busy', 'break', 'out', 'sick', or 'vacation'
future[apply_at] required (integer) epoch time to apply status change, must be in the future, have minutes within (00, 15, 30, 45), and seconds of 0
future[comment] (string) up to 50 character description of the status update
expand (string) comma-delimited list of extra information to include in the response, possibilities include: 'user', 'changed_by_user'

Request

Route

POST /api/v4/users/760627/futures

Headers

Content-Type: application/json
Authorization: Bearer 2A011XZ1FfHyGo3ei2la5S_w34S4UD6XmasSosmJN8A

Body

{
  "future": {
    "status": "out",
    "apply_at": 1731420000,
    "comment": "On Vacation"
  }
}

cURL

curl "https://www.simpleinout.com/api/v4/users/760627/futures" -d '{"future":{"status":"out","apply_at":1731420000,"comment":"On Vacation"}}' -X POST \
	-H "Version: HTTP/1.0" \
	-H "Content-Type: application/json" \
	-H "Authorization: Bearer 2A011XZ1FfHyGo3ei2la5S_w34S4UD6XmasSosmJN8A"

Response

Simulated Response

Response Fields

Name Description
futures (object) the newly created future object

Status

201

Headers

ETag: W/"8ca45d9111b07cf109ad4af70c314557"

Body

{
  "futures": {
    "id": "18942",
    "status": "out",
    "comment": "On Vacation",
    "apply_at": 1731420000,
    "user_id": "760627",
    "changed_by_user_id": "760626"
  },
  "meta": {
    "last_updated_at": {
      "beacons": 1721914585,
      "desktop_presences": 1725802585,
      "favorites": 1719236185,
      "fences": 1723296985,
      "groups": 1718890585,
      "networks": 1718631385,
      "roles": 1726148185,
      "settings": 1726148185
    }
  }
}

Create a future status update for the current user

Add a scheduled status for the current user. Users must have a role that permits managing their own scheduled statuses and the company must have scheduled statuses enabled.

Endpoint

POST /api/v4/users/my/futures

Parameters

Name Description
future[status] required (string) must be 'in', 'remote', 'busy', 'break', 'out', 'sick', or 'vacation'
future[apply_at] required (integer) epoch time to apply status change, must be in the future and have minutes within (00, 15, 30, 45), and seconds of 0
future[comment] (string) up to 50 character description of the status update
expand (string) comma-delimited list of extra information to include in the response, possibilities include: 'user', 'changed_by_user'

Request

Route

POST /api/v4/users/my/futures

Headers

Content-Type: application/json
Authorization: Bearer YpFAJ2SOO3vSM2xhWD5-XhDhS8lt2Tu_8Q7V98XhZqE

Body

{
  "future": {
    "status": "out",
    "apply_at": 1731420000,
    "comment": "On Vacation"
  }
}

cURL

curl "https://www.simpleinout.com/api/v4/users/my/futures" -d '{"future":{"status":"out","apply_at":1731420000,"comment":"On Vacation"}}' -X POST \
	-H "Version: HTTP/1.0" \
	-H "Content-Type: application/json" \
	-H "Authorization: Bearer YpFAJ2SOO3vSM2xhWD5-XhDhS8lt2Tu_8Q7V98XhZqE"

Response

Simulated Response

Response Fields

Name Description
futures (object) the newly created future object

Status

201

Headers

ETag: W/"2cd8bf8509ba0c1248e55beaf6d3d484"

Body

{
  "futures": {
    "id": "18943",
    "status": "out",
    "comment": "On Vacation",
    "apply_at": 1731420000,
    "user_id": "760630",
    "changed_by_user_id": null
  },
  "meta": {
    "last_updated_at": {
      "beacons": 1721136985,
      "desktop_presences": 1723642585,
      "favorites": 1717594585,
      "fences": 1722778585,
      "groups": 1723556185,
      "networks": 1723210585,
      "roles": 1726148185,
      "settings": 1726148185
    }
  }
}

Create a status update for a user

Changes a user’s status. Users must have a role that permits managing their own current status or their own past statuses if updating themselves. Users must be permitted to manage the current status of others or the past status of others if updating another user.

Endpoint

POST /api/v4/users/:id/statuses

Parameters

Name Description
status[status] required (string) must be 'in', 'remote', 'busy', 'break', 'out', 'sick', or 'vacation'
status[comment] (string) up to 50 character description of the status update
status[created_at] (integer) epoch time to apply status change, defaults to the current time (if this parameter is passed the date must be in the past)
expand (string) comma-delimited list of extra information to include in the response, possibilities include: 'user', 'user.favorites', 'user.latest', 'user.memberships', 'user.phones', 'user.recents', 'changed_by_user', 'application'

Request

Route

POST /api/v4/users/760619/statuses

Headers

Content-Type: application/json
Authorization: Bearer 78zeh5vH6ZK48y0Rxx-1OC9oQscATte25G3SRpqEcls

Body

{
  "status": {
    "status": "in",
    "comment": "In at HQ"
  }
}

cURL

curl "https://www.simpleinout.com/api/v4/users/760619/statuses" -d '{"status":{"status":"in","comment":"In at HQ"}}' -X POST \
	-H "Version: HTTP/1.0" \
	-H "Content-Type: application/json" \
	-H "Authorization: Bearer 78zeh5vH6ZK48y0Rxx-1OC9oQscATte25G3SRpqEcls"

Response

Simulated Response

Response Fields

Name Description
statuses (object) the newly created status object

Status

201

Headers

ETag: W/"462347d715164fb410eb779824f8873a"

Body

{
  "statuses": {
    "status": "in",
    "comment": "In at HQ",
    "automatic": false,
    "user_id": "760619",
    "changed_by_user_id": "760618",
    "created_at": 1726148185
  },
  "meta": {
    "last_updated_at": {
      "beacons": 1722260185,
      "desktop_presences": 1722864985,
      "favorites": 1719754585,
      "fences": 1725024985,
      "groups": 1722173785,
      "networks": 1721309785,
      "roles": 1726148185,
      "settings": 1726148185
    }
  }
}

Create a status update for the current user

Changes the current user’s status. Users must have a role that permits managing their own current status or their own past statuses.

Endpoint

POST /api/v4/users/my/statuses

Parameters

Name Description
status[status] required (string) must be 'in', 'remote', 'busy', 'break', 'out', 'sick', or 'vacation'
status[comment] (st`ring) up to 50 character description of the status update
status[created_at] (integer) epoch time to apply status change, defaults to the current time (if this parameter is passed the date must be in the past)
expand (string) comma-delimited list of extra information to include in the response, possibilities include: 'user', 'user.favorites', 'user.latest', 'user.memberships', 'user.phones', 'user.recents', 'changed_by_user', 'application'

Request

Route

POST /api/v4/users/my/statuses

Headers

Content-Type: application/json
Authorization: Bearer hbjt1YGTwFQeeDaGS_Tea1kTUxaADGLqD_byWu-51dk

Body

{
  "status": {
    "status": "in",
    "comment": "In at HQ"
  }
}

cURL

curl "https://www.simpleinout.com/api/v4/users/my/statuses" -d '{"status":{"status":"in","comment":"In at HQ"}}' -X POST \
	-H "Version: HTTP/1.0" \
	-H "Content-Type: application/json" \
	-H "Authorization: Bearer hbjt1YGTwFQeeDaGS_Tea1kTUxaADGLqD_byWu-51dk"

Response

Simulated Response

Response Fields

Name Description
statuses (object) the newly created status object

Status

201

Headers

ETag: W/"085f2b6b202c7452d6df4fe7d1295394"

Body

{
  "statuses": {
    "status": "in",
    "comment": "In at HQ",
    "automatic": false,
    "user_id": "760617",
    "changed_by_user_id": null,
    "created_at": 1726148185
  },
  "meta": {
    "last_updated_at": {
      "beacons": 1720013785,
      "desktop_presences": 1719927385,
      "favorites": 1719754585,
      "fences": 1718372185,
      "groups": 1724160985,
      "networks": 1720272985,
      "roles": 1726148185,
      "settings": 1726148185
    }
  }
}

Create a user

Creates a new user. When this is completed, the user will be sent a welcome email from Simple In/Out with a link to choose their own password. Users must have a role that permits managing the company/users to create users. Companies are limited to the number of users their plan supports, and attempting to add more users will result in a greater_than error on the base parameter.

Endpoint

POST /api/v4/users

Parameters

Name Description
user[email] required (string) new user's email address
user[name] required (string) new user's full name
user[details] (string) additional text information about the user
user[lang] (string) preferred locale of the user defaulting to the locale of the authorized user, can be en, en-au, en-ca, en-gb, es, fr, fr-ca
user[phones_attributes] (array) phone objects to attach to the user, each with a 'number' attribute
user[memberships_attributes] (array) membership objects to place the user in the group, each with a 'group_id' attribute
user[role_id] required (string) the ID of the role to assign to the user
user[skip_confirmation_email] (boolean) whether to send a welcome email for the new user to choose their password, defaults to false which makes certain the email is sent
only (string) comma-delimited list of fields to render only, possibilities include: 'id', 'name', 'email', 'image_url', 'details', 'lang', 'created_at', 'updated_at', 'cached_at'
expand (string) comma-delimited list of extra information to include in the response, possibilities include: 'badge', 'favorites', 'latest', 'memberships', 'memberships.group', 'permissions', 'phones', 'status', 'status.application', 'status.changed_by_user', 'recents', 'role'

Request

Route

POST /api/v4/users

Headers

Content-Type: application/json
Authorization: Bearer ea4Bnm-3tsUqMi1SjR6Btl-RBnKmIlF7AnGpV20ZWy0

Body

{
  "user": {
    "email": "[email protected]",
    "name": "Bojack Horseman",
    "details": "Lead Actor",
    "lang": "en",
    "phones_attributes": [
      {
        "number": "1-498-712-6229"
      }
    ],
    "memberships_attributes": [
      {
        "group_id": 40669
      }
    ],
    "role_id": "1871067"
  }
}

cURL

curl "https://www.simpleinout.com/api/v4/users" -d '{"user":{"email":"[email protected]","name":"Bojack Horseman","details":"Lead Actor","lang":"en","phones_attributes":[{"number":"1-498-712-6229"}],"memberships_attributes":[{"group_id":40669}],"role_id":"1871067"}}' -X POST \
	-H "Version: HTTP/1.0" \
	-H "Content-Type: application/json" \
	-H "Authorization: Bearer ea4Bnm-3tsUqMi1SjR6Btl-RBnKmIlF7AnGpV20ZWy0"

Response

Simulated Response

Response Fields

Name Description
users (object) the newly created user object

Status

201

Headers

ETag: W/"e1eb993ebfa963a51a6a54ec1de78e35"

Body

{
  "users": {
    "id": "760622",
    "name": "Bojack Horseman",
    "email": "[email protected]",
    "details": "Lead Actor",
    "lang": "en",
    "image_url": "https://simpleinout.s3.amazonaws.com/image_none.png",
    "role_id": "1871067",
    "created_at": 1726148185,
    "updated_at": 1726148185,
    "cached_at": "1726148185.451997000"
  },
  "meta": {
    "last_updated_at": {
      "beacons": 1724679385,
      "desktop_presences": 1718717785,
      "favorites": 1720359385,
      "fences": 1723037785,
      "groups": 1726148185,
      "networks": 1717853785,
      "roles": 1726148185,
      "settings": 1726148185
    }
  }
}

Create/Update user favorites

Creates user favorites (Quick Picks). If user favorites exist, they will be overwritten by the new ones. Users are limited to 10 favorites.

Endpoint

POST /api/v4/users/my/favorites

Parameters

Name Description
favorites required (array) array of objects consisting of 'status' and 'comment'
expand (string) comma-delimited list of extra information to include in the response, possibilities include: 'badge', 'favorites', 'latest', 'memberships', 'memberships.group', 'permissions', 'phones', 'status', 'status.application', 'status.changed_by_user', 'recents', 'role'
only (string) comma-delimited list of fields to render only, possibilities include: 'id', 'name', 'email', 'image_url', 'details', 'lang', 'created_at', 'updated_at', 'cached_at'

Request

Route

POST /api/v4/users/my/favorites

Headers

Content-Type: application/json
Authorization: Bearer bah7YIZxeMKQWS1qEERzkAjFw8c68uNtTOHLFvnB26M

Body

{
  "favorites": [
    {
      "status": "in",
      "comment": "At Work"
    },
    {
      "status": "out",
      "comment": "On Vacation"
    }
  ],
  "expand": "favorites"
}

cURL

curl "https://www.simpleinout.com/api/v4/users/my/favorites" -d '{"favorites":[{"status":"in","comment":"At Work"},{"status":"out","comment":"On Vacation"}],"expand":"favorites"}' -X POST \
	-H "Version: HTTP/1.0" \
	-H "Content-Type: application/json" \
	-H "Authorization: Bearer bah7YIZxeMKQWS1qEERzkAjFw8c68uNtTOHLFvnB26M"

Response

Simulated Response

Response Fields

Name Description
users (object) the newly updated user attributes

Status

200

Headers

ETag: W/"b1ae225df7b3a16096d564641a25db92"

Body

{
  "users": {
    "id": "760636",
    "name": "Sterling Archer",
    "email": "[email protected]",
    "details": "Facilis aliquid voluptatem.",
    "lang": "en",
    "image_url": "https://simpleinout.s3.amazonaws.com/image_none.png",
    "favorites": [
      {
        "status": "in",
        "comment": "At Work"
      },
      {
        "status": "out",
        "comment": "On Vacation"
      }
    ],
    "role_id": "1871097",
    "created_at": 1726148185,
    "updated_at": 1726148185,
    "cached_at": "1726148185.707948000"
  },
  "meta": {
    "last_updated_at": {
      "beacons": 1717853785,
      "desktop_presences": 1725284185,
      "favorites": 1719581785,
      "fences": 1721914585,
      "groups": 1722778585,
      "networks": 1718199385,
      "roles": 1726148185,
      "settings": 1726148185
    }
  }
}

Delete a user

Deletes an existing user. Users must have a role that permits managing the company/users to delete users. Companies must have at least one user with the Administrator role, if you attempt to delete the last user with the Administrator role, this will result in a less_than error on the base parameter.

Endpoint

DELETE /api/v4/users/:id

Request

Route

DELETE /api/v4/users/760644

Headers

Content-Type: application/json
Authorization: Bearer 1P8T7vveSXP3xS42wYpS1W5HNkWApjyqYd3d_Q0NWw0

cURL

curl "https://www.simpleinout.com/api/v4/users/760644" -d '' -X DELETE \
	-H "Version: HTTP/1.0" \
	-H "Content-Type: application/json" \
	-H "Authorization: Bearer 1P8T7vveSXP3xS42wYpS1W5HNkWApjyqYd3d_Q0NWw0"

Response

Simulated Response

Status

204

Favorite a status for the current user

Designates a previous status update as a favorite for the current user’s Quick Picks.

Endpoint

PATCH /api/v4/users/my/statuses/favorite

Parameters

Name Description
status[status] required (string) must be 'in', 'remote', 'busy', 'break', 'out', 'sick', or 'vacation'
status[comment] (string) up to 50 character description of the status update

Request

Route

PATCH /api/v4/users/my/statuses/favorite

Headers

Content-Type: application/json
Authorization: Bearer gkEziItCs1aVyVHTqp0Q2jMQ2y05Leu0AhJQBaPGPRE

Body

{
  "status": {
    "status": "in",
    "comment": "At Lunch"
  }
}

cURL

curl "https://www.simpleinout.com/api/v4/users/my/statuses/favorite" -d '{"status":{"status":"in","comment":"At Lunch"}}' -X PATCH \
	-H "Version: HTTP/1.0" \
	-H "Content-Type: application/json" \
	-H "Authorization: Bearer gkEziItCs1aVyVHTqp0Q2jMQ2y05Leu0AhJQBaPGPRE"

Response

Simulated Response

Status

204

Hide a status for the current user

Hides a previous status update from the current user’s Quick Picks.

Endpoint

PATCH /api/v4/users/my/statuses/hide

Parameters

Name Description
status[status] required (string) must be 'in', 'remote', 'busy', 'break', 'out', 'sick', or 'vacation'
status[comment] (string) up to 50 character description of the status update

Request

Route

PATCH /api/v4/users/my/statuses/hide

Headers

Content-Type: application/json
Authorization: Bearer vIzhqHa9GGGVHV-JdhXguiFQJoiyfwsQBIAI4m4soQQ

Body

{
  "status": {
    "status": "in",
    "comment": "At Lunch"
  }
}

cURL

curl "https://www.simpleinout.com/api/v4/users/my/statuses/hide" -d '{"status":{"status":"in","comment":"At Lunch"}}' -X PATCH \
	-H "Version: HTTP/1.0" \
	-H "Content-Type: application/json" \
	-H "Authorization: Bearer vIzhqHa9GGGVHV-JdhXguiFQJoiyfwsQBIAI4m4soQQ"

Response

Simulated Response

Status

204

List all archived users

Return a list of all the archived users belonging to the company. Users must have a role that permits managing users.

Endpoint

GET /api/v4/users?archived=true

Request

Route

GET /api/v4/users?archived=true

Headers

Content-Type: application/json
Authorization: Bearer oJrHNAtsslJiYtvcpvgXRwu80fXFjuxeXxHnSK8f0hM

Query Parameters

archived=true

cURL

curl -g "https://www.simpleinout.com/api/v4/users?archived=true" -X GET \
	-H "Version: HTTP/1.0" \
	-H "Content-Type: application/json" \
	-H "Authorization: Bearer oJrHNAtsslJiYtvcpvgXRwu80fXFjuxeXxHnSK8f0hM"

Response

Simulated Response

Status

200

Headers

ETag: W/"94e4e3821256840949b4e9ee69eb55c8"
Last-Modified: Thu, 12 Sep 2024 13:36:28 GMT

Body

{
  "users": [
    {
      "id": "760733",
      "name": "Colby Gislason",
      "email": null,
      "details": "Esse aspernatur beatae.",
      "lang": "en",
      "image_url": "https://simpleinout.s3.amazonaws.com/image_none.png",
      "role_id": null,
      "created_at": 1726148188,
      "updated_at": 1726148188,
      "cached_at": "1726148188.749484000"
    }
  ],
  "meta": {
    "paging": {
      "page": 1,
      "page_size": 25,
      "page_count": 1,
      "count": 1,
      "previous_page": null,
      "next_page": null,
      "first_href": "http://example.org/api/v4/users?archived=true",
      "last_href": "http://example.org/api/v4/users?archived=true",
      "previous_href": null,
      "next_href": null
    },
    "last_updated_at": {
      "beacons": 1718804188,
      "desktop_presences": 1720272988,
      "favorites": 1719149788,
      "fences": 1721568988,
      "groups": 1723296988,
      "networks": 1723988188,
      "roles": 1726148188,
      "settings": 1726148188
    },
    "trusted_cached_at": "1726148173.757868000"
  }
}

List all future statuses for a user

List all the scheduled statuses for the specified user. Please note that the user making this request must have a role with permission to view the scheduled statuses of others and the company must have scheduled statuses enabled.

Endpoint

GET /api/v4/users/:id/futures

Parameters

Name Description
comment (string) the comment, case sensitive, included with the status change
sort (string) order of the return with optional '-' to denote descending, possibilities include: 'apply_at', 'status', 'comment'
apply_at (string) a date range string for the time the status will be added
expand (string) comma-delimited list of extra information to include in the response, possibilities include: 'user', 'changed_by_user'
page_size (integer) number of results to return per page, defaults to 25
page (integer) page number of results

Request

Route

GET /api/v4/users/760637/futures

Headers

Content-Type: application/json
Authorization: Bearer zPplFvJiEFPd1OKuXUskPvPEG4TE9FHHuD8M6JGP6JI

cURL

curl -g "https://www.simpleinout.com/api/v4/users/760637/futures" -X GET \
	-H "Version: HTTP/1.0" \
	-H "Content-Type: application/json" \
	-H "Authorization: Bearer zPplFvJiEFPd1OKuXUskPvPEG4TE9FHHuD8M6JGP6JI"

Response

Simulated Response

Response Fields

Name Description
futures (array) an array of matching scheduled statuses

Status

200

Headers

ETag: W/"fc5392e9a8759832d185be72c70e64c6"
Last-Modified: Thu, 12 Sep 2024 13:36:25 GMT

Body

{
  "futures": [
    {
      "id": "18944",
      "status": "out",
      "comment": "Offsite Meeting",
      "apply_at": 1726729200,
      "user_id": "760637",
      "changed_by_user_id": null
    },
    {
      "id": "18945",
      "status": "out",
      "comment": "Gone Fishing",
      "apply_at": 1732190400,
      "user_id": "760637",
      "changed_by_user_id": "760638"
    }
  ],
  "meta": {
    "paging": {
      "page": 1,
      "page_size": 25,
      "page_count": 1,
      "count": 2,
      "previous_page": null,
      "next_page": null,
      "first_href": "http://example.org/api/v4/users/760637/futures?user_id=760637",
      "last_href": "http://example.org/api/v4/users/760637/futures?user_id=760637",
      "previous_href": null,
      "next_href": null
    },
    "last_updated_at": {
      "beacons": 1721223385,
      "desktop_presences": 1720532185,
      "favorites": 1718026585,
      "fences": 1721482585,
      "groups": 1717594585,
      "networks": 1720100185,
      "roles": 1726148185,
      "settings": 1726148185
    }
  }
}

List all future statuses for the current user

List all the scheduled statuses for the current user. Please note that the company must have scheduled statuses enabled for users to see their scheduled statuses.

Endpoint

GET /api/v4/users/my/futures

Parameters

Name Description
comment (string) the comment, case sensitive, included with the status change
sort (string) order of the return with optional '-' to denote descending, possibilities include: 'apply_at', 'status', 'comment'
apply_at (string) a date range string for the time the status will be added
expand (string) comma-delimited list of extra information to include in the response, possibilities include: 'user', 'changed_by_user'
page_size (integer) number of results to return per page, defaults to 25
page (integer) page number of results

Request

Route

GET /api/v4/users/my/futures

Headers

Content-Type: application/json
Authorization: Bearer MVBCy5q1Kaq_ynce6TzJg9Z_7tcwjrjI6iisSGml1kA

cURL

curl -g "https://www.simpleinout.com/api/v4/users/my/futures" -X GET \
	-H "Version: HTTP/1.0" \
	-H "Content-Type: application/json" \
	-H "Authorization: Bearer MVBCy5q1Kaq_ynce6TzJg9Z_7tcwjrjI6iisSGml1kA"

Response

Simulated Response

Response Fields

Name Description
futures (array) an array of matching scheduled statuses

Status

200

Headers

ETag: W/"1db4a7a4af4986c6b1450bdd6e349359"
Last-Modified: Thu, 12 Sep 2024 13:36:25 GMT

Body

{
  "futures": [
    {
      "id": "18940",
      "status": "out",
      "comment": "Offsite Meeting",
      "apply_at": 1726729200,
      "user_id": "760624",
      "changed_by_user_id": null
    },
    {
      "id": "18941",
      "status": "out",
      "comment": "Gone Fishing",
      "apply_at": 1732190400,
      "user_id": "760624",
      "changed_by_user_id": "760625"
    }
  ],
  "meta": {
    "paging": {
      "page": 1,
      "page_size": 25,
      "page_count": 1,
      "count": 2,
      "previous_page": null,
      "next_page": null,
      "first_href": "http://example.org/api/v4/users/my/futures?user_id=760624",
      "last_href": "http://example.org/api/v4/users/my/futures?user_id=760624",
      "previous_href": null,
      "next_href": null
    },
    "last_updated_at": {
      "beacons": 1725975385,
      "desktop_presences": 1724420185,
      "favorites": 1720272985,
      "fences": 1722519385,
      "groups": 1724592985,
      "networks": 1726061785,
      "roles": 1726148185,
      "settings": 1726148185
    }
  }
}

List all statuses for a user

List all the statuses for the specified user within the time period specified by the ‘created_at’ date range. Users must have a role that permits viewing the past statuses of others if viewing another user. They can always view their own past statuses.

Endpoint

GET /api/v4/users/:id/statuses

Parameters

Name Description
created_at required (string) a date range string for the time the status was created
comment (string) the comment, case sensitive, included with the status change
sort (string) order of the return with optional '-' to denote descending, possibilities include: 'created_at', 'status', 'comment'
expand (string) comma-delimited list of extra information to include in the response, possibilities include: 'user', 'user.favorites', 'user.latest', 'user.memberships', 'user.phones', 'user.recents', 'changed_by_user', 'application'
page_size (integer) number of results to return per page, defaults to 25
page (integer) page number of results

Request

Route

GET /api/v4/users/760607/statuses?created_at=1725512400..1725771599

Headers

Content-Type: application/json
Authorization: Bearer uZs1crnxKRED_S6hsJklx55aA4ptUoqeOkr1BWCPMoE

Query Parameters

created_at=1725512400..1725771599

cURL

curl -g "https://www.simpleinout.com/api/v4/users/760607/statuses?created_at=1725512400..1725771599" -X GET \
	-H "Version: HTTP/1.0" \
	-H "Content-Type: application/json" \
	-H "Authorization: Bearer uZs1crnxKRED_S6hsJklx55aA4ptUoqeOkr1BWCPMoE"

Response

Simulated Response

Response Fields

Name Description
statuses (array) an array of matching statuses

Status

200

Headers

ETag: W/"9c212e66d5ec8bd916711326ed84f3a5"
Last-Modified: Fri, 06 Sep 2024 14:00:00 GMT

Body

{
  "statuses": [
    {
      "status": "in",
      "comment": "At Work",
      "automatic": false,
      "user_id": "760607",
      "changed_by_user_id": null,
      "created_at": 1725519600
    },
    {
      "status": "out",
      "comment": "Left Work",
      "automatic": false,
      "user_id": "760607",
      "changed_by_user_id": null,
      "created_at": 1725534000
    },
    {
      "status": "in",
      "comment": "At Work",
      "automatic": false,
      "user_id": "760607",
      "changed_by_user_id": null,
      "created_at": 1725537600
    },
    {
      "status": "out",
      "comment": "Left Work",
      "automatic": false,
      "user_id": "760607",
      "changed_by_user_id": null,
      "created_at": 1725555600
    },
    {
      "status": "in",
      "comment": "At Work",
      "automatic": false,
      "user_id": "760607",
      "changed_by_user_id": null,
      "created_at": 1725606000
    },
    {
      "status": "out",
      "comment": "Left Work",
      "automatic": false,
      "user_id": "760607",
      "changed_by_user_id": null,
      "created_at": 1725627600
    },
    {
      "status": "out",
      "comment": "Vacation",
      "automatic": false,
      "user_id": "760607",
      "changed_by_user_id": "760608",
      "created_at": 1725631200
    }
  ],
  "meta": {
    "paging": {
      "page": 1,
      "page_size": 25,
      "page_count": 1,
      "count": 7,
      "previous_page": null,
      "next_page": null,
      "first_href": "http://example.org/api/v4/users/760607/statuses?created_at=1725512400..1725771599&user_id=760607",
      "last_href": "http://example.org/api/v4/users/760607/statuses?created_at=1725512400..1725771599&user_id=760607",
      "previous_href": null,
      "next_href": null
    },
    "last_updated_at": {
      "beacons": 1719668184,
      "desktop_presences": 1719581784,
      "favorites": 1721482584,
      "fences": 1718717784,
      "groups": 1725284184,
      "networks": 1717594584,
      "roles": 1726148185,
      "settings": 1726148185
    }
  }
}

List all statuses for the current user

List all the statuses for the current user within the time period specified by the ‘created_at’ date range.

Endpoint

GET /api/v4/users/my/statuses

Parameters

Name Description
created_at required (string) a date range string for the time the status was created
comment (string) the comment, case sensitive, included with the status change
sort (string) order of the return with optional '-' to denote descending, possibilities include: 'created_at', 'status', 'comment'
expand (string) comma-delimited list of extra information to include in the response, possibilities include: 'user', 'user.favorites', 'user.latest', 'user.memberships', 'user.phones', 'user.recents', 'changed_by_user', 'application'
page_size (integer) number of results to return per page, defaults to 25
page (integer) page number of results

Request

Route

GET /api/v4/users/my/statuses?created_at=1725512400..1725771599

Headers

Content-Type: application/json
Authorization: Bearer QrX-EhWFRtwgXouXdYw-7by-7dXJiX3lXmw2t1DH6g8

Query Parameters

created_at=1725512400..1725771599

cURL

curl -g "https://www.simpleinout.com/api/v4/users/my/statuses?created_at=1725512400..1725771599" -X GET \
	-H "Version: HTTP/1.0" \
	-H "Content-Type: application/json" \
	-H "Authorization: Bearer QrX-EhWFRtwgXouXdYw-7by-7dXJiX3lXmw2t1DH6g8"

Response

Simulated Response

Response Fields

Name Description
statuses (array) an array of matching statuses

Status

200

Headers

ETag: W/"526038a232a31dec3c94b4c75c4d5803"
Last-Modified: Fri, 06 Sep 2024 14:00:00 GMT

Body

{
  "statuses": [
    {
      "status": "in",
      "comment": "At Work",
      "automatic": false,
      "user_id": "760615",
      "changed_by_user_id": null,
      "created_at": 1725519600
    },
    {
      "status": "out",
      "comment": "Left Work",
      "automatic": false,
      "user_id": "760615",
      "changed_by_user_id": null,
      "created_at": 1725534000
    },
    {
      "status": "in",
      "comment": "At Work",
      "automatic": false,
      "user_id": "760615",
      "changed_by_user_id": null,
      "created_at": 1725537600
    },
    {
      "status": "out",
      "comment": "Left Work",
      "automatic": false,
      "user_id": "760615",
      "changed_by_user_id": null,
      "created_at": 1725555600
    },
    {
      "status": "in",
      "comment": "At Work",
      "automatic": false,
      "user_id": "760615",
      "changed_by_user_id": null,
      "created_at": 1725606000
    },
    {
      "status": "out",
      "comment": "Left Work",
      "automatic": false,
      "user_id": "760615",
      "changed_by_user_id": null,
      "created_at": 1725627600
    },
    {
      "status": "out",
      "comment": "Vacation",
      "automatic": false,
      "user_id": "760615",
      "changed_by_user_id": "760616",
      "created_at": 1725631200
    }
  ],
  "meta": {
    "paging": {
      "page": 1,
      "page_size": 25,
      "page_count": 1,
      "count": 7,
      "previous_page": null,
      "next_page": null,
      "first_href": "http://example.org/api/v4/users/my/statuses?created_at=1725512400..1725771599&user_id=760615",
      "last_href": "http://example.org/api/v4/users/my/statuses?created_at=1725512400..1725771599&user_id=760615",
      "previous_href": null,
      "next_href": null
    },
    "last_updated_at": {
      "beacons": 1718804185,
      "desktop_presences": 1723210585,
      "favorites": 1724333785,
      "fences": 1718285785,
      "groups": 1724938585,
      "networks": 1718631385,
      "roles": 1726148185,
      "settings": 1726148185
    }
  }
}

List all users

Return a list of all the users belonging to the company. Users must have a role that permits viewing users.

Endpoint

GET /api/v4/users

Parameters

Name Description
page_size (integer) number of results to return per page, defaults to 25
page (integer) page number of results
name (string) return users with this name
email (string) return users with this email
id (array) return users by an array of ids
group_id (string/array) return users belonging to a group id, which can be a string or array in the form of group_id[]=INT
cached_at (integer/float) return users updated that have made a significant change since an epoch time, accurate to nanoseconds
sort (string) order of the return with optional '-' to denote descending, possibilities include: 'name', 'email', 'cached_at', 'status.status', 'status.created_at'
only (string) comma-delimited list of fields to render only, possibilities include: 'id', 'name', 'email', 'image_url', 'details', 'lang', 'created_at', 'updated_at', 'cached_at'
expand (string) comma-delimited list of extra information to include in the response, possibilities include: 'badge', 'favorites', 'latest', 'memberships', 'memberships.group', 'permissions', 'phones', 'status', 'status.application', 'status.changed_by_user', 'recents', 'role'

Request

Route

GET /api/v4/users

Headers

Content-Type: application/json
Authorization: Bearer 3wjfGE0N9vs_bxEUcFsCpugqRrVpVSVDqM4An_8NIyc

cURL

curl -g "https://www.simpleinout.com/api/v4/users" -X GET \
	-H "Version: HTTP/1.0" \
	-H "Content-Type: application/json" \
	-H "Authorization: Bearer 3wjfGE0N9vs_bxEUcFsCpugqRrVpVSVDqM4An_8NIyc"

Response

Simulated Response

Response Fields

Name Description
users (array) an array of users
trusted_cached_at (string in the meta object) the server time minus an amount to account for network delivery time

Status

200

Headers

ETag: W/"0eb80e333d5148ff9b0999441a8e7743"
Last-Modified: Thu, 12 Sep 2024 13:36:24 GMT

Body

{
  "users": [
    {
      "id": "760601",
      "name": "Malory Archer",
      "email": "[email protected]",
      "details": "Dolore pariatur id.",
      "lang": "en",
      "image_url": "https://simpleinout.s3.amazonaws.com/image_none.png",
      "role_id": "1871027",
      "created_at": 1726148184,
      "updated_at": 1726148184,
      "cached_at": "1726148184.936008000"
    },
    {
      "id": "760602",
      "name": "Sterling Archer",
      "email": "[email protected]",
      "details": "Dicta est ea.",
      "lang": "en",
      "image_url": "https://simpleinout.s3.amazonaws.com/image_none.png",
      "role_id": "1871029",
      "created_at": 1726148184,
      "updated_at": 1726148184,
      "cached_at": "1726148184.941273000"
    },
    {
      "id": "760603",
      "name": "Lana Kane",
      "email": "[email protected]",
      "details": "Modi omnis ea.",
      "lang": "en",
      "image_url": "https://simpleinout.s3.amazonaws.com/image_none.png",
      "role_id": "1871029",
      "created_at": 1726148184,
      "updated_at": 1726148184,
      "cached_at": "1726148184.948087000"
    },
    {
      "id": "760604",
      "name": "Ray Gillette",
      "email": "[email protected]",
      "details": "Aspernatur temporibus ea.",
      "lang": "en",
      "image_url": "https://simpleinout.s3.amazonaws.com/image_none.png",
      "role_id": "1871029",
      "created_at": 1726148184,
      "updated_at": 1726148184,
      "cached_at": "1726148184.953630000"
    }
  ],
  "meta": {
    "paging": {
      "page": 1,
      "page_size": 25,
      "page_count": 1,
      "count": 4,
      "previous_page": null,
      "next_page": null,
      "first_href": "http://example.org/api/v4/users",
      "last_href": "http://example.org/api/v4/users",
      "previous_href": null,
      "next_href": null
    },
    "last_updated_at": {
      "beacons": 1718631384,
      "desktop_presences": 1719754584,
      "favorites": 1723556184,
      "fences": 1721223384,
      "groups": 1719063384,
      "networks": 1719840984,
      "roles": 1726148184,
      "settings": 1726148184
    },
    "trusted_cached_at": "1726148169.961902100"
  }
}

Retrieve a user

Retrieve an existing user. Users must have a role that permits viewing users.

Endpoint

GET /api/v4/users/:id

Parameters

Name Description
only (string) comma-delimited list of fields to render only, possibilities include: 'id', 'name', 'email', 'image_url', 'details', 'lang', 'created_at', 'updated_at', 'cached_at'
expand (string) comma-delimited list of extra information to include in the response, possibilities include: 'badge', 'favorites', 'latest', 'memberships', 'memberships.group', 'permissions', 'phones', 'status', 'status.application', 'status.changed_by_user', 'recents', 'role'

Request

Route

GET /api/v4/users/760646

Headers

Content-Type: application/json
Authorization: Bearer _DW2TzdJYn1bEu4dFpI8z1r5CXoBUgb_TuJI0viHcXc

cURL

curl -g "https://www.simpleinout.com/api/v4/users/760646" -X GET \
	-H "Version: HTTP/1.0" \
	-H "Content-Type: application/json" \
	-H "Authorization: Bearer _DW2TzdJYn1bEu4dFpI8z1r5CXoBUgb_TuJI0viHcXc"

Response

Simulated Response

Response Fields

Name Description
users (object) a user object

Status

200

Headers

ETag: W/"f86dcd8455b913e6a0b9ad1609d365a7"
Last-Modified: Thu, 12 Sep 2024 13:36:25 GMT

Body

{
  "users": {
    "id": "760646",
    "name": "Sterling Archer",
    "email": "[email protected]",
    "details": "Necessitatibus minus ipsa.",
    "lang": "en",
    "image_url": "https://simpleinout.s3.amazonaws.com/image_none.png",
    "role_id": "1871117",
    "created_at": 1726148185,
    "updated_at": 1726148185,
    "cached_at": "1726148185.966836000"
  },
  "meta": {
    "last_updated_at": {
      "beacons": 1720618585,
      "desktop_presences": 1725975385,
      "favorites": 1720532185,
      "fences": 1724247385,
      "groups": 1722864985,
      "networks": 1720704985,
      "roles": 1726148185,
      "settings": 1726148185
    }
  }
}

Retrieve the current user

Retrieve the current user who is authorized.

Endpoint

GET /api/v4/users/my

Parameters

Name Description
only (string) comma-delimited list of fields to render only, possibilities include: 'id', 'name', 'email', 'image_url', 'details', 'lang', 'created_at', 'updated_at', 'cached_at'
expand (string) comma-delimited list of extra information to include in the response, possibilities include: 'badge', 'favorites', 'latest', 'memberships', 'memberships.group', 'permissions', 'phones', 'status', 'status.application', 'status.changed_by_user', 'recents', 'role'

Request

Route

GET /api/v4/users/my

Headers

Content-Type: application/json
Authorization: Bearer sVIYFhgqAkEI04tJQEbOFkzNjR-gtfA-mLXPCRSZaNY

cURL

curl -g "https://www.simpleinout.com/api/v4/users/my" -X GET \
	-H "Version: HTTP/1.0" \
	-H "Content-Type: application/json" \
	-H "Authorization: Bearer sVIYFhgqAkEI04tJQEbOFkzNjR-gtfA-mLXPCRSZaNY"

Response

Simulated Response

Response Fields

Name Description
users (object) a user object

Status

200

Headers

ETag: W/"2c03d072de297c626a1bb539e01a2a12"
Last-Modified: Thu, 12 Sep 2024 13:36:24 GMT

Body

{
  "users": {
    "id": "760606",
    "name": "Sterling Archer",
    "email": "[email protected]",
    "details": "Accusamus incidunt natus.",
    "lang": "en",
    "image_url": "https://simpleinout.s3.amazonaws.com/image_none.png",
    "role_id": "1871033",
    "created_at": 1726148184,
    "updated_at": 1726148184,
    "cached_at": "1726148184.989356000"
  },
  "meta": {
    "last_updated_at": {
      "beacons": 1721914584,
      "desktop_presences": 1719063384,
      "favorites": 1723124184,
      "fences": 1720791384,
      "groups": 1724074584,
      "networks": 1721482584,
      "roles": 1726148184,
      "settings": 1726148184
    }
  }
}

Unarchive a user

Unarchives an archived user. Users must have a role that permits managing users.

Endpoint

POST /api/v4/users/:id/unarchive

Parameters

Name Description
user[email] required (string) the user's email address
user[name] (string) the user's full name
user[details] (string) additional text information about the user
user[lang] (string) preferred locale of the user defaulting to the locale of the authorized user, can be en, en-au, en-ca, en-gb, es, fr, fr-ca
user[phones_attributes] (array) phone objects to attach to the user, each with a 'number' attribute
user[memberships_attributes] (array) membership objects to place the user in the group, each with a 'group_id' attribute
user[role_id] required (string) the ID of the role to assign to the user
only (string) comma-delimited list of fields to render only, possibilities include: 'id', 'name', 'email', 'image_url', 'details', 'lang', 'created_at', 'updated_at', 'cached_at'
expand (string) comma-delimited list of extra information to include in the response, possibilities include: 'badge', 'favorites', 'latest', 'memberships', 'memberships.group', 'permissions', 'phones', 'status', 'status.application', 'status.changed_by_user', 'recents', 'role'

Request

Route

POST /api/v4/users/760720/unarchive

Headers

Content-Type: application/json
Authorization: Bearer oVKaeLSrXdXDr9sTUQhBSBtNC3r_ljo7rLgfxzdJg64

Body

{
  "user": {
    "email": "[email protected]",
    "role_id": "1871307"
  }
}

cURL

curl "https://www.simpleinout.com/api/v4/users/760720/unarchive" -d '{"user":{"email":"[email protected]","role_id":"1871307"}}' -X POST \
	-H "Version: HTTP/1.0" \
	-H "Content-Type: application/json" \
	-H "Authorization: Bearer oVKaeLSrXdXDr9sTUQhBSBtNC3r_ljo7rLgfxzdJg64"

Response

Simulated Response

Status

200

Headers

ETag: W/"abf94726dab3c527c89a793b36967ccb"

Body

{
  "users": {
    "id": "760720",
    "name": "Michaele Bergstrom",
    "email": "[email protected]",
    "details": "Eveniet facere et.",
    "lang": "en",
    "image_url": "https://simpleinout.s3.amazonaws.com/image_none.png",
    "role_id": "1871307",
    "created_at": 1726148188,
    "updated_at": 1726148188,
    "cached_at": "1726148188.362818000"
  },
  "meta": {
    "last_updated_at": {
      "beacons": 1718458588,
      "desktop_presences": 1722087388,
      "favorites": 1721309788,
      "fences": 1718717788,
      "groups": 1722432988,
      "networks": 1722951388,
      "roles": 1726148188,
      "settings": 1726148188
    }
  }
}

Unfavorite a status for the current user

Undoes a previous status’ favorite designation for the current user’s Quick Picks.

Endpoint

PATCH /api/v4/users/my/statuses/unfavorite

Parameters

Name Description
status[status] required (string) must be 'in', 'remote', 'busy', 'break', 'out', 'sick', or 'vacation'
status[comment] (string) up to 50 character description of the status update

Request

Route

PATCH /api/v4/users/my/statuses/unfavorite

Headers

Content-Type: application/json
Authorization: Bearer GkYxVtv1eHEuvOMMs5zi-YI2_ovUMUo8PTQIroi_KCY

Body

{
  "status": {
    "status": "in",
    "comment": "At Lunch"
  }
}

cURL

curl "https://www.simpleinout.com/api/v4/users/my/statuses/unfavorite" -d '{"status":{"status":"in","comment":"At Lunch"}}' -X PATCH \
	-H "Version: HTTP/1.0" \
	-H "Content-Type: application/json" \
	-H "Authorization: Bearer GkYxVtv1eHEuvOMMs5zi-YI2_ovUMUo8PTQIroi_KCY"

Response

Simulated Response

Status

204

Update a user

Updates an existing user. Users must have a role that permits managing the company/users to update users. Companies must have at least one user with the Administrator role, if you attempt to change the role of the last user with the Administrator role, this will result in a less_than error on the base parameter.

Endpoint

PATCH /api/v4/users/:id

Parameters

Name Description
user[email] (string) new user's email address
user[name] (string) new user's full name
user[details] (string) additional text information about the user
user[lang] (string) preferred locale of the user, can be en, en-au, en-ca, en-gb, es, fr, fr-ca
user[phones_attributes] (array) phone objects to attach to the user if both 'id' and 'number' are passed in, the existing phone number will be updated if just 'number' is passed in, a new phone will be added if both 'id' and '_destroy' are passed in ('_destroy' being truthy like 'true' or '1'), the phone number will be removed
user[memberships_attributes] (array) group objects to attach to the user if both 'id' and 'group_id' are passed in, the existing membership will be updated if just 'group_id' is passed in, a new membership will be added if both 'id' and '_destroy' are passed in ('_destroy' being truthy like 'true' or '1'), the group membership will be removed
user[role_id] (string) the ID of the role to assign to the user
only (string) comma-delimited list of fields to render only, possibilities include: 'id', 'name', 'email', 'image_url', 'details', 'lang', 'created_at', 'updated_at', 'cached_at'
expand (string) comma-delimited list of extra information to include in the response, possibilities include: 'badge', 'favorites', 'latest', 'memberships', 'memberships.group', 'permissions', 'phones', 'status', 'status.application', 'status.changed_by_user', 'recents', 'role'

Request

Route

PATCH /api/v4/users/760642

Headers

Content-Type: application/json
Authorization: Bearer cM1l30cMWeJkkQRQUkQZl0HF-wDLzSM-omHebn_oLJs

Body

{
  "user": {
    "phones_attributes": [
      {
        "number": "1-645-442-6364 x522"
      }
    ],
    "memberships_attributes": [
      {
        "group_id": 40672
      }
    ]
  }
}

cURL

curl "https://www.simpleinout.com/api/v4/users/760642" -d '{"user":{"phones_attributes":[{"number":"1-645-442-6364 x522"}],"memberships_attributes":[{"group_id":40672}]}}' -X PATCH \
	-H "Version: HTTP/1.0" \
	-H "Content-Type: application/json" \
	-H "Authorization: Bearer cM1l30cMWeJkkQRQUkQZl0HF-wDLzSM-omHebn_oLJs"

Response

Simulated Response

Response Fields

Name Description
users (object) the newly updated user attributes

Status

200

Headers

ETag: W/"ab07aa6d92ee36ba1b8b3d97185ab1ee"

Body

{
  "users": {
    "id": "760642",
    "name": "Sterling Archer",
    "email": "[email protected]",
    "details": "Quo voluptates id.",
    "lang": "en",
    "image_url": "https://simpleinout.s3.amazonaws.com/image_none.png",
    "role_id": "1871109",
    "created_at": 1726148185,
    "updated_at": 1726148185,
    "cached_at": "1726148185.825845000"
  },
  "meta": {
    "last_updated_at": {
      "beacons": 1719322585,
      "desktop_presences": 1724160985,
      "favorites": 1724852185,
      "fences": 1723469785,
      "groups": 1726148185,
      "networks": 1724506585,
      "roles": 1726148185,
      "settings": 1726148185
    }
  }
}

Update the current user

Updates the currently authorized user. The current user cannot update their own role.

Endpoint

PATCH /api/v4/users/my

Parameters

Name Description
user[email] (string) new user's email address
user[name] (string) new user's full name
user[details] (string) additional text information about the user
user[lang] (string) preferred locale of the user, can be en, en-au, en-ca, en-gb, es, fr, fr-ca
user[phones_attributes] (array) phone objects to attach to the user if both 'id' and 'number' are passed in, the existing phone number will be updated if just 'number' is passed in, a new phone will be added if both 'id' and '_destroy' are passed in ('_destroy' being truthy like 'true' or '1'), the phone number will be removed
user[memberships_attributes] (array) group objects to attach to the user if both 'id' and 'group_id' are passed in, the existing membership will be updated if just 'group_id' is passed in, a new membership will be added if both 'id' and '_destroy' are passed in ('_destroy' being truthy like 'true' or '1') the group membership will be removed
only (string) comma-delimited list of fields to render only, possibilities include: 'id', 'name', 'email', 'image_url', 'details', 'lang', 'created_at', 'updated_at', 'cached_at'
expand (string) comma-delimited list of extra information to include in the response, possibilities include: 'badge', 'favorites', 'latest', 'memberships', 'memberships.group', 'permissions', 'phones', 'status', 'status.application', 'status.changed_by_user', 'recents', 'role'

Request

Route

PATCH /api/v4/users/my

Headers

Content-Type: application/json
Authorization: Bearer O9pAUtdZW9oeLQVGJQEIxud0_4lk-d_Qqyd6aqD8lcE

Body

{
  "user": {
    "phones_attributes": [
      {
        "number": "193-318-2158 x4653"
      }
    ],
    "memberships_attributes": [
      {
        "group_id": 40668
      }
    ]
  }
}

cURL

curl "https://www.simpleinout.com/api/v4/users/my" -d '{"user":{"phones_attributes":[{"number":"193-318-2158 x4653"}],"memberships_attributes":[{"group_id":40668}]}}' -X PATCH \
	-H "Version: HTTP/1.0" \
	-H "Content-Type: application/json" \
	-H "Authorization: Bearer O9pAUtdZW9oeLQVGJQEIxud0_4lk-d_Qqyd6aqD8lcE"

Response

Simulated Response

Response Fields

Name Description
users (object) the newly updated user attributes

Status

200

Headers

ETag: W/"b4223b5ab910c7f9c2f6777b46446aa2"

Body

{
  "users": {
    "id": "760620",
    "name": "Emmanuel Lowe Ret.",
    "email": "[email protected]",
    "details": "Accusamus modi sunt.",
    "lang": "en",
    "image_url": "https://simpleinout.s3.amazonaws.com/image_none.png",
    "role_id": "1871063",
    "created_at": 1726148185,
    "updated_at": 1726148185,
    "cached_at": "1726148185.414358000"
  },
  "meta": {
    "last_updated_at": {
      "beacons": 1719840985,
      "desktop_presences": 1724592985,
      "favorites": 1719063385,
      "fences": 1722346585,
      "groups": 1726148185,
      "networks": 1721741785,
      "roles": 1726148185,
      "settings": 1726148185
    }
  }
}