Get Project Mapping Fields
curl --request GET \
--url https://api.techforgeinnovate.com/api/provider/projects/:projectId/mapping-fields \
--header 'x-api-key: <api-key>'import requests
url = "https://api.techforgeinnovate.com/api/provider/projects/:projectId/mapping-fields"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.techforgeinnovate.com/api/provider/projects/:projectId/mapping-fields', 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.techforgeinnovate.com/api/provider/projects/:projectId/mapping-fields",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>"
],
]);
$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.techforgeinnovate.com/api/provider/projects/:projectId/mapping-fields"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
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.techforgeinnovate.com/api/provider/projects/:projectId/mapping-fields")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.techforgeinnovate.com/api/provider/projects/:projectId/mapping-fields")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"message": "<string>",
"data.projectId": "<string>",
"data.projectName": "<string>",
"data.projectType": "<string>",
"data.fields": {},
"data.fetchedAt": "<string>"
}API Reference
Get Project Mapping Fields
Return the input fields a project expects so you can build brand-safe payloads dynamically.
GET
/
api
/
provider
/
projects
/
:projectId
/
mapping-fields
Get Project Mapping Fields
curl --request GET \
--url https://api.techforgeinnovate.com/api/provider/projects/:projectId/mapping-fields \
--header 'x-api-key: <api-key>'import requests
url = "https://api.techforgeinnovate.com/api/provider/projects/:projectId/mapping-fields"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.techforgeinnovate.com/api/provider/projects/:projectId/mapping-fields', 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.techforgeinnovate.com/api/provider/projects/:projectId/mapping-fields",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>"
],
]);
$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.techforgeinnovate.com/api/provider/projects/:projectId/mapping-fields"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
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.techforgeinnovate.com/api/provider/projects/:projectId/mapping-fields")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.techforgeinnovate.com/api/provider/projects/:projectId/mapping-fields")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"message": "<string>",
"data.projectId": "<string>",
"data.projectName": "<string>",
"data.projectType": "<string>",
"data.fields": {},
"data.fetchedAt": "<string>"
}Get Project Mapping Fields
Returns the field map extracted from a project’s stored instructions. This is the endpoint to call before building thevalues object for POST /jobs/v2.
Path parameters
string
required
Project UUID returned by
GET /api/provider/projects/active.Example request
curl "https://api.techforgeinnovate.com/api/provider/projects/468ea7a0-66e1-4357-a760-236e54167f3e/mapping-fields" \
-H "x-api-key: $TFI_API_KEY"
Response
string
required
Returns
Success when the project exists and is accessible.string
required
Project UUID.
string
required
Human-readable project name.
string
required
Project workflow type.
object
required
Map keyed by field identifier. Each field contains a label and an optional
instructionType.string
required
ISO timestamp showing when the field map was generated.
{
"message": "Success",
"data": {
"projectId": "468ea7a0-66e1-4357-a760-236e54167f3e",
"projectName": "Spring campaign avatar video",
"projectType": "ai_talking_video",
"fields": {
"headline": {
"label": "Headline",
"instructionType": "text"
},
"voiceover": {
"label": "Voiceover",
"instructionType": "audio"
},
"avatar": {
"label": "Avatar",
"instructionType": "image"
}
},
"fetchedAt": "2026-04-16T12:00:00.000Z"
}
}
Status codes
200 OKwhen the project is found401 Unauthorizedwhen the key is missing or invalid404 Not Foundwhen the project does not belong to the authenticated account or no longer exists