Usage examples
Sentences that show how a term is used — or must not be used.
Base URL
https://api.lexeri.comAuthenticationBearer tokenFormatJSONEndpoints of this resource
GET/terms/:identifier/usage_examples
List the usage examples of a term
Path parameters
identifierstring · uuidrequired- Identifier of the term.
Responses
- 200 OKThe usage examples.
- 401 UnauthorizedThe token is missing, invalid, expired or revoked, its user has no access to the termbase any more, or it lacks the required scope.
- 404 Not FoundNot found in the token's termbase.
Fields of each item (7)
identifierstring · uuidrequiredtextstringrequired- The example sentence.
sourcestring | null- Where the sentence comes from, as free text.
sourcesobject[]6 fields
identifierstringrequiredtypestringrequired- Allowed values:
text,link,reference_document textstring | nulllinkstring | nullmetadataobject | null- E.g. the
pageof a reference document. reference_documentobject | null- The reference document cited.
userobject | null- Who added it.
6 fields
identifierstring · uuidrequirednamestringrequiredfirst_namestring | nulllast_namestring | nullemailstring | nullimage_urlstring | null- URL of the user's avatar.
created_atstring · date-timerequiredupdated_atstring · date-time
curl https://api.lexeri.com/terms/284fdf93-6cb5-4bed-b2d3-d3d530e97511/usage_examples \ -H "Authorization: Bearer $LEXERI_API_TOKEN"[ { "identifier": "d7fe5877-8014-4895-8ff6-be9f89dcbfd6", "text": "Die Luftdichtheit der Gebäudehülle wird mit dem Blower-Door-Test gemessen.", "source": "Planungshandbuch, S. 12", "sources": [], "user": { "identifier": "ecb20516-ae20-44bf-8c91-0503fa7bd59a", "email": "anna.berger@example.com", "first_name": "Anna", "last_name": "Berger", "name": "Anna Berger", "image_url": "https://www.gravatar.com/avatar/00000000000000000000000000000000?d=identicon&s=300" }, "created_at": "2026-10-11T20:19:09.505Z", "updated_at": "2026-10-11T20:19:09.505Z" }]POST/terms/:identifier/usage_examples
Add a usage example to a term
Required scope:edit_terms
Path parameters
identifierstring · uuidrequired- Identifier of the term.
Body parameters · JSON
textstringrequired- The example sentence.
sourcestring- Where the sentence comes from.
Responses
- 201 CreatedThe new usage example.
- 401 UnauthorizedThe token is missing, invalid, expired or revoked, its user has no access to the termbase any more, or it lacks the required scope.
- 404 Not FoundNot found in the token's termbase.
- 406 Not AcceptableA required parameter is missing or empty.
Fields of the response (7)
identifierstring · uuidrequiredtextstringrequired- The example sentence.
sourcestring | null- Where the sentence comes from, as free text.
sourcesobject[]6 fields
identifierstringrequiredtypestringrequired- Allowed values:
text,link,reference_document textstring | nulllinkstring | nullmetadataobject | null- E.g. the
pageof a reference document. reference_documentobject | null- The reference document cited.
userobject | null- Who added it.
6 fields
identifierstring · uuidrequirednamestringrequiredfirst_namestring | nulllast_namestring | nullemailstring | nullimage_urlstring | null- URL of the user's avatar.
created_atstring · date-timerequiredupdated_atstring · date-time
curl -X POST https://api.lexeri.com/terms/284fdf93-6cb5-4bed-b2d3-d3d530e97511/usage_examples \ -H "Authorization: Bearer $LEXERI_API_TOKEN" \ -H "Content-Type: application/json" \ -d '{ "text": "Die Luftdichtheit der Gebäudehülle wird mit dem Blower-Door-Test gemessen.", "source": "Planungshandbuch, S. 12" }'{ "identifier": "d7fe5877-8014-4895-8ff6-be9f89dcbfd6", "text": "Die Luftdichtheit der Gebäudehülle wird mit dem Blower-Door-Test gemessen.", "source": "Planungshandbuch, S. 12", "sources": [], "user": { "identifier": "ecb20516-ae20-44bf-8c91-0503fa7bd59a", "email": "anna.berger@example.com", "first_name": "Anna", "last_name": "Berger", "name": "Anna Berger", "image_url": "https://www.gravatar.com/avatar/00000000000000000000000000000000?d=identicon&s=300" }, "created_at": "2026-10-11T20:19:09.505Z", "updated_at": "2026-10-11T20:19:09.505Z"}DELETE/terms/:term_identifier/usage_examples/:identifier
Delete a usage example
Required scope:edit_terms
Path parameters
term_identifierstring · uuidrequired- Identifier of the term.
identifierstring · uuidrequired- Identifier of the usage example.
Responses
- 204 No ContentDeleted.
- 401 UnauthorizedThe token is missing, invalid, expired or revoked, its user has no access to the termbase any more, or it lacks the required scope.
- 404 Not FoundNot found in the token's termbase.
curl -X DELETE https://api.lexeri.com/terms/284fdf93-6cb5-4bed-b2d3-d3d530e97511/usage_examples/d7fe5877-8014-4895-8ff6-be9f89dcbfd6 \ -H "Authorization: Bearer $LEXERI_API_TOKEN"