Skip to content

Reference

Typesense

Connect Typesense to Alter Vault for secure API access

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

PropertyValue
Provider IDtypesense
CategorySearch
Credential TypeAPI Key

Log in to Typesense Cloud

Log in to Typesense Cloud and open the cluster.

Generate a key

Open API Keys and generate a key — use a scoped search-only key when the integration only reads.

Copy the key

Copy the key — it is only shown once.

Open the Developer Portal

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

Add Typesense

Go to Managed Secrets > Add Provider > Typesense.

Enter credentials

Paste your API Key into the credential field.

Save

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

response = await alter_app.request(
HttpMethod.GET,
"https://YOUR-CLUSTER.a1.typesense.net/collections/products/documents/search",
grant_id="YOUR_GRANT_ID",
query_params={"q": "running shoes", "query_by": "name,description"},
)
  • The key is injected via the X-TYPESENSE-API-KEY header.

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

Operation IDFamiliesMethodProvider path
createCollectionwritePOST/collections
getCollectionsreadGET/collections
getCollectionreadGET/collections/{collectionName}
updateCollectionwritePATCH/collections/{collectionName}
deleteCollectiondeleteDELETE/collections/{collectionName}
indexDocumentwritePOST/collections/{collectionName}/documents
getDocumentreadGET/collections/{collectionName}/documents/{documentId}
updateDocumentwritePATCH/collections/{collectionName}/documents/{documentId}
deleteDocumentdeleteDELETE/collections/{collectionName}/documents/{documentId}
updateDocumentswritePATCH/collections/{collectionName}/documents
deleteDocumentsdeleteDELETE/collections/{collectionName}/documents
importDocumentswritePOST/collections/{collectionName}/documents/import
exportDocumentsreadGET/collections/{collectionName}/documents/export
searchCollectionreadGET/collections/{collectionName}/documents/search
multiSearchreadPOST/multi_search
createKeyadminPOST/keys
getKeysreadGET/keys
getKeyreadGET/keys/{keyId}
deleteKeyadmin, deleteDELETE/keys/{keyId}
upsertAliaswritePUT/aliases/{aliasName}
getAliasesreadGET/aliases
getAliasreadGET/aliases/{aliasName}
deleteAliasdeleteDELETE/aliases/{aliasName}
healthreadGET/health

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.