Create a Key
- For your own scripts and notebooks, create a personal API key under Settings, then Credentials. It acts as you, with your permissions. See Creating API Keys.
- For automated work, such as pipelines and collectors, use a service account key. An Org Admin creates it, it starts with
fks_, and it has only the access the admin grants. See Create an API Key.
Send the Key
Send the key in theAuthorization header, the line of the request that carries it. Write Bearer, a space, and then the key:
Use Your Fiddler Address
Send each request to the address of your own Fiddler site, the one you open in your browser to sign in, followed by the path of the call. This page useshttps://your-instance.fiddler.ai, and the REST API reference samples use https://api.example.com. Replace either with your address.
Example Request
This request lists the projects your key can see. It works with a personal API key or a Specific Projects service account key; an Entire Org service account key gets 403. See List of projects. SetFIDDLER_API_KEY to your key first.
401 and 403 Errors
- 401 Unauthorized: Fiddler didn’t accept the key. The
Authorizationheader is missing or doesn’t start withBearer, or the key is mistyped, expired, disabled, or revoked. - 403 Forbidden: Fiddler accepted the key, but it isn’t allowed to make this call. A personal key can do only what your role allows. A service account key can do only what its capabilities or project roles allow.