Overview
GET
/project/projects/{id}/fieldsprojectList a project's custom fields (by position)
Fetch a record from fields by id.
Auth: bearerAuth — calls run as the authenticated user.
Parameters
- idpathstring
Responses
200
Fields
- idstring
- ecosystemIdstring
- projectIdstring
- keystring
stable identifier, unique within the project
- labelstring
- type"text" | "number" | "date" | …
- optionsoptionalstring[]?
the choices for a select field (non-empty); null for every other type
- positioninteger
field order (ascending)
- createdAtstring
Example
[
{
"id": "string",
"ecosystemId": "string",
"projectId": "string",
"key": "string",
"label": "string",
"type": "text",
"options": [
"string"
],
"position": 0,
"createdAt": "string"
}
]401
Error
- erroroptionalobject
Example
{
"error": {
"message": "string",
"code": "string"
}
}404
Error
- erroroptionalobject
Example
{
"error": {
"message": "string",
"code": "string"
}
}Code examples
cURL
curl -X GET "https://api.agenticdeveloperhub.com/project/projects/{id}/fields" \
-H "Authorization: Bearer YOUR_TOKEN"JavaScript
const res = await fetch("https://api.agenticdeveloperhub.com/project/projects/{id}/fields", {
method: "GET",
headers: {
"Authorization": "Bearer YOUR_TOKEN"
},
});
const data = await res.json();