Elly API
  1. API Keys
Elly API
  • API Keys
    • Get current API key details
      GET
    • Get current API key usage statistics
      GET
    • List all API keys
      GET
    • Create a new API key
      POST
    • Revoke an API key
      DELETE
  • Transactions
    • List transactions
      GET
    • Create transaction
      POST
    • Get transaction details
      GET
    • Update transaction
      PATCH
    • Delete transaction
      DELETE
    • Bulk update transactions
      POST
  • Bank Accounts
    • List bank accounts
      GET
    • Create bank account
      POST
    • Get bank account details
      GET
    • Update bank account
      PATCH
    • Delete bank account
      DELETE
    • Get bank account transactions
      GET
  • Statements
    • List bank statements
      GET
    • Upload bank statement file
      POST
    • Get statement details
      GET
    • Get statement transactions
      GET
  • Categories
    • List categories
      GET
  • Reports
    • Cash flow report
      GET
    • Financial summary report
      GET
  • Companies
    • Get company details
  • Schemas
    • TransactionStatus
    • AccountingCategory
    • CashFlowCategory
    • AccountType
    • AccountStatus
    • StatementStatus
    • ApiScope
    • ApiKey
    • Transaction
    • TransactionListResponse
    • TransactionResponse
    • TransactionDetailResponse
    • CreateTransactionRequest
    • UpdateTransactionRequest
    • BulkUpdateRequest
    • BankAccount
    • BankAccountListResponse
    • CreateBankAccountRequest
    • UpdateBankAccountRequest
    • CreateStatementRequest
    • CreateStatementUpload
    • Pagination
    • Error
  1. API Keys

Create a new API key

POST
/api-keys
API Keys
Create a new API key for the company.
Authentication: Requires JWT authentication with api_keys scope.
Important: The full API key is only shown once upon creation.
Store it securely - it cannot be retrieved later.

Request

Authorization
API Key
Add parameter in header
X-API-Key
Example:
X-API-Key: ********************
or
JWT Bearer
Add the parameter
Authorization
to Headers
Example:
Authorization: ********************
or
Body Params application/jsonRequired

Examples

Responses

🟢201
application/json
API key created successfully
Body

🟠400BadRequest
🟠401Unauthorized
🟠403Forbidden
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://gvazyknvkqdeuzmrnuwu.supabase.co/functions/v1/api-keys' \
--header 'X-API-Key: <api-key>' \
--header 'Content-Type: application/json' \
--data-raw '{
    "name": "Production Integration",
    "description": "Main ERP integration key",
    "scopes": [
        "read",
        "write",
        "transactions",
        "accounts",
        "statements",
        "reports"
    ],
    "expires_in_days": 365
}'
Response Response Example
201 - Success
{
    "success": true,
    "data": {
        "id": "550e8400-e29b-41d4-a716-446655440000",
        "name": "Production Integration",
        "description": "Main ERP integration key",
        "key_prefix": "elly_abc1234",
        "api_key": "elly_abc1234_defghijklmnopqrstuvwxyzabcdefgh",
        "scopes": [
            "read",
            "write",
            "transactions",
            "accounts",
            "statements",
            "reports"
        ],
        "expires_at": "2026-01-15T10:30:00Z",
        "created_at": "2025-01-15T10:30:00Z"
    }
}
Modified at 2025-12-30 00:32:05
Previous
List all API keys
Next
Revoke an API key
Built with