Pisano External API - Flows - Active Survey Query
Active Survey Query
Retrieves customer specific active surveys.
POST
/external/v1/nodes/{node_id}/active_surveys
Authentication
Authentication Method
Token token=<TOKEN>
Request
Path Parameters
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
node_id |
string | Yes | Pisano node ID. Pisano provides dedicated IDs for the configured domains/units. | <node_id> |
Headers
| Header | Required | Description | Example |
|---|---|---|---|
Accept |
No | Specifies the expected response media type. Recommended value: application/json. | application/json |
Content-Type |
Yes | Specifies the request content type. Must be application/json. | application/json |
Authorization |
Yes | Integration token used to authenticate the request. | Token token=<TOKEN> |
Request Body
{
"customer": {
"phone_number": "<phone_number>",
"external_id": "<external_id>",
"email": "test@example.com",
"schema": {
"TCKN": "<TCKN>"
}
},
"response_channel_id": "<response_channel_id>"
}
Request Body Fields
| Field | Type | Required | Description | Example |
|---|---|---|---|---|
customer.phone_number |
string | Optional | Customer phone number. | <phone_number> |
customer.email |
string | Optional | Customer email address. | test@example.com |
customer.external_id |
string | Optional | External customer identifier. | <external_id> |
customer.schema.TCKN |
string | Optional | TCKN value stored in customer schema. | <TCKN> |
response_channel_id |
string | Optional | Response channel identifier. | <response_channel_id> |
Request Example
cURL
Request Example
curl --location --request POST \
'<API_URL>/external/v1/nodes/<node_id>/active_surveys' \
--header 'accept: application/json' \
--header 'Content-Type: application/json' \
--header 'Authorization: Token token=<TOKEN>' \
--data '{
"customer": {
"phone_number": "<phone_number>",
"external_id": "<external_id>",
"email": "test@example.com",
"schema": {
"TCKN": "<TCKN>"
}
},
"response_channel_id": "<response_channel_id>"
}'
Responses
200
OK
Response Fields
| Field | Type | Required | Description | Example |
|---|---|---|---|---|
count |
integer | Number of active surveys returned. | 0 |
|
surveys |
array | List of active surveys associated with the matching customer. | [] |
|
surveys[].Link |
string | Active survey link. | anket1.psn.vc |
|
surveys[].SurveyName |
string | Name of the active survey. | Anket 1 |
|
surveys[].LastActivationDate |
string | Last activation date of the customer specific link. | 10.04.2026 12:45:05 |
|
surveys[].UnitName |
string | Associated domain/unit information. | Mobil |
Response Example
JSON
Runtime Success Example
{
"count": 0,
"surveys": []
}
Error Responses
400
Required customer identifier missing
JSON
Error Response Example
{
"error_message": "Required field not present in params!",
"data": "Required field not present in params!",
"code": 13015,
"errors": "customer.phone_number, customer.email, customer.external_id or customer.schema.TCKN is required"
}
401
Wrong authentication token
JSON
Error Response Example
{
"error_message": "Wrong authentication token",
"data": "Wrong authentication token",
"code": 13001,
"errors": null
}
404
Node not found
JSON
Error Response Example
{
"error_message": "Requested resource not found!",
"data": "Requested resource not found!",
"code": 13002,
"errors": {
"node_id": "00000000-0000-0000-0000-000000000000"
}
}
Additional Information
| Usage Limitations | At least one customer identifier must be provided: customer.phone_number, customer.email, customer.external_id, or customer.schema.TCKN. Each identifier can be used individually. If multiple identifiers are provided, their values are combined with AND and the active surveys of the matching customer are returned. |
| Notes |
The API base URL is environment specific and is shared separately for Test and PROD. LastActivationDate format: %d.%m.%Y %H:%M:%S (example: 10.04.2026 12:45:05). For this service to function and produce results, the "link expiration date" feature found in the advanced settings for Channels must be enabled. Links generated within the selected date range are considered active, allowing the service to yield results. |