For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Logo
DeveloperAcademyCommunityStatus
    • Overview
    • API Credentials
    • Errors
    • Legacy & Deprecated APIs
  • Events API
    • Chat Markup
    • Rate Limits
    • Message Delivery
  • (Beta) Conversations API
  • Data API
    • GETList conversations
    • GETList interactions
    • GETList plugins calls
    • GETList Plugin Resources
    • GETList Users
  • Webhook Listeners
  • Content Gateway
    • Overview
    • Integration Strategies
    • Starter Code
    • Verifying Your Build
    • Connecting Your Gateway to Moveworks
    • Authentication
    • How Permissions Work
    • Common Pitfalls
    • Operational Guide
    • Errors
    • Supported MIME Types
  • Legacy Gateways
    • Authentication
    • Response Options
        • GETList Forms
        • GETGet Form By ID
        • POSTSubmit a Form
    • Field Types
    • Form Gateway Errors
DeveloperAcademyCommunityStatus
Legacy GatewaysForms GatewaySmart Forms

Get Form By ID

||View as Markdown|
GET
http://localhost:5000/myinstance1/forms/:formId
GET
/myinstance1/forms/:formId
$curl http://localhost:5000/myinstance1/forms/formId \
> -H "Authorization: Bearer <token>"
200Retrieved
1{
2 "id": "06585f0c-539b-4ed5-85cc-a834d15da2e6",
3 "domain": "IT",
4 "title": "Local Admin Access",
5 "url": "https;//myportal.system.com/forms/06585f0c-539b-4ed5-85cc-a834d15da2e6",
6 "last_updated_at": "2022-10-20T07:00:00Z",
7 "image_url": "https://www.moveworks.com/hubfs/img/site/backgrounds/whats-new.svg",
8 "description": "Lorem Ipsum",
9 "short_description": "Lorem Ipsum",
10 "fields": [
11 {
12 "name": "permissions",
13 "label": "Which permissions do you need?",
14 "type": "LABEL",
15 "placeholder": "Enter text here.",
16 "help": "If you need help figuring out which access you need, ask your bot.",
17 "default_to_current_user": false,
18 "options": [
19 {
20 "label": "System Administrator",
21 "value": "system_administrator"
22 }
23 ],
24 "required": false,
25 "visible": true
26 }
27 ],
28 "dynamic_field_rules": [
29 {
30 "name": "Hide 2FA if write access not needed",
31 "conditions": [
32 {
33 "field_name": "2fa_device",
34 "operator": "EQUALS",
35 "value": true
36 }
37 ],
38 "actions": [
39 {
40 "field_name": "read_or_write",
41 "visible": false,
42 "required": true
43 }
44 ],
45 "logical": "AND"
46 }
47 ]
48}

Form with the requested ID should be returned from this API. Anticipated load – Moveworks may call this endpoint a few times every 24 hours. This API is primarily for sanity checks and debugging. Since ingestion happens once every 24 hours, we might want to verify if form submission failures are due to deviations between the local and remote versions.

Was this page helpful?
Previous

Submit a Form

Next
Built with

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

OR
X-API-KEYstring
API Key authentication via header

Path parameters

formIdstringRequired
ID of form to return

Response headers

X-RateLimit-Limitinteger
The maximum number of requests you're permitted to make per minute.
X-RateLimit-Remaininginteger
The number of requests remaining in the current rate limit window.
X-RateLimit-Resetstring
The remaining window before the rate limit FULLY resets in UTC epoch seconds.

Response

A single form
idstring
Stable unique identifier for the form.
domainenum
Specifies the domain the form belongs to.
Allowed values:
titlestring
Title of the form. This will be displayed to the end user.
urlstring

Self-service portal URL where the user can fill out the form if in-bot form filling is not supported.

last_updated_atstring

Last updated date as a ISO-8601 UTC timestamp (e.g., 2021-10-20T17:28:52Z)

image_urlstring
Publically accessible image URL for the form
descriptionstring1-2000 characters

A long description of the form’s purpose. This is used in our form search machine learning, and is also displayed to the end user.

short_descriptionstring1-140 characters

A short description of the form’s purpose. This is used in our form search machine learning, and is also displayed to the end user.

fieldslist of objects
A list of fields that make up this form.
dynamic_field_ruleslist of objects
A list of rules that specify dynamic form field behavior based on user response to other fields.