Skip to main content

List services

GET{{server}}/api/v1/counter/redirect/service?ticket={{ticketKey}}

Before redirecting to service, you should call this endpoint to get a list of all available services. It returns the list of services that the current clerk can't manage.

If you need to add a service that the clerk can manage, use the Add new task endpoint.

Request

  • ticket: Ticket key

Response

It returns the array of service keys.

Request​

Authorization​

HeaderValue
AuthorizationBearer {{counterToken}}

Headers​

KeyValue
Acceptapplication/json
X-WSID{{counterWsID}}

Query parameters​

KeyValue
ticket{{ticketKey}}

Code snippets​

curl -X GET '{{server}}/api/v1/counter/redirect/service?ticket={{ticketKey}}' \
-H 'Accept: application/json' \
-H 'X-WSID: {{counterWsID}}' \
-H 'Authorization: Bearer {{counterToken}}'

Example​

Example request
GET{{server}}/api/v1/counter/redirect/service?ticket=1906d4ba-ccac-4a1f-d8f9-a63962d6879a
Query parameters (1)
KeyValue
ticket1906d4ba-ccac-4a1f-d8f9-a63962d6879a
Headers (2)
KeyValue
Acceptapplication/json
X-WSID{{counterWsID}}
Example response 200 Ok
Response headers (9)
KeyValue
Access-Control-Expose-Headers*
Cache-Controlno-store, no-cache, must-revalidate
Access-Control-Allow-Origin*
Access-Control-Allow-MethodsPOST, PUT, GET, OPTIONS, DELETE
Access-Control-Allow-Credentialstrue
Content-Length40
Access-Control-Max-Age86400
Access-Control-Allow-HeadersContent-Type, Authorization, X-Requested-With
Content-Typeapplication/json;charset=utf-8
Body
[
"00000000-0000-4000-0007-000000000006"
]