Teams

Teams are the operational units for using Spacivox, grouping a list of agents and a set of campaigns on which they operate.

Fields

class Team
id: integer

The team’s unique ID.

name: string

The team’s name.

API

GET /j/teams

Retrieves the list of teams.

Example request:

GET /j/teams HTTP/1.1
Authorization: Bearer 0a1b2c3d4e5f

Example response:

HTTP/1.1 200 OK
Content-Type: application/json

[
   {
      "id": 1,
      "name": "Team 1"
   },
   {
      "id": 2,
      "name": "Team 2"
   }
]
Request Headers:
Response JSON Array of Objects:
  • id (integer) – The team’s unique ID.

  • name (string) – The team’s name.

Status Codes:
  • 200 OK – no error

  • 400 Bad Request – for instance a required field is missing

  • 403 Forbidden – you tried to access a forbidden resource, check you provided a valid OAuth token