GET Source Details
Fetch one connected identity source, including how many identities depend on it
https://api.anakin.io/v1/wire/identity-sources/{id}Returns a single connected source. Unlike the list endpoint, this one also carries identities_using — how many identities would be affected if you disconnected it. That count is the thing worth checking before a disconnect.
The encrypted credential is never returned. Requires an X-API-Key; the source must belong to the authenticated user.
Path Parameters
| Parameter | Type | Description |
|---|---|---|
id required | string (UUID) | Identity source ID |
Response
200 OK{
"status": "ok",
"identity_source": {
"id": "f1e2d3c4-0000-0000-0000-000000000000",
"user_id": "8a7b6c5d-0000-0000-0000-000000000000",
"provider": "1password",
"display_name": "Engineering vault",
"config": { "auth_method": "service_account" },
"scope_metadata": { "vaults": [ { "id": "abcd1234", "name": "Engineering" } ] },
"status": "active",
"last_verified_at": "2026-06-08T10:00:00Z",
"created_at": "2026-06-01T09:00:00Z",
"updated_at": "2026-06-08T10:00:00Z"
},
"identities_using": 3
}| Field | Type | Description |
|---|---|---|
identity_source | object | Same shape as an element of GET /v1/wire/identity-sources |
identity_source.config.auth_method | string | Which auth method the source was connected with — present only if auth_method was sent at connect time, otherwise config is {}. A rotation reuses it when present, and falls back to the provider's default when not |
identities_using | number | Identities whose credentials come from this source. Use GET /v1/wire/identity-sources/{id}/identities for the list itself |
identities_usingis omitted — not zeroed — when the count can't be taken. The source is still returned, so treat an absent key as unknown and a0as counted, and nothing depends on it. The distinction matters before a cascading disconnect: "unknown" read as "zero" is how you delete identities you were told didn't exist.
The list endpoint deliberately omits this count: computing it per row would be an N+1 query.
Error Responses
| Code | HTTP | When |
|---|---|---|
NOT_FOUND | 404 | No source with that ID |
FORBIDDEN | 403 | The source belongs to another user |
Code Examples
curl https://api.anakin.io/v1/wire/identity-sources/f1e2d3c4-0000-0000-0000-000000000000 \
-H "X-API-Key: your_api_key"import requests
source_id = 'f1e2d3c4-0000-0000-0000-000000000000'
response = requests.get(
f'https://api.anakin.io/v1/wire/identity-sources/{source_id}',
headers={'X-API-Key': 'your_api_key'},
)
data = response.json()
source = data['identity_source']
print(f"{source['display_name']} ({source['status']}) — {data.get('identities_using', '?')} identities")const sourceId = 'f1e2d3c4-0000-0000-0000-000000000000';
const response = await fetch(`https://api.anakin.io/v1/wire/identity-sources/${sourceId}`, {
headers: { 'X-API-Key': 'your_api_key' }
});
const { identity_source, identities_using } = await response.json();
console.log(
`${identity_source.display_name} (${identity_source.status}) — ${identities_using ?? '?'} identities`
);Rate limit
60 requests per minute per user.
Related
- GET /v1/wire/identity-sources/{id}/identities — which identities those are
- POST /v1/wire/identity-sources/{id}/verify — re-test the stored credential
- DELETE /v1/wire/identity-sources/{id} — disconnect