See the lines an agent says by itself

GET
/v1/agents/{id}/lines

The short lines the platform speaks for the agent (the hold line, the filler before a slow answer, re-asks, hand-off notices, the apology), in each language the agent lists, main language first. For each line text is what a call would say and source says where it came from: owner (your own words), pack (written for you by the platform from the English line), main or english (a fallback, because that language has no text for it yet; silence is never the fallback). packState is writing, ready or failed; asking for a language the platform has not written yet starts it in the background. Pass language to read one.

Requires an API key with the workspace:read scope.

Authorization

apiKey
headerAuthorizationBearer <token>

A secret API key from the dashboard (Developers → API keys): vl_live_…, or vl_test_… for test mode. Each operation says which scope the key needs.

Path Parameters

id*string

The agent id.

Query Parameters

language?string

Read one language only, for example gu-IN.

Response Body

Every language the agent lists: the lines a call would say, where each came from, and whether the platform's written lines are ready

application/json
  1. response
languages*array<>
Example Request
curl "https://api.vlayers.ai/v1/agents/$AGENT_ID/lines?language=gu-IN" \  -H "Authorization: Bearer $VOICELAYER_API_KEY"
Example Response
{  "languages": [    {      "language": "gu-IN",      "packState": "ready",      "revision": 1,      "lines": [        {          "id": "hold",          "text": "એક ક્ષણ, કૃપા કરીને.",          "source": "pack",          "english": "One moment, please."        }      ],      "words": {        "yes": [          "હા"        ],        "no": [          "ના"        ],        "goodbye": [          "આવજો"        ]      }    }  ]}