Skip to main content

Enabling Data API proxy

Otto provides a proxy over the FileMaker Server Data API. A “proxy” is a wrapper around another service that provides additional features.

Additional features

Otto's proxy service provides two additional features:

  1. API Keys: Easily get long-lived API Tokens that you can use in place of session tokens to authenticate to the API. Behind the scenes, Otto saves the token and will login as needed to get a fresh token.
  2. Access from Browsers: The FileMaker Data API does not allow you to call JavaScript running in a browser, to connect through to the API. This Proxy will let you do that.

Enabling the proxy

You can toggle the Proxy on and off using Otto's web console at https://<ottoserver.net>:3030/app/apikeys

Differences with the FileMaker Data API

There are three differences between using the proxy and the regular Data API endpoint. Otherwise, the FileMaker Data API documentation should apply to the proxy. Please let us know if you find behavior that does not match.

  1. Different Port - Use Otto's Port to access the URLs that the data API provides. By default that port is 3030. For example, notice the '3030' in the second line below. Everything else is the same.

    (server)/fmi/data/vLatest/databases/:database/layouts/:layout/records
    (server):3030/fmi/data/vLatest/databases/:database/layouts/:layout/records
  2. Creating an API Key** - You do this by logging into the route below, instead of the normal FileMaker Data API login route.

    //Instead of logging into
    (server)/fmi/data/vLatest/databases/:database/sessions
    //login to
    (server):3030/fmi/data/vLatest/databases/:database/apikey
  3. Delete an API key

    //Instead of deleting a token at
    (server)/fmi/data/v1/databases/:database/sessions/session
    //delete the ApiKey at this url
    (server):3030/fmi/data/vLatest/databases/:database/apikey/apikey

Managing API keys

You can use the API noted above to manage your API Keys.

Creating an API key

We have created this FileMaker file that you can use to create API keys.

Delete a key

Otto's web console provides a simple way to delete your API keys. Navigate to https://<ottoserver.net>:3030/app/apikeys There, you will see a list of your API Keys. You can delete them by clicking the Delete button next to the key.

Where to delete keys

You can also list keys and delete keys through the Developer API