fishbowlAPI API

Check Rate Limit

Returns your current rate limit status including remaining tokens, token limit, and retry-after timestamp. Does not consume any rate limit tokens.

OpenAPI definition

{
  "openapi": "3.1.0",
  "info": {
    "title": "Fishbowl Public API",
    "version": "1.0",
    "description": "The Fishbowl Public API provides programmatic access to manage guests, loyalty programs, subscriptions, tags, and more within the Fishbowl GRM platform."
  },
  "servers": [
    {
      "url": "https://api.fishbowl.com"
    }
  ],
  "components": {
    "securitySchemes": {
      "ApiKeyAuth": {
        "type": "apiKey",
        "in": "header",
        "name": "X-API-Key",
        "description": "Your Fishbowl API key for authentication and rate limiting."
      }
    },
    "parameters": {
      "ClientUuid": {
        "name": "X-Delightable-Client-Uuid",
        "in": "header",
        "required": true,
        "description": "Identifies the client context.",
        "schema": {
          "type": "string",
          "format": "uuid"
        }
      }
    },
    "schemas": {
      "ApiResponse": {
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean"
          },
          "message": {
            "type": "string"
          },
          "data": {},
          "errors": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "error_code": {
            "type": "integer",
            "nullable": true
          },
          "total": {
            "type": "integer",
            "nullable": true
          },
          "cache_hit": {
            "type": "boolean"
          }
        }
      },
      "RateLimitInfo": {
        "type": "object",
        "properties": {
          "uuid": {
            "type": "string"
          },
          "id": {
            "nullable": true
          },
          "type": {
            "type": "string",
            "example": "rateLimit"
          },
          "attributes": {
            "type": "object",
            "properties": {
              "remainingTokens": {
                "type": "integer"
              },
              "retryAfter": {
                "type": "integer",
                "description": "Unix timestamp"
              },
              "tokenLimit": {
                "type": "integer"
              }
            }
          },
          "meta": {
            "type": "object",
            "properties": {
              "timestamps": {
                "type": "object",
                "properties": {
                  "created": {
                    "nullable": true
                  },
                  "modified": {
                    "nullable": true
                  }
                }
              },
              "authors": {
                "type": "object",
                "properties": {
                  "creator": {
                    "nullable": true
                  },
                  "modifier": {
                    "nullable": true
                  }
                }
              }
            }
          },
          "relationships": {
            "nullable": true
          }
        }
      }
    }
  },
  "security": [
    {
      "ApiKeyAuth": []
    }
  ],
  "tags": [
    {
      "name": "Getting Started",
      "description": "API access verification and rate limit information."
    }
  ],
  "paths": {
    "/api/public/request/limit": {
      "get": {
        "summary": "Check Rate Limit",
        "description": "Returns your current rate limit status including remaining tokens, token limit, and retry-after timestamp. Does not consume any rate limit tokens.",
        "operationId": "checkRateLimit",
        "tags": [
          "Getting Started"
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/ClientUuid"
          }
        ],
        "responses": {
          "200": {
            "description": "Current rate limit status.",
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/ApiResponse"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "data": {
                          "$ref": "#/components/schemas/RateLimitInfo"
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        }
      }
    }
  }
}