curl --request GET \
--url https://api.openai.com/v1/organization/projects/{project_id}/api_keys/{key_id} \
--header 'Authorization: Bearer <token>'{
"object": "organization.project.api_key",
"redacted_value": "<string>",
"name": "<string>",
"created_at": 123,
"id": "<string>",
"owner": {
"type": "user",
"user": {
"object": "organization.project.user",
"id": "<string>",
"name": "<string>",
"email": "<string>",
"role": "owner",
"added_at": 123
},
"service_account": {
"object": "organization.project.service_account",
"id": "<string>",
"name": "<string>",
"role": "owner",
"created_at": 123
}
}
}Retrieves an API key in the project.
curl --request GET \
--url https://api.openai.com/v1/organization/projects/{project_id}/api_keys/{key_id} \
--header 'Authorization: Bearer <token>'{
"object": "organization.project.api_key",
"redacted_value": "<string>",
"name": "<string>",
"created_at": 123,
"id": "<string>",
"owner": {
"type": "user",
"user": {
"object": "organization.project.user",
"id": "<string>",
"name": "<string>",
"email": "<string>",
"role": "owner",
"added_at": 123
},
"service_account": {
"object": "organization.project.service_account",
"id": "<string>",
"name": "<string>",
"role": "owner",
"created_at": 123
}
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
The ID of the project.
The ID of the API key.
Project API key retrieved successfully.
Represents an individual API key in a project.
The object type, which is always organization.project.api_key
organization.project.api_key The redacted value of the API key
The name of the API key
The Unix timestamp (in seconds) of when the API key was created
The identifier, which can be referenced in API endpoints
Show child attributes
Was this page helpful?