Skip to main content
GET
/
v1
/
organizations
/
{organizationId}
/
projects
/
{projectId}
/
api-keys
/
{id}
Get API Key
curl --request GET \
  --url https://api.example.com/v1/organizations/{organizationId}/projects/{projectId}/api-keys/{id}

Path Parameters

organizationId
string
required
Organization ID
projectId
string
required
Project ID
id
string
required
API Key ID

Response

Returns the API Key object (without the key value).
{
  "id": "afd8012b-d81e-41c6-92cd-eed0c6cb3676",
  "projectId": "70093272-90ef-43df-807b-b66dd0a0b322",
  "name": "iOS Production App",
  "status": "active",
  "createdAt": "2024-03-20T10:00:00Z",
  "updatedAt": "2024-03-20T10:00:00Z",
  "lastUsed": "2024-03-21T15:30:00Z",
  "createdBy": "user456"
}
The key value is never returned after creation for security reasons. If you need the key value, create a new API key.

Error Responses

API Key Not Found

{
  "error": {
    "code": "NOT_FOUND",
    "message": "API key not found",
    "details": {
      "id": "afd8012b-d81e-41c6-92cd-eed0c6cb3676"
    }
  }
}

Code Examples

curl -X GET "https://api.metabind.ai/v1/organizations/org123/projects/proj456/api-keys/key123" \
  -H "Authorization: Bearer YOUR_API_KEY"