Skip to content

Get a survey with all responses (super admin only)

GET
/admin/scope-surveys/{id}
curl --request GET \
--url https://example.com/api/admin/scope-surveys/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0 \
--header 'Authorization: Bearer <token>'
id
required
string format: uuid

Full survey with responses (newest first)

Media type application/json
object
survey
required
object
id
required
string format: uuid
code
required
string
title
required
string
intro
string | null
questions
required
Array<object>
object
id

Generated server-side (q1..qN) when absent on create.

string
<= 64 characters
title
required
string
>= 1 characters <= 500 characters
description
string
<= 2000 characters
options
required
Array<object>
>= 2 items
object
key
required
string
>= 1 characters <= 8 characters
Example
A
label
required
string
>= 1 characters <= 500 characters
proposal

Option key the survey author proposes as the default direction.

string
<= 8 characters
created_by
string | null format: uuid
created_at
required
string format: date-time
updated_at
required
string format: date-time
responses
required
Array<object>
object
id
required
string format: uuid
respondent_email
required
string format: email
answers
required
Array<object>
object
question_id
required
string
<= 64 characters
choice
required

Option key of the chosen option.

string
<= 16 characters
note
string
<= 2000 characters
comment
string | null
created_at
required
string format: date-time

Not authenticated

Media type application/json
object
error
required

Human-readable error message

string
code

Stable machine-readable error code for client branching

string
fieldErrors

First validation message per field path

object
key
additional properties
string
issues

Structured validation issues (Zod)

Array<object>
object
path
required
string
message
required
string
retryAfter

Seconds until rate limit resets (429 responses)

number
reconnect

True if re-linking GitHub may fix the issue

boolean

Forbidden

Media type application/json
object
error
required

Human-readable error message

string
code

Stable machine-readable error code for client branching

string
fieldErrors

First validation message per field path

object
key
additional properties
string
issues

Structured validation issues (Zod)

Array<object>
object
path
required
string
message
required
string
retryAfter

Seconds until rate limit resets (429 responses)

number

Not found

Media type application/json
object
error
required

Human-readable error message

string
code

Stable machine-readable error code for client branching

string
fieldErrors

First validation message per field path

object
key
additional properties
string
issues

Structured validation issues (Zod)

Array<object>
object
path
required
string
message
required
string
retryAfter

Seconds until rate limit resets (429 responses)

number