@@ -82,7 +82,7 @@ Submit forms programmatically:
8282<Tabs items = { [' cURL' , ' TypeScript' ]} >
8383 <Tab value = " cURL" >
8484``` bash
85- curl -X POST https://sim.ai/api/form/your-identifier \
85+ curl -X POST https://api. sim.ai/api/form/your-identifier \
8686 -H " Content-Type: application/json" \
8787 -d ' {
8888 "formData": {
@@ -94,7 +94,7 @@ curl -X POST https://sim.ai/api/form/your-identifier \
9494 </Tab >
9595 <Tab value = " TypeScript" >
9696``` typescript
97- const response = await fetch (' https://sim.ai/api/form/your-identifier' , {
97+ const response = await fetch (' https://api. sim.ai/api/form/your-identifier' , {
9898 method: ' POST' ,
9999 headers: { ' Content-Type' : ' application/json' },
100100 body: JSON .stringify ({
@@ -115,14 +115,14 @@ const result = await response.json();
115115
116116For password-protected forms:
117117``` bash
118- curl -X POST https://sim.ai/api/form/your-identifier \
118+ curl -X POST https://api. sim.ai/api/form/your-identifier \
119119 -H " Content-Type: application/json" \
120120 -d ' { "password": "secret", "formData": { "name": "John" } }'
121121```
122122
123123For email-protected forms:
124124``` bash
125- curl -X POST https://sim.ai/api/form/your-identifier \
125+ curl -X POST https://api. sim.ai/api/form/your-identifier \
126126 -H " Content-Type: application/json" \
127127 -d ' { "email": "allowed@example.com", "formData": { "name": "John" } }'
128128```
0 commit comments