Data API Keys
Create a Data API Key (File Credentials)
POST
This endpoint creates a Data API Key using FileMaker file credentials without an Admin API Key. These credentials must have the fmrest and/or fmodata privilege set for Data API or OData access.
POST /otto/api/api-key/create-only Request body
application/json- body
database?string(Legacy) Single database this key can access. Required when 'databases' is omitted or empty. Use 'databases' for multiple files.
Match
.fmp12databases?array<>List of database names this key can access. Provide at least one database using 'database' or 'databases'. Credentials must be valid for every listed file.
expiresAt?stringWhen the key expires (ISO 8601). After this time the key is rejected and revoked. Omit for a key that never expires.
Match
^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z|([+-](?:[01]\d|2[0-3]):[0-5]\d)))$Format
date-timeisDataApi?booleanDefault
trueisOData?booleanDefault
falselabel?stringDefault
"(no label)"pass*stringLength
1 <= lengthuser*stringLength
1 <= lengthPOST /otto/api/api-key/create-only Positive response
application/json- response
messages*array<>response*curl -X POST 'https://your.server.net/otto/api/api-key/create-only' \ -H 'Content-Type: application/json' \ -d '{ "pass": "string", "user": "string"}'Example Response
{ "messages": [ { "code": 0, "text": "ok" } ], "response": {}}Was this page helpful?