Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor digamberpradhan

    (@digamberpradhan)

    Hi @tskalandadze

    I am assuming that you have successfully downloaded the typesense binary and also started the server. After the typesense server has been started you will need to make a curl request

    You can basically execute the commands stated herehttps://typesense.org/docs/0.22.2/api/api-keys.html#create-an-api-key and run them via your command line.

    For the search only API Key one change that needs to be made is to change collections to all

    curl 'https://localhost:8108/keys' \
        -X POST \
        -H "X-TYPESENSE-API-KEY: ${TYPESENSE_API_KEY}" \
        -H 'Content-Type: application/json' \
        -d '{"description":"Search-only companies key.","actions": ["documents:search"], "collections": ["*"]}'

    I hope this helps

    Plugin Contributor digamberpradhan

    (@digamberpradhan)

    @tskalandadze ,

    I haven’t heard back from you in a while, to that end – i am marking this ticket as solved for now – i hope you were able to get what you need. If not – please let me know.

    Thread Starter Ts.Kalandadze

    (@tskalandadze)

    @digamberpradhan Thank you very much for your response, I have not tried yet but I’ll let you know if I succeed or not. Thank You

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How do I generate API Key When using Typesense with WordPress on local machine?’ is closed to new replies.