Skip to main content
GET
/
open-api-authorization
Get Access Token
curl --request GET \
  --url https://bounpkufhwhptqbktpfl.supabase.co/functions/v1/open-api-authorization
{
  "code": 123,
  "record": {
    "access_token": "<string>",
    "expires_in": 123
  },
  "timestamp": 123
}
Get an access token for making authenticated API requests. Access tokens are valid for 1 hour (3600 seconds). When a new token is requested, the old one is invalidated immediately.

Request

time
long
required
Unix timestamp in seconds (when request is sent)
account
string
required
User email address
password
string
required
Your Fleeticc account password
signature
string
required
MD5 hash = md5(md5(password) + time)

Signature Calculation

  1. Calculate md5(password) → password_hash
  2. Calculate md5(password_hash + time) → signature
  3. Use lowercase 32-character hex string

Example

// password = "ExamplePassword123" (your Fleeticc account password)
// time = 1609459200
// md5("ExamplePassword123") = "example123..." (example hash)
// md5("example123..." + "1609459200") = "example1234567890abcdef1234567890ab"

Request Example

curl "https://bounpkufhwhptqbktpfl.supabase.co/functions/v1/open-api-authorization?time=1609459200&account=example@example.com&password=ExamplePassword123&signature=example1234567890abcdef1234567890ab"

Response

code
number
Response code (0 = success)
record
object
access_token
string
Secure token for API authentication (valid for 1 hour)
expires_in
number
Token validity period in seconds (3600 = 1 hour)
timestamp
number
Unix timestamp

Success Response

{
  "code": 0,
  "record": {
    "access_token": "example_jwt_token_12345abcdefghijklmnopqrstuvwxyz",
    "expires_in": 3600
  },
  "timestamp": 1609459200
}

Rate Limits

5 authentication attempts per minute per account. Minimum interval: 12 seconds between attempts.

Error Codes

Query Parameters

time
integer<int64>
required

Unix timestamp in seconds (when request is sent)

account
string
required

User email address

password
string
required

Your Fleeticc account password

signature
string
required

MD5 hash = md5(md5(password) + time)

Response

Success

code
integer

Response code (0 = success)

record
object
timestamp
integer<int64>

Unix timestamp