Skip to main content
GET
/
v1
/
agents
/
{agentId}
/
schedule
/
exceptions
/
{exceptionId}
Obtener excepción puntual del horario
curl --request GET \
  --url https://agents.studio.getsupervisor.ai/v1/agents/{agentId}/schedule/exceptions/{exceptionId} \
  --header 'Authorization: Bearer <token>' \
  --header 'x-workspace-id: <x-workspace-id>'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "agentId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "exceptionDate": "2023-12-25",
  "isClosed": true,
  "createdAt": "2023-11-07T05:31:56Z",
  "startTime": "<string>",
  "endTime": "<string>",
  "reason": "<string>"
}

Authorizations

Authorization
string
header
required

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

Headers

x-workspace-id
string<uuid>
required

Identificador del workspace multi-tenant.

Path Parameters

agentId
string<uuid>
required

Identificador del agente

exceptionId
string<uuid>
required

Identificador de la excepción de horario del agente

Response

Excepción encontrada

Excepción puntual que modifica la disponibilidad del agente para un día específico.

id
string<uuid>
required
agentId
string<uuid>
required
exceptionDate
string<date>
required

Fecha en formato ISO-8601 (YYYY-MM-DD) afectada por la excepción.

isClosed
boolean
required

Define si el agente estará completamente fuera de servicio ese día.

createdAt
string<date-time>
required
startTime
string | null

Hora local de inicio (HH:mm). Obligatoria cuando isClosed es false.

endTime
string | null

Hora local de fin (HH:mm). Obligatoria junto con startTime cuando isClosed es false.

reason
string | null

Notas visibles para el equipo de operaciones respecto a la excepción.

Maximum string length: 280