Docs · GET /directory
Reference · Directories

GET/directory

Lists your account’s directories that have not expired. With a new key it is also the quickest way to check that the key works.

Request body

This request has no body.

Example

Request
curl https://media.logicboostkit.com/directory \
  -H "Authorization: Basic $MEDIA_KEY"
Response
HTTP/1.1 200 OK
X-Request-Id: job_0mv6io8lccjzfdcme0rft6oj

{
  "ok": true,
  "directories": [
    {
      "id": "dir_pi23jgy1yxlmigi873bz",
      "ttl": 86400,
      "added_on": "2026-10-13T09:41:07.214Z"
    },
    {
      "id": "dir_m8papv92jrn8rx6186g8",
      "ttl": 3600,
      "added_on": "2026-10-13T10:05:40.019Z"
    }
  ]
}

Response fields

Response fields
okbooleantrue.
directories[]arrayOne entry per directory. Empty when there are none.
directories[].idstringThe directory’s id.
directories[].ttlnumberIts lifetime in seconds, counted from added_on.
directories[].added_onstringWhen it was created, in UTC.

Status codes

Status codes
200The list. Not charged.
401The Authorization header is missing, or the key is invalid, revoked or expired.
403The account isn’t active. The error says what to do.
429More than 300 requests in a minute on this key. Wait for the number of seconds in Retry-After.

Every error has the shape {"ok": false, "error": "…"} and is never charged.