Skip to content

List surveys

Returns a page of surveys in the key's workspace, newest activity first.

HTTP request

GET https://www.asqiro.com/api/v1/surveys

Any API key in the survey's workspace.

Query parameters

ParameterTypeDescription
limitintegerNumber of items per page.Optional · Default: 25 · Maximum: 100
cursorstringOpaque cursor from a previous response's nextCursor.Optional

Response body

The response is a page envelope: data holds the surveys, nextCursor points at the following page or is null on the last one.

FieldTypeDescription
idstringUnique survey id.
titlestringSurvey title as shown to respondents.
descriptionstring· nullableSurvey description, or null when none is set.
status"draft" | "published" | "closed"Current lifecycle status.
publishedbooleanWhether the survey is currently accepting responses.
questionCountintegerNumber of questions in the survey.
responseCountintegerTotal responses received, including incomplete ones.
createdAtstring (ISO 8601)When the survey was created.
updatedAtstring (ISO 8601)When the survey was last changed.
Note Trashed surveys are never returned. An integration that syncs surveys will not resurrect something the user deleted.

Errors

  • unauthorized · 401 · The API key is missing, malformed, deleted, or its creator lost workspace access. Check the Authorization header, then the key itself.
  • plan_upgrade_required · 403 · The workspace owner's plan does not include API access. Upgrading the plan restores it; retrying will not.
  • rate_limited · 429 · Too many requests. The Retry-After response header carries the number of seconds to wait.

Example request

bash
curl "https://www.asqiro.com/api/v1/surveys?limit=25" \
  -H "Authorization: Bearer $ASQIRO_API_KEY"

Returns 200 on success.

Example response
json
{
  "data": [
    {
      "id": "s_7t2qk8wvbf31",
      "title": "Onboarding feedback",
      "description": null,
      "status": "published",
      "published": true,
      "questionCount": 8,
      "responseCount": 142,
      "createdAt": "2026-07-02T09:14:31.220Z",
      "updatedAt": "2026-08-11T16:02:07.884Z"
    }
  ],
  "nextCursor": "eyJ1cGRhdGVkQXQiOiIyMDI2LTA4LTExIn0"
}