Skip to Content
Routing FormsGet Routing Form

Get Routing Form

Fetch a routing form’s definition, including its questions, answer options, and display settings.

Endpoint

GET /api/public/routing/{userSlug}/{formSlug}

Authentication: None required

Path Parameters

ParameterTypeDescription
userSlugstringThe user’s unique URL slug
formSlugstringThe routing form’s URL slug

Response

Returns 200 OK with the form definition.

{ "id": "rf_abc123", "name": "Book a Meeting", "slug": "book-a-meeting", "description": "Answer a few questions so we can connect you with the right person.", "fields": [ { "id": "field_company_size", "label": "What is your company size?", "type": "select", "required": true, "options": [ { "id": "opt_1", "label": "1-10 employees" }, { "id": "opt_2", "label": "11-50 employees" }, { "id": "opt_3", "label": "51-200 employees" }, { "id": "opt_4", "label": "200+ employees" } ] }, { "id": "field_topic", "label": "What do you need help with?", "type": "select", "required": true, "options": [ { "id": "opt_a", "label": "Product demo" }, { "id": "opt_b", "label": "Technical support" }, { "id": "opt_c", "label": "Billing question" } ] }, { "id": "field_email", "label": "Your email address", "type": "text", "required": true, "options": [] } ], "branding": { "primaryColor": "#4F46E5", "logoUrl": "https://storage.proximity.io/logos/acme.png" } }

Response Fields

FieldTypeDescription
idstringUnique form identifier
namestringForm display name
slugstringURL-safe slug
descriptionstring | nullDescription shown to visitors
fieldsarrayOrdered list of form fields
brandingobjectForm branding settings

fields[]

FieldTypeDescription
idstringUnique field identifier
labelstringQuestion text shown to the visitor
typestringField type: select, text, email, phone, textarea
requiredbooleanWhether the field is required
optionsarrayAnswer options (for select fields)

Errors

StatusDescription
404User or routing form not found

Code Examples

cURL

curl https://app.proximity.io/api/public/routing/jane-doe/book-a-meeting

JavaScript

const response = await fetch( 'https://app.proximity.io/api/public/routing/jane-doe/book-a-meeting' ); const form = await response.json(); console.log(`Form: ${form.name}`); form.fields.forEach(field => { console.log(` ${field.label} (${field.type}, required: ${field.required})`); });
Last updated on