Skip to main content
Manage Actors

List Actors

List actors in a namespace, optionally filtered by name, key, or ID. Results are paginated.

key requires name. actor_id cannot be combined with name or key. Destroyed actors are excluded unless include_destroyed is true.

GET https://api.rivet.dev/actors

Examples

Authentication

Send your namespace token as a bearer token in the Authorization header. Every control plane request also requires the namespace query parameter. See Authentication.

Query Parameters

NameTypeRequiredDescription
namespacestringYesName of the namespace to operate in.
namestringNoOnly return actors with this name.
keystringNoOnly return the actor with this key. Requires name. Multi-part keys are joined with /, see Actor Keys.
actor_idsstringNoDeprecated. Use actor_id instead.
actor_idstring[]NoOnly return actors with these IDs. Repeat the parameter for multiple IDs.
include_destroyedbooleanNoInclude actors that have been destroyed.
limitintegerNoMaximum number of results to return.
cursorstringNoPagination cursor. Pass the pagination.cursor value from the previous response to fetch the next page.

Responses

200

Matching actors and a cursor for the next page. pagination.cursor is null on the last page.

FieldTypeDescription
actorsobject[]
actors[].actor_idstringUnique ID of the actor.
actors[].connectable_tsinteger | nullDenotes when the actor was last connectable. Null if actor is not running.
actors[].crash_policy"restart" | "sleep" | "destroy"What happens when the actor crashes.
actors[].create_tsintegerDenotes when the actor was first created.
actors[].datacenterstringDatacenter the actor is scheduled in.
actors[].destroy_tsinteger | nullDenotes when the actor was destroyed.
actors[].errorobject | nullError details if the actor failed to start.
actors[].keystring | nullActor key. Multi-part keys are joined with /, see Actor Keys.
actors[].namestringActor name as registered in your RivetKit registry.
actors[].namespace_idstringID of the namespace the actor belongs to.
actors[].pending_allocation_tsinteger | nullDenotes when the actor started waiting for an allocation.
actors[].reschedule_tsinteger | nullDenotes when the actor will try to allocate again. If this is set, the actor will not attempt to allocate until the given timestamp.
actors[].runner_name_selectorstringPool the actor runs on.
actors[].sleep_tsinteger | nullDenotes when the actor entered a sleeping state.
actors[].start_tsinteger | nullDenotes when the actor was first made connectable. Null if never.
paginationobject
pagination.cursorstring | nullCursor for the next page, or null when there are no more results.
{
  "actors": [
    {
      "actor_id": "00000000-0000-0000-0000-000000000000",
      "connectable_ts": null,
      "crash_policy": "restart",
      "create_ts": 1700000000000,
      "datacenter": "us-east",
      "destroy_ts": null,
      "error": null,
      "key": null,
      "name": "my-actor",
      "namespace_id": "00000000-0000-0000-0000-000000000000",
      "pending_allocation_ts": null,
      "reschedule_ts": null,
      "runner_name_selector": "default",
      "sleep_ts": null,
      "start_ts": null
    }
  ],
  "pagination": {
    "cursor": null
  }
}