Generate API Key

POST /v2/auth/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

Responses

  • 200

    OK

    Hide response attributes Show response attributes object
    • success boolean Required
    • message string
    • data object Required
      Hide data attributes Show data attributes object
      • jwt string Required
      • issued_at number Required
      • expires_at number Required
      • duration_seconds number Required
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
  }
}