For the complete documentation index, see llms.txt. This page is also available as Markdown.

Variables

Operations about variables

Retrieve variables

get

Retrieve variables from your instance.

Authorizations
X-N8N-API-KEYstringRequired
Query parameters
limitnumber · max: 250Optional

The maximum number of items to return.

Default: 100Example: 100
cursorstringOptional

Paginate by setting the cursor parameter to the nextCursor attribute returned by the previous request's response. Default value fetches the first "page" of the collection. See pagination for more detail.

projectIdstringOptionalExample: VmwOO9HeTEj20kxM
statestring · enumOptionalPossible values:
Responses
200

Operation successful.

application/json
nextCursorstring · nullableOptional

Paginate through variables by setting the cursor parameter to a nextCursor attribute returned by a previous request. Default value fetches the first "page" of the collection.

Example: MTIzZTQ1NjctZTg5Yi0xMmQzLWE0NTYtNDI2NjE0MTc0MDA
get/variables

Create a variable

post

Create a variable in your instance.

Authorizations
X-N8N-API-KEYstringRequired
Body
idstringRead-onlyOptional
keystringRequired
valuestringRequiredExample: test
typestringRead-onlyOptional
projectIdstring · nullableOptionalExample: VmwOO9HeTEj20kxM
Responses
201

Operation successful.

No content

post/variables

No content

Update a variable

put

Update a variable from your instance.

Authorizations
X-N8N-API-KEYstringRequired
Path parameters
idstringRequired

The ID of the variable.

Body
idstringRead-onlyOptional
keystringRequired
valuestringRequiredExample: test
typestringRead-onlyOptional
projectIdstring · nullableOptionalExample: VmwOO9HeTEj20kxM
Responses
204

Operation successful.

No content

put/variables/{id}

No content

Delete a variable

delete

Delete a variable from your instance.

Authorizations
X-N8N-API-KEYstringRequired
Path parameters
idstringRequired

The ID of the variable.

Responses
204

Operation successful.

No content

delete/variables/{id}

No content

Last updated

Was this helpful?