Log out of a database session
When your code is done accessing the hosted database, use an HTTP DELETE method with the sessions
API endpoint specifying the name of the hosted database and the access token for the session. If your code does not log out of the database session, the access token becomes invalid when the FileMaker Data API session times out 15 minutes after the last call that specified the token.
HTTP method |
DELETE |
URL |
/fmi/data/version/databases/database-name/sessions/session-token version – the FileMaker Data API version requested can use database-name – the name of the hosted database session-token – the X-FM-Data-Access-Token for the database session |
HTTP header |
Content-Type: application/json |
Parameters | None |
Response |
An empty response body, and a messages array showing an error code of 0. For example: Copy
See Error responses. |