Skip to main content
GET
/
cloud
/
v3
/
inference
/
{project_id}
/
api_keys
Python
import os
from gcore import Gcore

client = Gcore(
    api_key=os.environ.get("GCORE_API_KEY"),  # This is the default and can be omitted
)
page = client.cloud.inference.api_keys.list(
    project_id=1,
)
page = page.results[0]
print(page.created_at)
{
  "count": 1,
  "results": [
    {
      "created_at": "<string>",
      "deployment_names": [
        "<string>"
      ],
      "description": "This key is used for accessing the inference service.",
      "expires_at": "2024-10-01T12:00:00Z",
      "name": "<string>"
    }
  ]
}

Authorizations

Authorization
string
header
required

API key for authentication. Make sure to include the word apikey, followed by a single space and then your token. Example: apikey 1234$abcdef

Path Parameters

project_id
integer
required

Project ID

Query Parameters

limit
integer
default:100

Optional. Limit the number of returned items

Required range: x <= 1000
offset
integer
default:0

Optional. Offset value is used to exclude the first set of records from the result

Required range: x >= 0

Response

200 - application/json

OK

count
integer
required

Number of objects

Required range: x >= 0
results
GetApiKeyResponseSerializer · object[]
required

Objects