Skip to main content
POST
/
api
/
spec_from_file
Spec Create From File
curl --request POST \
  --url https://app.apigene.ai/api/spec_from_file/ \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --form file='@example-file' \
  --form global_spec=false \
  --form shared_security_info=false \
  --form create_mcp=false
{
  "detail": [
    {
      "loc": [
        "<string>"
      ],
      "msg": "<string>",
      "type": "<string>"
    }
  ]
}

Authorizations

Authorization
string
header
required

JWT Authorization header using the Bearer scheme. Example: 'Authorization: Bearer {token}'

Body

multipart/form-data
file
file
required
global_spec
boolean
default:false
shared_security_info
boolean
default:false
create_mcp
boolean
default:false

Response

Successful Response