Generate API Key
This endpoint will generate a new API Key for the user, which can be used with boto3.
Body
-
duration_seconds
number -
expires_at
number
POST
/v2/auth/generate-api-key
curl \
-X POST https://yourcrowd.ai.moda/api/v2/auth/generate-api-key \
--cookie "yourcrowd-auth-token=$API_KEY" \
-H "Content-Type: application/json" \
-d '{"duration_seconds":42.0,"expires_at":42.0}'
Request example
{
"duration_seconds": 42.0,
"expires_at": 42.0
}
Request examples
{
"duration_seconds": 42.0,
"expires_at": 42.0
}
Response examples (200)
{
"success": true,
"message": "string",
"data": {
"jwt": "string",
"issued_at": 42.0,
"expires_at": 42.0,
"duration_seconds": 42.0
}
}
Response examples (200)
{
"success": true,
"message": "string",
"data": {
"jwt": "string",
"issued_at": 42.0,
"expires_at": 42.0,
"duration_seconds": 42.0
}
}