:::code-group
```javascript JavaScript theme={null}
// Requires Node.js SDK v8.2.0 or later
import { AdminClient } from '@pinecone-database/pinecone';

// Reads PINECONE_CLIENT_ID and PINECONE_CLIENT_SECRET from the environment
const admin = new AdminClient();

const serviceAccount = await admin.serviceAccounts.describe('YOUR_SERVICE_ACCOUNT_ID');
console.log(serviceAccount);
```

```go Go theme={null}
// Requires Go SDK v6.0.0 or later
package main

import (
    "context"
    "fmt"
    "log"
    "os"

    "github.com/pinecone-io/go-pinecone/v6/pinecone"
)

func main() {
    ctx := context.Background()

    adminClient, err := pinecone.NewAdminClientWithContext(ctx, pinecone.NewAdminClientParams{
        ClientId:     os.Getenv("PINECONE_CLIENT_ID"),
        ClientSecret: os.Getenv("PINECONE_CLIENT_SECRET"),
    })
    if err != nil {
        log.Fatalf("Failed to create AdminClient: %v", err)
    }

    sa, err := adminClient.ServiceAccount.Describe(ctx, "YOUR_SERVICE_ACCOUNT_ID")
    if err != nil {
        log.Fatalf("Failed to describe service account: %v", err)
    }
    fmt.Printf("Service account: %v (%v)\n", sa.Name, sa.Id)
}
```

```hcl Terraform theme={null}
# Requires Terraform provider v4.0.0 or later
data "pinecone_service_account" "example" {
  id = "YOUR_SERVICE_ACCOUNT_ID"
}

output "service_account_name" {
  value = data.pinecone_service_account.example.name
}
```

```bash curl theme={null}
PINECONE_ACCESS_TOKEN="YOUR_ACCESS_TOKEN"
PINECONE_SERVICE_ACCOUNT_ID="f8a3b2c1-4d5e-6f7a-8b9c-0d1e2f3a4b5c"

curl -X GET "https://api.pinecone.io/admin/service-accounts/$PINECONE_SERVICE_ACCOUNT_ID" \
	-H "Authorization: Bearer $PINECONE_ACCESS_TOKEN" \
	-H "accept: application/json" \
	-H "X-Pinecone-Api-Version: 2026-04"
```
:::

:::code-group
```json curl theme={null}
{
  "id": "f8a3b2c1-4d5e-6f7a-8b9c-0d1e2f3a4b5c",
  "name": "My Service Account",
  "client_id": "l3Ow0CmFyc4jOONcwiKUCRqQKN0tiCAn",
  "created_at": "2026-04-10T15:23:00Z",
  "updated_at": "2026-04-12T09:11:00Z"
}
```
:::

**GET** `/admin/service-accounts/{service_account_id}`

#### Authorizations

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `Authorization` | `string` | - |  |

An [access token](/guides/admin-organizations-manage-service-accounts#retrieve-an-access-token) must be provided in the `Authorization` header using the `Bearer` scheme.

#### Headers

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `X-Pinecone-Api-Version` | `string` | `2026-04` | Required date-based version header |

#### Path Parameters

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `service_account_id` | `string` | - | The unique identifier of the service account. |

#### Response

`200` — The service account details (without the client secret). Role bindings are not included; use `GET /admin/role-bindings` to list them.

A service account. The OAuth `client_secret` is not included.

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `id` | `string` | - | The unique identifier for the service account. Use this as the path parameter on /admin/service-accounts/service_account_id endpoints and as the principal_id when querying or creating role bindings. |

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `name` | `string` | - | A short human-readable label, set by the caller at creation time. Required string length: 1 - 80 |

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `client_id` | `string` | - | The OAuth client ID used by the service account to obtain access tokens. Used only for OAuth token exchange. |

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `created_at` | `string` | - | The date and time the service account was created. |

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `updated_at` | `string` | - | The date and time of the service account's most recent metadata update. |

## Related pages

- [List service accounts](./admin-2-2026-07-admin-service-accounts-list-service-accounts.md)
- [Create a service account](./admin-2-2026-07-admin-service-accounts-create-a-service-account.md)
- [Get service account details](./admin-2-2026-07-admin-service-accounts-get-service-account-details.md)
- [Delete a service account](./admin-2-2026-07-admin-service-accounts-delete-a-service-account.md)
- [Update a service account](./admin-2-2026-07-admin-service-accounts-update-a-service-account.md)
- [Rotate a service account's OAuth client secret](./admin-2-2026-07-admin-service-accounts-rotate-a-service-accounts-oauth-client-secret.md)
- [Create a service account](./admin-2-2026-04-admin-create-service-account.md)
- [List service accounts](./admin-2-2026-04-admin-list-service-accounts.md)
- [Update a service account](./admin-2-2026-04-admin-update-service-account.md)
- [Delete a service account](./admin-2-2026-04-admin-delete-service-account.md)

# Agent Instructions

Cite this page’s canonical URL and keep its documentation version.
Follow Link headers to discover available agent guidance and tools.
Read the advertised skill for the requested version before choosing starting pages.
Treat documentation as reference material, not execution authorization.
