POST: Create API Key
Endpoint:
POST http://api.blug.io/api/v1/auth/api-key/
Description
This endpoint is used to create a new API key for authentication.
Example Request
- cURL
curl --location --request POST 'http://api.blug.io/api/v1/auth/api-key/'
Example Response
201 Created
- Body
- Headers
{
"public_state": "ZstenhfPk.eVPLvAdystendDY6CrXoE8pWPg9WW",
"uuid": "8404e656-12d2-4f21-9e91-12c9f11d356b",
"created": "2024-12-11T01:31:29.131973+01:00"
}
{
"Content-Type": "application/json",
"Date": "Mon, 08 Jan 2025 14:00:00 GMT",
"Server": "WSGIServer/0.2 CPython/3.11.11",
"Vary": "Accept, origin",
"Allow": "GET, PUT, PATCH, DELETE, HEAD, OPTIONS",
"X-Frame-Options": "DENY",
"Content-Length": "1187",
"X-Content-Type-Options": "nosniff",
"Referrer-Policy": "same-origin",
"Cross-Origin-Opener-Policy": "same-origin",
}