API Keys replaced with Access Tokens
Nov 3, 2023
·1 minute read
API authentication now uses Bearer access tokens instead of API keys. Bearer tokens are the industry standard for API authentication allowing better integration.
1curl -X POST "https://api.wrift.ai/v1/predictions" \2 -H "Authorization: Bearer $WRIFTAI_ACCESS_TOKEN" \3 -H "Content-Type: application/json" \4 -d '{5 "model": "owner/model_name",6 "input": {7 "prompt": "Summarize quantum computing."8 }9 }'
Access tokens can be created and managed from your dashboard. Previously issued API keys are no longer valid.