The Account Information API allows you to retrieve information about your API key and associated developer account.
Get information about the current API key and associated developer account.
Example Request
curl -X GET https://dhmad.tn/api/v1/me \
-H "Authorization: Bearer sk_live_your_api_key_here" \
-H "Content-Type: application/json"
Example Response
{
"apiKey": {
"id": "507f1f77bcf86cd799439011",
"name": "Production API Key",
"keyPrefix": "sk_live_abc123",
"environment": "live",
"isActive": true,
"lastUsedAt": "2024-01-15T10:30:00Z",
"expiresAt": null,
"rateLimit": 100,
"metadata": {
"appName": "My Application",
"website": "https://example.com"
},
"createdAt": "2024-01-01T00:00:00Z"
},
"developer": {
"id": "507f1f77bcf86cd799439012",
"email": "dev@example.com",
"companyName": "Example Corp"
}
}
Response Fields
Use this endpoint to verify your API key is working correctly and to get information about your developer account.