# Credential routes: verify

URL: /code/api/credential/verbs · Id: `page:code/api/credential/verbs`

> The Credential Verbs verify as api.sb routes, with inputs, result, refusals and an example.

Reference for [Credential](/business/nouns/credential), one group of [Credential routes](/code/api/credential).

### Credential.verify
Verify confirms a Credential with the authority that issued it and records when it expires. [Verb page](/business/nouns/credential/verify?interface=api).

```text
POST /{namespace}/credentials/{credential}/verify
```

Path: `credential`. Emits [`Credential.verified`](/business/events/Credential.verified).

**Inputs**

| Input | Type | Required | Description |
| --- | --- | --- | --- |
| `credential` | [Credential](/business/nouns/credential) | Yes | The Credential to check. |

**Returns**

| Output | Type | Required | Description |
| --- | --- | --- | --- |
| `credential` | [Credential](/business/nouns/credential) | Yes | The verified Credential. |

**Refuses when**

| Check | Error | Fix | Then call |
| --- | --- | --- | --- |
| The input does not match the schema of the operation. | [`invalid-input`](/code/api/errors/invalid-input) | Read the schema of the operation, then send every required field with the right type. | None. |
| The key is valid, but its scopes do not allow this operation. | [`forbidden`](/code/api/errors/forbidden) | Use a key whose scopes cover the operation, or ask an owner of the namespace to grant them. | None. |
| The record is not in a state that allows this Verb, so the call is refused. | [`refused`](/code/api/errors/refused) | Read the record, run the Verb that moves it to an allowed state, then retry. | None. |

**Example**

```bash
curl -X POST https://api.sb/leaseline.app/credentials/credential_Abb9zatRR1/verify \
  -H "Authorization: Bearer $STARTUP_BUILDER_API_KEY"
```

```json
{
  "api": "https://api.sb/leaseline.app",
  "credential": {
    "$id": "https://api.sb/leaseline.app/credentials/credential_Abb9zatRR1",
    "$type": "Credential",
    "issuer": "Example issuer",
    "jurisdiction": "US-DE"
  },
  "action": {
    "$id": "https://api.sb/leaseline.app/actions/act_br07HsG8MG",
    "operation": "Credential.verify",
    "status": "done"
  },
  "links": {
    "self": "https://api.sb/leaseline.app/actions/act_br07HsG8MG"
  }
}
```