Wrapper for Interhuman API POST /v0/auth endpoint. Generates short-lived bearer access tokens using API key credentials. Use when the user needs to authenticate before calling Interhuman API endpoints. Returns the exact JSON response from the API without modification.
Wrapper for the Interhuman API authentication endpoint that generates short-lived bearer tokens for API access.
Use this skill when:
This skill should be called first, before using interhuman-post-processing or interhuman-stream skills.
interhumanai.upload - For /v0/upload/analyze endpointinterhumanai.stream - For /v0/stream/analyze endpointhttps://api.interhuman.ai/v0/authapplication/jsonSend a JSON request body with key_id, key_secret, and scopes array.
curl -X POST https://api.interhuman.ai/v0/auth \
-H "Content-Type: application/json" \
-d '{
"key_id": "your_key_id",
"key_secret": "your_key_secret",
"scopes": ["interhumanai.upload"]
}'
import requests
response = requests.post(
"https://api.interhuman.ai/v0/auth",
json={
"key_id": "your_key_id",
"key_secret": "your_key_secret",
"scopes": ["interhumanai.upload"]
}
)
# Return the raw JSON response
print(response.json())
const response = await fetch("https://api.interhuman.ai/v0/auth", {
method: "POST",
headers: {
"Content-Type": "application/json"
},
body: JSON.stringify({
key_id: "your_key_id",
key_secret: "your_key_secret",
scopes: ["interhumanai.upload"]
})
});
const json = await response.json();
console.log(json);
The API returns a JSON object with:
Bearer{
"access_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
"token_type": "Bearer",
"expires_in": 900,
"scope": "interhumanai.upload"
}
On error, the API returns JSON with:
200: Success400: Bad request (invalid credentials or parameters)401: Unauthorized (invalid key_id or key_secret)403: Forbidden (credentials valid but lack required scope)422: Validation error (invalid request format)500: Internal server errorAfter obtaining an access token, use it in the Authorization header for subsequent API calls:
Authorization: Bearer <access_token>
The token expires after the time specified in expires_in (typically 15 minutes). Generate a new token when it expires.
CRITICAL: This skill is a strict wrapper. You MUST:
The response should be the raw JSON object returned by the API, passed through verbatim.