API Access

Integrate with our REST API for advanced use cases.

10 min read
Features

Overview

The Flamy API allows you to:

  • Read your profile data
  • Manage your links programmatically
  • Access analytics data
  • Apply templates to your profile

Authentication

All API requests require an API key. Generate one at Dashboard → API Access.

API Key Format

API keys start with the prefix ezx_ followed by 64 hexadecimal characters:

ezx_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Using Your Key

Include your API key in the Authorization header:

bash
curl -X GET "https://api.flamy.lol/v1/profile" \
  -H "Authorization: Bearer ezx_your_api_key_here"

Rate Limits

Rate limits vary by subscription tier:

TierRequests/Hour
Free1,000
Pro5,000
Creator10,000
Lifetime10,000

API Key Limits

The number of active API keys you can create depends on your tier:

TierActive Keys
Free2
Pro5
Creator10
Lifetime10

Rate Limit Headers

Every response includes rate limit information:

X-RateLimit-Limit: 1000
X-RateLimit-Remaining: 999
X-RateLimit-Reset: 1706140800

Endpoints

Base URL: `$ api.flamy.lol/v1`

Get Profile

http
GET /v1/profile

Returns your profile information including bio, avatar, and settings.

http
GET /v1/links

Returns all your links with their settings.

ParametersTypeDescription
limitnumberMax results (default: 50)
offsetnumberPagination offset
activebooleanFilter by active status
http
POST /v1/links

Creates a new link on your profile.

http
PATCH /v1/links/:id

Updates an existing link.

http
DELETE /v1/links/:id

Permanently deletes a link.

Get Analytics

http
GET /v1/analytics

Returns analytics data for your profile.

ParametersTypeDescription
periodstringTime period: 7d, 30d, 90d, 1y
metricstringMetric type: views, clicks, all

Permissions

When creating an API key, you can configure granular permissions:

PermissionAccess
profile:readRead profile data
profile:writeUpdate profile settings
links:readList and view links
links:writeCreate and update links
links:deleteDelete links
analytics:readAccess analytics data
templates:readList available templates
templates:applyApply templates to profile

Error Codes

CodeHTTP StatusDescription
UNAUTHORIZED401Invalid or missing API key
FORBIDDEN403Insufficient permissions for this action
NOT_FOUND404Requested resource not found
RATE_LIMIT_EXCEEDED429Too many requests, please slow down
VALIDATION_ERROR400Invalid request parameters
INTERNAL_ERROR500Server error, please try again

More Information

For interactive examples and detailed response schemas, check out our API Reference.