Artboard
Data API Keys

Create a Data API Key

Create an OttoFMS Data API Key

This endpoint creates a Data API Key for the FileMaker file with the specified user and password. These credentials must have the fmrest privilege set for the file

POST
/otto/api/api-key

Request Body

application/json

POST /otto/api/api-key Request body

database*string

FileMaker File Name ending with .fmp12 or .fmp12.zip

Match.fmp12
label?string
Default"(no label)"
user*string
pass*string
returnExisting?boolean

If true, will return an existing key for this file

Defaultfalse
isDataApi?boolean
Defaulttrue
isOData?boolean
Defaultfalse

Response Body

application/json

application/json

curl -X POST "https://your.server.net/otto/api/api-key" \  -H "Content-Type: application/json" \  -d '{    "database": "string",    "user": "string",    "pass": "string"  }'
{
  "response": {
    "key": "string",
    "token": "string"
  },
  "messages": [
    {
      "code": 0.1,
      "text": "ok"
    }
  ]
}
{
  "response": {},
  "messages": [
    {
      "code": 18011,
      "text": "OttoFMS sample error"
    }
  ]
}