Get database names

To retrieve the database names for all databases that are hosted and enabled for access via FileMaker Data API, use an HTTP GET method with the databases API endpoint.

HTTP method

GET

URL

Format: fmi/data/version/databases

version – the FileMaker Data API version requested can use v1, v2, or vLatest

HTTP header

The Authorization header is dependent on the Filter Databases in Client Applications setting in Admin Console.

  • If Filter Databases in Client Applications is enabled:

    Authorization: a base64-encoded string representing the account name and password to use to log in to the hosted database. This base64-encoded string should follow the standard HTTP Basic Authentication Scheme. (The account name and password are separated by a colon.)

  • If Filter Databases in Client Applications is disabled, no Authorization header is required.

Parameters None
Response

A databases array listing the database names, and a messages array showing an error code of 0.

For example:

Copy
{
    "response": {
        "databases": [{
            "name": "Customers"
        }, {
            "name": "Sales"
        }]
    },
    "messages": [{
        "code": "0",
        "message": "OK"
    }]
}

See Error responses.