id → title. Handy for populating dropdowns and lookups.apikey header only (send your account API key). The Authorization: Bearer token is not used here.data.Listing is a flat object whose keys are record ids and whose values are the record titles (plain strings). There is no pagination, sorting, or free-text search.model values (case-sensitive):| Model | Returns |
|---|---|
Category | Categories, id → name |
InvoiceLayout | Invoice layouts, id → name |
GroupPrice | Price lists, id → name |
Role | Staff roles, id → name |
Timezone | Time zones, id → label |
Language | Active languages, id → Name (CODE) |
Project | Active projects, id → name |
TimeActivity | Active time activities, id → name |
DateFormats | Available date-format strings |
404 Invalid Endpoint.Category, InvoiceLayout, GroupPrice, and Role; ignored by the other models):fields — an array of exactly two field names, [keyField, valueField], that overrides which columns are used as the map key and value. Sending any number of elements other than two returns 400 Bad Request.conditions — a map of field: value filters applied to the query.curl --location --globoff 'https://.daftara.com/api2/listing/Role' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer ' \
--header 'apikey: ' \
--header 'Content-Type: application/json'{
"result": "successful",
"code": 200,
"data": {
"Listing": {
"1": "Consulting",
"2": "Design"
}
}
}