The custom field schema
GET
/api/v1/fields
const url = 'http://localhost:3000/api/v1/fields';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url http://localhost:3000/api/v1/fields \ --header 'Authorization: Bearer <token>'Scope: read.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”Fields
Media typeapplication/json
object
data
required
Array<object>
object
key
required
string
label
required
string
type
required
string
options
required
Array<string>
required
required
boolean
Example
{ "data": [ { "type": "text" } ]}default
Section titled “default”An error
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
detail
Examplegenerated
{ "error": { "code": "example", "message": "example", "detail": "example" }}