English
cURL
curl --request POST \ --url https://geekai.dev/api/v1/api_keys \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "name": "geekai", "group": "balance", "credit_limit": 10000, "expired_at": "2025-12-31" }'
{ "data": { "uuid": "<string>", "name": "<string>", "value": "<string>", "raw_value": "<string>", "group": { "name": "<string>", "alias": "<string>", "desc": "<string>" }, "credit_limit": 123, "credit_used": 123, "expired_at": "2023-12-25", "expired": true, "status": true, "last_used_at": "2023-11-07T05:31:56Z", "created_at": "2023-11-07T05:31:56Z" }, "message": "<string>" }
Creates a new API key via the API.
Note: Calling this endpoint requires an existing API key. Generally, you can use the API key that was automatically generated during registration.
token
Success
The response is of type object.
object