إنتقل إلى المحتوى الرئيسي

مصادقة API

All API v2 requests require authentication via Bearer token.


كيف يعمل

  1. Generate an API key in الإعدادات > API Keys
  2. Include it in the Authorization header of every request:
Authorization: Bearer YOUR_API_KEY_HERE

Example (cURL)

curl -X GET "https://yourdomain.com/api/v2/submissions" \
-H "Authorization: Bearer fp_key_abc123xyz789" \
-H "Accept: application/json"

Example (JavaScript)

const response = await fetch('https://yourdomain.com/api/v2/submissions', {
headers: {
'Authorization': 'Bearer fp_key_abc123xyz789',
'Accept': 'application/json',
'Content-Type': 'application/json'
}
});
const data = await response.json();

Example (PHP)

$client = new \GuzzleHttp\Client();
$response = $client->get('https://yourdomain.com/api/v2/submissions', [
'headers' => [
'Authorization' => 'Bearer fp_key_abc123xyz789',
'Accept' => 'application/json',
]
]);
$data = json_decode($response->getBody(), true);

Example (Python)

import requests

headers = {
'Authorization': 'Bearer fp_key_abc123xyz789',
'Accept': 'application/json'
}

response = requests.get('https://yourdomain.com/api/v2/submissions', headers=headers)
data = response.json()

الأمان

FeatureDetail
StorageKeys are SHA256 hashed in the database
ScopingKeys are scoped to a specific tenant
Trackinglast_used_at timestamp is updated on every use
ExpirationKeys can have optional expiration dates
RevocationKeys can be revoked instantly from الإعدادات

API Key Management

ActionHow
Createالإعدادات > API Keys > Create New Key
ViewSee key name, creation date, last used date
RevokeClick Revoke to permanently disable a key
تحذير

The full key is only shown once when created. Store it securely. If lost, revoke and create a new one.


الخطوات التالية