Skip to content

Find which workspace and database a record is in from its id alone, so a link that carries only the record id can be opened. Session only. 404 for an unknown id, a trashed record and a record you cannot read alike.

GET
/api/v1/records/{recordId}/locate
curl --request GET \
--url https://example.com/api/v1/records/example/locate \
--header 'Authorization: Bearer <token>'
recordId
required
string
Media typeapplication/json
object
workspace_id
required
string format: uuid
/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/
database_id
required
string format: uuid
/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/
record_id
required
string format: uuid
/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/
Examplegenerated
{
"workspace_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0",
"database_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0",
"record_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"
}