Skip to main content

API Reference (v1) - Legacy

Note: If you are currently using the Version 1.0 API, we recommend transitioning to Version 2.0 as soon as possible.

Base URL: https://api.action-target.net/api/v1/pos

Swagger Documentation:


Range Information

GET /bays

Returns a list of bays for your range.

Response: Array of BayView

GET /lanes

Returns a list of lanes for your range. Results are ordered by display order but not grouped by bay.

Response: Array of LaneView

GET /groups

Returns the access groups configured for your range.

Response: Array of GroupView


Session Management

GET /sessions

Returns all active sessions. Sessions created from the SRA Control Screen will also appear here.

Response: Array of SessionView

POST /sessions

Creates a new session.

Request Body:

{
"name": "Customer Name",
"lane_id": "string (UUID)",
"group_id": "string (UUID)",
"duration": 30,
"enable_purchasing": false,
"auto_start": true
}
FieldDescription
durationSession length in minutes (1-480)
enable_purchasingEnables lane purchasing if the range supports it
auto_startIf false, session time does not start until the user begins in the lane

Response: SessionView

PATCH /sessions

Modifies an existing session. Use this to extend, reduce, or stop a session.

Extend or reduce time:

{
"id": "session-uuid",
"duration": 45
}

Stop a session (set duration to 0):

{
"id": "session-uuid",
"duration": 0
}

Response:

{
"id": "session-uuid",
"duration": 45
}

Or for stopped sessions:

{
"id": "session-uuid",
"message": "session stopped"
}

Key Differences from v2

Featurev1v2
Field namingIncludes redundant id fieldUses explicit names (session_id, lane_id, etc.)
Modify sessionPATCH /sessions with new durationPOST /sessions/{id}/modify?time=±minutes
Stop sessionPATCH /sessions with duration: 0POST /sessions/{id}/stop
Simulation endpointsNot availableAvailable on playground