Skip to content

Get a public Scope Refinement survey by unique code

GET
/surveys/{code}
curl --request GET \
--url https://example.com/api/surveys/example

Public: anyone with the unique-code URL can view the survey. Returns only the public shape (code, title, intro, questions) — never id or created_by.

code
required
string
>= 1 characters <= 64 characters

Public survey

Media type application/json
object
survey
required
object
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

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