GET
/records/{recordId}The path doesn't name the object, because record IDs are unique. The answer says which object the record belongs to.
curl --fail-with-body "$JEMERO_URL/records/$RECORD_ID" \
-H "Authorization: Bearer $JEMERO_API_KEY"const response = await fetch(
`${process.env.JEMERO_URL}/records/${process.env.RECORD_ID}`,
{ headers: { Authorization: `Bearer ${process.env.JEMERO_API_KEY}` } },
);
if (!response.ok) throw new Error(`${response.status} ${await response.text()}`);
const { record, objectSlug } = await response.json();
console.log(objectSlug, record.values);import os
import requests
response = requests.get(
f"{os.environ['JEMERO_URL']}/records/{os.environ['RECORD_ID']}",
headers={"Authorization": f"Bearer {os.environ['JEMERO_API_KEY']}"},
timeout=30,
)
response.raise_for_status()
body = response.json()
print(body["objectSlug"], body["record"]["values"]){
"record": {
"id": "e1b83a4a-1363-4d45-a755-981a448cb410",
"displayValue": "Grace Hopper",
"values": {
"name": "Grace Hopper",
"email": { "primaryEmail": "grace@globex.example", "additionalEmails": [] },
"company": {
"id": "84dc4b91-e114-4f52-97f1-8fa7cee37687",
"displayValue": "Globex",
"objectSlug": "companies",
"imageUrl": null
}
},
"deletedAt": null,
"canEdit": true,
"canDelete": true
},
"objectSlug": "people"
}The record has the same properties as in List records; this example is shortened. Each relation holds at most 50 linked records here.
A record in the trash can still be read. Its deletedAt is set.
Errors#
| Status | Cause |
|---|---|
404 Record not found | No such record in this workspace, the ID isn't a UUID, your role can't view it, or it was permanently destroyed. |