Browse the docs ▾

Forms and surveys API

Read forms and their answers, and send a form. GET /api/v1/forms, GET /api/v1/forms/{id}, GET /api/v1/forms/{id}/responses, POST /api/v1/forms/{id}/send.

Generated from the app's endpoint listView as Markdown

4 operations. Each needs an API key with the permission shown; see API keys and permissions.

#GET /api/v1/forms

Forms and surveys.

  • Permission: forms:read
  • Returns: a page of records: { data, hasMore, nextCursor }, status 200

Query parameters (all optional)

NameDescription
statusdraft, open or closed.
limitRows per page, 1 to 200. Default 50.
cursorThe nextCursor value from the previous page.

Fields in each record: id, name, title, purpose, audience, status, publicLinkOn, responseCount, lastResponseAt, createdAt, updatedAt

curl "https://app.staffedly.com/api/v1/forms?limit=50" \
  -H "Authorization: Bearer $STAFFEDLY_API_KEY"

#GET /api/v1/forms/{id}

One form with its questions. The rules that open an Issue stay in Staffedly.

  • Permission: forms:read
  • Returns: one record: { data }, status 200

Path

NameDescription
idThe record's id.

Fields in each record: id, name, title, purpose, audience, status, publicLinkOn, responseCount, lastResponseAt, createdAt, updatedAt, intro, fields, closesAt

curl "https://app.staffedly.com/api/v1/forms/<id>" \
  -H "Authorization: Bearer $STAFFEDLY_API_KEY"

#GET /api/v1/forms/{id}/responses

The answers to one form. Answers filed on an applicant are included only for a key that also has Recruiting: read. Uploaded files are named, not served.

  • Permission: forms:read
  • Returns: a page of records: { data, hasMore, nextCursor }, status 200

Path

NameDescription
idThe record's id.

Query parameters (all optional)

NameDescription
fromEarliest answer time: YYYY-MM-DD or an ISO-8601 time.
toLatest answer time (not included): YYYY-MM-DD or an ISO-8601 time.
flaggedtrue for answers the form's own rules marked worth a look.
limitRows per page, 1 to 200. Default 50.
cursorThe nextCursor value from the previous page.

Fields in each record: id, formId, source, providerId, facilityId, applicationId, assignmentId, respondentName, respondentEmail, flagged, issueId, answers, files, createdAt

curl "https://app.staffedly.com/api/v1/forms/<id>/responses?limit=50" \
  -H "Authorization: Bearer $STAFFEDLY_API_KEY"

#POST /api/v1/forms/{id}/send

Email an open form to providers, facilities (their contacts) or applicants, each with a private link. A provider's email consent applies. Up to 200 at a time. Applicants also need Recruiting: write.

  • Permission: forms:write
  • Returns: one record: { data }, status 200
  • Safe retry: send an Idempotency-Key header (8 to 128 characters); the same key with the same request returns the first answer again

Path

NameDescription
idThe record's id.

Body fields (JSON; a field the API does not know is refused)

FieldDescription
providerIdsList of provider ids.
facilityIdsList of facility ids.
applicationIdsList of application ids.
noteOptional line added to the email.

Fields in each record: results

curl -X POST "https://app.staffedly.com/api/v1/forms/<id>/send" \
  -H "Authorization: Bearer $STAFFEDLY_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"providerIds":["<providerId>"],"facilityIds":"<facilityIds>"}'

Something missing or wrong on this page? Email [email protected] or book a free call; our team sets up every new customer at no charge.