Python SDK
Install, authenticate, and call every MediaKind API from one client.
Install
Authenticate
The client reads a bearer token. Create one in the mk.io web application — see API tokens — and keep it in the environment rather than in source.
An asynchronous client is available with the same surface:
Namespaces
Every API is reachable from the one client. The first attribute selects the API:
Error handling
Failed requests raise a typed error carrying the HTTP status and the parsed body.
This SDK is generated from the same specs that produce this site’s API reference, so the two never drift. See the source repository.