API reference › Connect Keys
Get a Single API Key
GET/api/v1/connect-keys/{key_id}
Return one API key from the caller's organisation in the same merged shape as the list.
Answers 404 when the organisation has no such key.
Returns 404 if WorkOS doesn't recognise the key. The mirror row may still be present (e.g., revoked-in-WorkOS-but-not-cleaned-up) but we 404 on WorkOS source-of-truth for the secret material.
Path parameters
key_idstringRequired
Identifier of the API key, as returned in the
id field when it was created.Returns
Successful Response
Errors
StatusWhen
422Validation Error
curl https://uk.heyarchie.com/api/v1/connect-keys/<key_id> \ -H "Authorization: Bearer sk_..."
import requests
headers = {"Authorization": "Bearer sk_..."}
r = requests.get("https://uk.heyarchie.com/api/v1/connect-keys/<key_id>", headers=headers)
print(r.json())const r = await fetch("https://uk.heyarchie.com/api/v1/connect-keys/<key_id>", { method: "GET", headers: { "Authorization": "Bearer sk_..." }, }); const data = await r.json(); console.log(data);
Response
{
"detail": [
{
"loc": [
null
],
"msg": "<string>",
"type": "<string>"
}
]
}Every response also carries X-Request-ID. Quote it if you write to us about a call.