Artboard
Admin API Keys

Create an Admin API Key

POST
/otto/api/admin-api-key

Create an OttoFMS Admin Api Key

This endpoint creates an Admin API Key for the FileMaker Server with the specified user and password. Pass expiresAt to have the key stop working (and be revoked) at that time; without it the key never expires.

Request Body

POST /otto/api/admin-api-key Request body

application/json
  1. body
expiresAt?string

When 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)))$
Formatdate-time
label?string
Default"(no label)"
pass*string
user*string

Response Body

POST /otto/api/admin-api-key Positive response

application/json
  1. response
messages*array<>
response*
Example Request
curl -X POST 'https://your.server.net/otto/api/admin-api-key' \  -H 'Content-Type: application/json' \  -d '{  "label": "OttoFMS Admin API Key",  "pass": "admin",  "user": "admin"}'
Example Response
{  "messages": [    {      "code": 0,      "text": "ok"    }  ],  "response": {}}

Was this page helpful?