Rakshak
API reference
REST endpoints, authentication headers, and SDK method mapping for Rakshak.
Authentication
Guard endpoints require X-API-Key. Use customer API keys from the Rakshak dashboard. Admin credentials are never required for application integrations.
X-API-Key: rsk_your_keyEndpoint map
POST /v1/scaninputSDK: client.guard(text). Body: {"prompt": "..."}.POST /v1/scan/outputoutputSDK: client.sanitize(text). Body: {"response": "..."}.POST /v1/conversation/{id}/turnconversationSDK: client.conversation(id).send(content).DELETE /v1/conversation/{id}conversationSDK: session.reset().Async SDK
async with rakshak.AsyncClient(api_key="rsk_your_key") as client:
scan = await client.guard(user_message)
output = await client.sanitize(llm_response)
session = client.conversation("chat-thread-123")
turn = await session.send(user_message)