--- title: "List API keys" source_url: https://dev.digicert.com/partner-subscriptions-api/api-key-management/list-api-keys.html api_method: GET api_endpoint: "/partner-subscription/api/v1/api-key" api_url: "https://www.digicert.com/partner-subscription/api/v1/api-key" --- **GET** `https://www.digicert.com/partner-subscription/api/v1/api-key` Use this endpoint to retrieve a list of API keys accessible to your authenticated partner subscriptions account. > **Info** > > Authorization behavior depends on account type. Parent accounts receive their own API keys and all subaccount API keys. Subaccounts receive only their own API keys. In the response, the account_id field identifies which account owns each API key. ## Example requests and responses **cURL** ```bash curl -X GET \ https://www.digicert.com/partner-subscription/api/v1/api-key \ -H 'X-PARTNER-APIKEY: {{partner_api_key}}' ``` **Python** ```python import requests url = "https://www.digicert.com/partner-subscription/api/v1/api-key" headers = { 'X-PARTNER-APIKEY': "{{partner_api_key}}" } response = requests.request("GET", url, headers=headers) print(response.text) ``` **Go** ```go package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "https://www.digicert.com/partner-subscription/api/v1/api-key" req, _ := http.NewRequest("GET", url, nil) req.Header.Add("X-PARTNER-APIKEY", "{{partner_api_key}}") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) } ``` **NodeJS** ```javascript var request = require("request"); var options = { method: 'GET', url: 'https://www.digicert.com/partner-subscription/api/v1/api-key', headers: { 'X-PARTNER-APIKEY': '{{partner_api_key}}' } }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); }); ``` ## 200 OK ```json { "api_keys": [ { "id": 12345, "name": "Production API Key", "account_id": 67890, "status": "active", "created_at": "2025-01-15T10:30:00Z", "last_used_date": "2025-01-28T14:22:00Z", "api_key_last4": "xyz9" }, { "id": 12346, "name": "Subaccount API Key", "account_id": 67891, "status": "active", "created_at": "2025-01-20T09:15:00Z", "last_used_date": "2025-01-29T08:10:00Z", "api_key_last4": "abc5" } ] } ``` ## URL path and query parameters This endpoint does not use URL query parameters. ## Request parameters This endpoint does not use request parameters. ## Response parameters
Name Type Description
api_keys array[object] Array of API key objects accessible to the authenticated account.
.. id integer Unique identifier of the API key.
.. name string Descriptive name of the API key.
.. account_id integer Identifier of the account that owns the API key.
.. status string Operational status of the API key.
Allowed values: active, inactive
.. created_at string API key creation date in ISO 8601 format.
.. last_used_date string Date and time the API key was last used.
.. api_key_last4 string Last four characters of the API key.