Skip to content
Developers

    Key

    Get the API key's scopes

    Markdown
    GEThttps://api.tiktornado.com/api/v1/key

    Scope: none

    Answers the scopes of the API key that made the request. Use it to check that a key works. It needs no scope.

    Example request

    curl 'https://api.tiktornado.com/api/v1/key' \
      -H "Authorization: Bearer $TIKTORNADO_API_KEY"

    Response 200

    The key works.

    • scopesarray of stringsRequired

      What this key may do.

      Each: One of posts:write, posts:read, stats:read, accounts:read, comments:read, comments:write.

    Example
    {
      "scopes": [
        "accounts:read",
        "posts:read",
        "posts:write",
        "stats:read"
      ]
    }

    Errors

    StatusReasonMessage
    401api_key_invalid

    This API key isn't valid. Check it, or create a new one in the app.

    403access_locked

    Your subscription isn't active, so this can't be changed right now. Visit Billing to fix it.

    429slow_down

    You're going a bit fast. Wait a moment and try again.

    500unknown_error

    Something went wrong on our side. We're on it.

    503service_unavailable

    Something went wrong on our side. We're on it.