Data API Keys
Create a Data API Key (unauthenticated)
This special endpoint doesn't require OttoFMS authentication, allowing you to create API keys with only the FileMaker File credentials. This method doesn't support the returnExisting option, so it will always create a new key if the credentials are valid.
Request Body
application/json
POST /otto/api/api-key/create-only Request body
allowAnyDatabase?boolean
If true, this key can access any database on the server
database?string
(Legacy) Single database this key can access. Use 'databases' for multiple.
Match
.fmp12databases?array<>
List of database names this key can access
isDataApi?boolean
Default
trueisOData?boolean
label?string
Default
"(no label)"pass*string
user*string
Response Body
application/json
application/json
curl -X POST "https://your.server.net/otto/api/api-key/create-only" \ -H "Content-Type: application/json" \ -d '{ "pass": "string", "user": "string" }'{
"messages": [
{
"code": 0,
"text": "ok"
}
],
"response": {}
}{
"messages": [
{
"code": 18011,
"text": "OttoFMS sample error"
}
],
"response": {}
}