Greenbone Cloud API Query

Hi,
I want to know, how to get the JWT token in OpenVas API.
The current API documentation, I’m using this - https://mgmt.greenbone.cloud/api/doc/swagger-ui/index.html

please help me, i’ll be grateful!!

Hey @Harsh,

you will find some examples in this repro: https://github.com/greenbone/cloud-api-examples
Maybe this helps already?

greets,
Benjamin

1 Like

thank you for your reply!!

I’m using this API , but getting 415 error -

https://app.greenbone.cloud/auth/realms/{realmId}/protocol/openid-connect/token

Hi @benjamin.hoener,

it’s asking for code param, what will be the value in code key?
{
“error”: “invalid_request”,
“error_description”: “Missing parameter: code”
}