Obter formulário público
curl --request GET \
--url https://api.olie.ai/api/management/form-publications/{form_publication_token}/form \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.olie.ai/api/management/form-publications/{form_publication_token}/form"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.olie.ai/api/management/form-publications/{form_publication_token}/form', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.olie.ai/api/management/form-publications/{form_publication_token}/form",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.olie.ai/api/management/form-publications/{form_publication_token}/form"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.olie.ai/api/management/form-publications/{form_publication_token}/form")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.olie.ai/api/management/form-publications/{form_publication_token}/form")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"response": true,
"form": {
"id": 70,
"title": "Doc Postman - Inscrição em evento",
"frame_id": "01a0252b-d865-71af-a0a2-d4e168d1ffe5",
"created_at": "2026-09-22T22:00:15.000000Z",
"updated_at": "2026-09-22T22:00:15.000000Z",
"deleted_at": null,
"edges": [
{
"id": 115,
"type": "short_text",
"label": "Nome completo",
"index": 0,
"help_text": null,
"description": null,
"options": [],
"initial_value": null,
"required": true,
"custom_validation": null,
"conditional": null,
"form_id": 70,
"created_at": "2026-09-22T22:00:15.000000Z",
"updated_at": "2026-09-22T22:00:15.000000Z",
"deleted_at": null,
"is_multiple": false,
"logical_operator": "and",
"is_migrated": false,
"conditional_action": null,
"conditionals": []
},
{
"id": 116,
"type": "email",
"label": "E-mail",
"index": 1,
"help_text": null,
"description": null,
"options": [],
"initial_value": null,
"required": true,
"custom_validation": null,
"conditional": null,
"form_id": 70,
"created_at": "2026-09-22T22:00:15.000000Z",
"updated_at": "2026-09-22T22:00:15.000000Z",
"deleted_at": null,
"is_multiple": false,
"logical_operator": "and",
"is_migrated": false,
"conditional_action": null,
"conditionals": []
},
{
"id": 117,
"type": "phone",
"label": "Telefone",
"index": 2,
"help_text": null,
"description": null,
"options": [],
"initial_value": null,
"required": false,
"custom_validation": null,
"conditional": null,
"form_id": 70,
"created_at": "2026-09-22T22:00:15.000000Z",
"updated_at": "2026-09-22T22:00:15.000000Z",
"deleted_at": null,
"is_multiple": false,
"logical_operator": "and",
"is_migrated": false,
"conditional_action": null,
"conditionals": []
},
{
"id": 118,
"type": "select",
"label": "Como conheceu o evento",
"index": 3,
"help_text": null,
"description": null,
"options": [
"Indicação",
"Redes sociais",
"Site"
],
"initial_value": null,
"required": false,
"custom_validation": null,
"conditional": null,
"form_id": 70,
"created_at": "2026-09-22T22:00:15.000000Z",
"updated_at": "2026-09-22T22:00:15.000000Z",
"deleted_at": null,
"is_multiple": false,
"logical_operator": "and",
"is_migrated": false,
"conditional_action": null,
"conditionals": []
}
]
},
"form_publication": {
"title": "Inscrição - Workshop de Processos",
"description": "Preencha para garantir sua vaga.",
"background_color": "#1E40AF",
"starts_at": null,
"ends_at": "2026-12-31 23:59:59",
"redirect_url": "https://exemplo.com.br/obrigado",
"token": "e867fd11-bf8d-4b10-b8a0-77deae294392"
}
}form-publications
Obter formulário público
Retorna o formulário de uma publicação a partir do token do link público, só com os campos que podem ser respondidos sem conta na plataforma. Fora da janela de publicação form vem nulo; publicação despublicada ou link invalidado retorna 404. Dispensa autenticação, mas sem token a requisição precisa do cabeçalho Origin com o endereço de uma conta da Olie.
GET
/
api
/
management
/
form-publications
/
{form_publication_token}
/
form
Obter formulário público
curl --request GET \
--url https://api.olie.ai/api/management/form-publications/{form_publication_token}/form \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.olie.ai/api/management/form-publications/{form_publication_token}/form"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.olie.ai/api/management/form-publications/{form_publication_token}/form', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.olie.ai/api/management/form-publications/{form_publication_token}/form",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.olie.ai/api/management/form-publications/{form_publication_token}/form"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.olie.ai/api/management/form-publications/{form_publication_token}/form")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.olie.ai/api/management/form-publications/{form_publication_token}/form")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"response": true,
"form": {
"id": 70,
"title": "Doc Postman - Inscrição em evento",
"frame_id": "01a0252b-d865-71af-a0a2-d4e168d1ffe5",
"created_at": "2026-09-22T22:00:15.000000Z",
"updated_at": "2026-09-22T22:00:15.000000Z",
"deleted_at": null,
"edges": [
{
"id": 115,
"type": "short_text",
"label": "Nome completo",
"index": 0,
"help_text": null,
"description": null,
"options": [],
"initial_value": null,
"required": true,
"custom_validation": null,
"conditional": null,
"form_id": 70,
"created_at": "2026-09-22T22:00:15.000000Z",
"updated_at": "2026-09-22T22:00:15.000000Z",
"deleted_at": null,
"is_multiple": false,
"logical_operator": "and",
"is_migrated": false,
"conditional_action": null,
"conditionals": []
},
{
"id": 116,
"type": "email",
"label": "E-mail",
"index": 1,
"help_text": null,
"description": null,
"options": [],
"initial_value": null,
"required": true,
"custom_validation": null,
"conditional": null,
"form_id": 70,
"created_at": "2026-09-22T22:00:15.000000Z",
"updated_at": "2026-09-22T22:00:15.000000Z",
"deleted_at": null,
"is_multiple": false,
"logical_operator": "and",
"is_migrated": false,
"conditional_action": null,
"conditionals": []
},
{
"id": 117,
"type": "phone",
"label": "Telefone",
"index": 2,
"help_text": null,
"description": null,
"options": [],
"initial_value": null,
"required": false,
"custom_validation": null,
"conditional": null,
"form_id": 70,
"created_at": "2026-09-22T22:00:15.000000Z",
"updated_at": "2026-09-22T22:00:15.000000Z",
"deleted_at": null,
"is_multiple": false,
"logical_operator": "and",
"is_migrated": false,
"conditional_action": null,
"conditionals": []
},
{
"id": 118,
"type": "select",
"label": "Como conheceu o evento",
"index": 3,
"help_text": null,
"description": null,
"options": [
"Indicação",
"Redes sociais",
"Site"
],
"initial_value": null,
"required": false,
"custom_validation": null,
"conditional": null,
"form_id": 70,
"created_at": "2026-09-22T22:00:15.000000Z",
"updated_at": "2026-09-22T22:00:15.000000Z",
"deleted_at": null,
"is_multiple": false,
"logical_operator": "and",
"is_migrated": false,
"conditional_action": null,
"conditionals": []
}
]
},
"form_publication": {
"title": "Inscrição - Workshop de Processos",
"description": "Preencha para garantir sua vaga.",
"background_color": "#1E40AF",
"starts_at": null,
"ends_at": "2026-12-31 23:59:59",
"redirect_url": "https://exemplo.com.br/obrigado",
"token": "e867fd11-bf8d-4b10-b8a0-77deae294392"
}
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Token do link público da publicação (não é o ID da publicação).
Response
Sucesso
Formulário público.
Was this page helpful?