Skip to main content
POST
/
action_attempts
/
list
await seam.actionAttempts.list({
  action_attempt_ids: [
    "5f4e3d2c-1b0a-9f8e-7d6c-5b4a3c2d1e0f",
    "3f2b1c8d-1b5e-4f8c-9c7d-9a8b7c6d5e4f",
  ],
});

/*
[
  {
    "action_attempt_id": "5f4e3d2c-1b0a-9f8e-7d6c-5b4a3c2d1e0f",
    "action_type": "UNLOCK_DOOR",
    "error": null,
    "result": {
      "was_confirmed_by_device": false
    },
    "status": "success"
  },
  {
    "action_attempt_id": "3f2b1c8d-1b5e-4f8c-9c7d-9a8b7c6d5e4f",
    "action_type": "LOCK_DOOR",
    "error": null,
    "result": {},
    "status": "success"
  }
]
*/
{
  "action_attempts": [
    {
      "action_attempt_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "action_type": "<string>",
      "result": {},
      "error": {
        "type": "<string>",
        "message": "<string>"
      }
    }
  ],
  "ok": true,
  "pagination": {
    "has_next_page": true,
    "next_page_cursor": "<string>",
    "next_page_url": "<string>"
  }
}

Authorizations

Authorization
string
header
required

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

Body

application/json
action_attempt_ids
string<uuid>[]

IDs of the action attempts that you want to retrieve.

device_id
string<uuid>

ID of the device to filter action attempts by.

limit
integer
default:500

Maximum number of records to return per page.

Required range: x > 0
page_cursor
string | null

Identifies the specific page of results to return, obtained from the previous page's next_page_cursor.

Response

OK

action_attempts
object[]
required
ok
boolean
required
pagination
object
required

Information about the current page of results.