POST
Check that a credential can read a repository

Authorizations

Authorization
string
header
required

Authorization: Bearer twk_<prefix>_<secret>.

The prefix is public and safe to log: it is what identifies which credential leaked. The secret is never logged, never returned after creation, and stored only as a SHA-256 hash.

Body

application/json
repository
string
required

The repository to check, on this credential's host.

Example:

"https://github.com/acme/api"

Response

The check completed. access.ok is the answer.

credential
object
required

A stored registry credential, without its secret. There is no read path for the plaintext at any permission, so no response anywhere carries one. A customer who has lost their token rotates it.

access
object
required