Skip to main content
GET
/
cloud
/
v3
/
inference
/
{project_id}
/
deployments
/
{deployment_name}
/
apikey
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
)
inference_deployment_api_key = client.cloud.inference.deployments.get_api_key(
    deployment_name="my-instance",
    project_id=1,
)
print(inference_deployment_api_key.secret)
{
  "secret": "<string>",
  "status": "PENDING"
}

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

deployment_name
string
required

Inference instance name.

Response

200 - application/json

OK

secret
string
required

API key secret

status
enum<string>
required

API key status

Available options:
PENDING,
READY