Hello, does anyone know how to create an API key f...
# community-help
a
Hello, does anyone know how to create an API key for the scrapper ? I cant find anything about this, I think everyone is using the admin API key but I want to avoid that if it's possible. So i'm wondering how a create a token that works for the scrapper with limited permissions, with access to just 1 or 2 collections for instance. I already tried this, from a topics I found, but it does not seem to be enough :
Copy code
curl '<http://localhost:8108/keys>' \
    -X POST \
    -H "X-TYPESENSE-API-KEY: MyMainApiKey" \
    -H 'Content-Type: application/json' \
    -d '{"description":"API for the scrapper","actions": ["aliases:get", "aliases:upsert", "aliases:create", "collections:delete", "collections:create", "documents:import"], "collections": ["docs","docsDev"]}'