Appearance
Fields
APIs for managing custom fields in your Lindris account.
As a reminder, all requests must be authenticated and use the base URL: https://api.lindris.com
List fields in alphabetical order
GETapi/fieldsRequest
bash
curl --request GET \
--get "https://api.lindris.com/api/fields" \
--header "Authorization: Bearer {YOUR_API_KEY}" \
--header "Content-Type: application/json"php
$client = new \GuzzleHttp\Client();
$url = 'https://api.lindris.com/api/fields';
$response = $client->get(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_API_KEY}',
'Content-Type' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));javascript
const url = new URL(
"https://api.lindris.com/api/fields"
);
const headers = {
"Authorization": "Bearer {YOUR_API_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Response
json
{
"data": [
{
"id": 1,
"name": "fullName"
},
{
"id": 2,
"name": "shirtSize"
}
]
}