List All API Keys Private Preview
Returns a paginated list of API keys for all users within your Fivetran account.
Request schema
Query parameters
Paging cursor, read more about pagination
Number of records to fetch per page. Accepts a number in the range 1..1000; the default value is 100.
The type of user. Possible values: REGULAR_USER: A human user who can log in to the Fivetran dashboard and interact with the API, and SERVICE_ACCOUNT: A non-human identity for machine-to-machine API access that cannot log in to the dashboard.
Header parameters
HTTP: basicAuth
HTTP AuthorizationScheme: basic
GET /v1/users/api-keys?cursor=cursor_value&limit=100&user_type=SERVICE_ACCOUNT HTTP/1.1 Accept: application/json Authorization: BasicHost: api.fivetran.com
Responses
200
Response status code
Response status text
The collection of returned items
The unique identifier for the user within the Fivetran system.
The type of user. Possible values: REGULAR_USER: A human user who can log in to the Fivetran dashboard and interact with the API, and SERVICE_ACCOUNT: A non-human identity for machine-to-machine API access that cannot log in to the dashboard.
The public identifier of the API key.
The timestamp that the user created their API key
The status of the API key. Possible values: ACTIVE: The key has a single active secret, ACTIVE_GRACE: The key has two active secrets during rotation overlap, and EXPIRED: The key has expired.
The timestamp when the API key expires.
The timestamp when the previous secret expires after rotation. Only present during the overlap period.
The value of the cursor parameter for the next page
{ "code": "Success", "message": "API keys have been listed", "data": { "items": [ { "user_id": "user_id", "user_type": "SERVICE_ACCOUNT", "key_value": "key_abc123", "created_at": "2024-01-01T00:00:00Z", "key_status": "ACTIVE", "expires_at": "2024-04-01T00:00:00Z", "overlap_expires_at": "2024-03-08T00:00:00Z", "last_rotated_at": "2019-08-24T14:15:22Z" } ], "next_cursor": "cursor_value" } }