Guys i’m trying alot to get the right schema to create this google Gemini credential with n8n api , but i can’t do any progress…
When i use the “Get Schema” node, i’m getting this format
[
{
“additionalProperties”: false,
“type”: “object”,
“properties”: {
“host”: {
“type”: “string”
},
“apiKey”: {
“type”: “string”
}
},
“required”: [
“host”,
“apiKey”
]
}
]
i’m trying to change that in alot of ways like
{
“name”: “Google Gemini Credentials”,
“type”: “googlePalmApi”,
“data”: {
“host”: “https://generativelanguage.googleapis.com”,
“apiKey”: “xx”
}
}
or
[
{
“additionalProperties”: false,
“type”: “object”,
“properties”: {
“host”: {
“type”: “string”,
“host”: “https://generativelanguage.googleapis.com”
},
"apiKey": {
"type": "string",
"data": ""
}
},
"required": [
"host",
"apiKey"
]
}
]
or
[
{
“additionalProperties”: false,
“type”: “object”,
“properties”: {
“host”: {
“type”: “string”,
“data”: {
“token”: “https://generativelanguage.googleapis.com”
}
},
“apiKey”: {
“type”: “string”,
“data”: {
“token”: “xx”
}
}
},
“required”: [
“host”,
“apiKey”
]
}
]
or
[
{
“additionalProperties”: false,
“type”: “object”,
“properties”: {
“host”: {
“type”: “string”,
“data”: {
“host”: “https://generativelanguage.googleapis.com”
}
},
“apiKey”: {
“type”: “string”,
“data”: {
“apiKey”: “xx”
}
}
},
“required”: [
“host”,
“apiKey”
]
}
]
but i can’t get any positive response … someone can help me to get the correct format plz ?