Skip to content

Integrations

Meilisearch

Connect Meilisearch to Alter Vault for secure API access

Use Meilisearch credentials to make authenticated API calls through Alter Vault without exposing API keys in code.

PropertyValue
Template IDmeilisearch
CategorySearch
Credential TypeAPI Key

Log in to Meilisearch Cloud

Log in to Meilisearch Cloud and open the project.

Open API keys

Open Settings > API keys.

Copy a key

Copy the Default Search API Key (read) or Default Admin API Key (read/write).

Open the Developer Portal

Go to portal.alterauth.com and navigate to the application.

Add Meilisearch

Go to Managed Secrets > Add Provider > Meilisearch.

Enter credentials

Paste the API Key into the credential field.

Enter the deployment endpoint

Paste the Project URL. Copy it from the Meilisearch Cloud dashboard (or use a self-hosted instance’s HTTPS host). Alter derives this credential’s allowed hosts from that exact host, so proxied calls can only ever reach the deployment. The allowlist cannot be widened or edited separately; rotate the credential with a new endpoint to retarget it.

Save

Click Save. You’ll receive a grant_id to use with the SDK.

response = await alter_app.request(
HttpMethod.POST,
"https://YOUR-PROJECT.meilisearch.io/indexes/movies/search",
grant_id="YOUR_GRANT_ID",
json={"q": "interstellar", "limit": 5},
)

Alter policy rules can target these attested operations and families for operation-level and parameter-aware controls.

Operation IDFamiliesMethodProvider pathNotes
list_indexesreadGET/indexes—
get_indexreadGET/indexes/{indexUid}—
create_indexwritePOST/indexes—
update_indexwritePATCH/indexes/{indexUid}—
delete_indexdeleteDELETE/indexes/{indexUid}—
swap_indexeswritePOST/swap-indexes—
get_documentsreadGET/indexes/{indexUid}/documents—
get_documentreadGET/indexes/{indexUid}/documents/{documentId}—
documents_by_query_postreadPOST/indexes/{indexUid}/documents/fetch—
replace_documentswritePOST/indexes/{indexUid}/documents—
update_documentswritePUT/indexes/{indexUid}/documents—
edit_documents_by_functionwritePOST/indexes/{indexUid}/documents/edit—
delete_documentdeleteDELETE/indexes/{indexUid}/documents/{documentId}—
delete_documents_batchdeletePOST/indexes/{indexUid}/delete-batch—
delete_documents_by_filterdeletePOST/indexes/{indexUid}/documents/delete—
clear_all_documentsdeleteDELETE/indexes/{indexUid}/documents—
search_with_postreadPOST/indexes/{indexUid}/search—
search_with_url_queryreadGET/indexes/{indexUid}/search—
multi_search_with_postreadPOST/multi-search—
searchreadPOST/indexes/{indexUid}/facet-search—
similar_postreadPOST/indexes/{indexUid}/similar—
get_tasksreadGET/tasks—
get_taskreadGET/tasks/{taskUid}—
cancel_taskswritePOST/tasks/cancel—
delete_tasksdeleteDELETE/tasks—
list_api_keysreadGET/keysrefused by default: leaves the caller holding a provider credential (a credential_minting rule can allow it)
get_api_keyreadGET/keys/{uidOrKey}refused by default: leaves the caller holding a provider credential (a credential_minting rule can allow it)
create_api_keyadminPOST/keysrefused by default: leaves the caller holding a provider credential (a credential_minting rule can allow it)
patch_api_keyadminPATCH/keys/{uidOrKey}—
delete_api_keyadmin, deleteDELETE/keys/{uidOrKey}—
get_allreadGET/indexes/{indexUid}/settings—
update_allwritePATCH/indexes/{indexUid}/settings—
delete_allwriteDELETE/indexes/{indexUid}/settings—

Report an issue with this page

Necessary

Required for sign-in, security, authorization, and remembering your choices.

Always active

Analytics

Helps us understand which product and documentation features are useful.

Performance diagnostics

Uses performance tracing and privacy-masked session replay to diagnose problems.

You can change these choices at any time from Cookie settings.