APIs
...
Forms
Retrieve a profile form by id
code examples curl location globoff 'https //profile backend detected app/api/v2/public/profiles/{uuid}/forms/{id}' \\ \ header 'accept application/json' \\ \ header 'content type application/json'var myheaders = new headers(); myheaders append("accept", "application/json"); myheaders append("content type", "application/json"); var requestoptions = { method 'get', headers myheaders, redirect 'follow' }; fetch("https //profile backend detected app/api/v2/public/profiles/{uuid}/forms/{id}", requestoptions) then(response => response text()) then(result => console log(result)) catch(error => console log('error', error));require "uri" require "json" require "net/http" url = uri("https //profile backend detected app/api/v2/public/profiles/{uuid}/forms/{id}") https = net http new(url host, url port) https use ssl = true request = net http get new(url) request\["accept"] = "application/json" request\["content type"] = "application/json" response = https request(request) puts response read body import requests import json url = "https //profile backend detected app/api/v2/public/profiles/{uuid}/forms/{id}" payload = {} headers = { 'accept' 'application/json', 'content type' 'application/json' } response = requests request("get", url, headers=headers, data=payload) print(response text) responses // ok { "data" { "id" 1, "label" "signup form", "reference" "my reference", "answers" \[ { "label" "what is you phone number", "answer" "0000001111111" } ], "updated at" "2024 07 16 14 52 33", "created at" "2024 07 16 14 52 33" } }// unauthorized { "message" "unauthenticated " }// not found { "message" "not found" }// too many requests { "message" "too many attempts " }