Get a single record
To get a record, use an HTTP GET method with the records
API endpoint specifying the database name, layout, and record ID. You can also specify portal information to limit the number of related records that are returned.
HTTP method |
GET |
URL |
Format 1: /fmi/data/version/databases/database-name/layouts/layout-name/records/record-id Format 2: /fmi/data/version/databases/database-name/layouts/layout-name/records/record-id?portal=["portal-name-n", ...] &_offset.portal-name=starting-record &_limit.portal-name=number-of-records version – the FileMaker Data API version requested can use
database-name – the name of the hosted database layout-name – the name of the layout to use as the context for getting the record record-id – the record ID of the record to get For portals:
Other optional URL parameters:
|
HTTP header |
Authorization: Bearer session-token, where session-token is the unique X-FM-Data-Access-Token value for the database session |
Parameters | None |
Response |
The record data in JSON format and a messages array showing an error code of 0. For example: Copy
See Error responses. |