i am trying to use the n8n api.
I have n8n running locally as a docker container.
the docker run command i used is
docker run -it --rm \
--name n8n \
-p 5678:5678 \
-v n8n_data:/home/node/.n8n \
docker.n8n.io/n8nio/n8n \
start --tunnel
I created an API key, and I tried with basic authentication, using the same user/password as for the ui.
The url i tried is the following
http://localhost:5678/api/v1/wortkflows?active=true
the message i get, both for Basic Auth and API Key
error 404: not found
{
"message": "not found"
}
Debug info
[details="instance information"]
# Debug info
## core
- n8nVersion: 1.76.3
- platform: docker (self-hosted)
- nodeJsVersion: 20.18.2
- database: sqlite
- executionMode: regular
- concurrency: -1
- license: community
- consumerId: unknown
## storage
- success: all
- error: all
- progress: false
- manual: true
- binaryMode: memory
## pruning
- enabled: true
- maxAge: 336 hours
- maxCount: 10000 executions
## client
- userAgent: mozilla/5.0 (macintosh; intel mac os x 10_15_7) applewebkit/537.36 (khtml, like gecko) chrome/132.0.0.0 safari/537.36
- isTouchDevice: false
Generated at: 2025-02-12T21:17:26.149Z
[/details]