# verify() · verifications()

Canonical URL: https://developers.iagenify.com/ar/sdk/ref/domain/verify/
Language: ar

`domain.verify({ service, code, name }) → Promise<Verification>`

Poses the TXT a service asks for, at the right name, with the right prefix — none of which you should have to compose.

Status: prefix added · a wrong prefix is refused · verified stays null

```javascript
await domain.verify({ service: "google", code: "abc123" });
// { service: "google",
//   record: { type: "TXT", name: "example.com", content: "google-site-verification=abc123" },
//   verified: null, next: "Go back to the service and start its check." }

await domain.verifications();
// { services: [...], verifications: [{ service, label, content }] }
```

| Name | Type | Requirement | Description |
| --- | --- | --- | --- |
| `service` | string | required | The service asking. `other` takes any name/value pair. |
| `code` | string | required | What the service gave you, with or without its prefix. |
| `name` | string | optional | A name under the zone, when the service asks for one. |

## Pasted with another service's prefix, it is refused {#prefix}

A code pasted bare gets its prefix. A code carrying someone else's is answered with `verification_code_mismatch` rather than rewritten — rewriting it would quietly post one service's proof under another's name.

## verified stays null on purpose {#verified}

We pose the record; the service decides when it checks, and it does not tell us. A `true` written here would be a guess.

- [Domain](/ar/sdk/ref/domain): What a domain carries, and what you can do to it.
- [records.list()](/ar/sdk/ref/domain/records/list): Seeing it in the zone.

```python
domain.verify(service="google", code="abc123")
# {"service": "google",
#  "record": {"type": "TXT", "name": "example.com", "content": "google-site-verification=abc123"},
#  "verified": None, "next": "Go back to the service and start its check."}

domain.verifications()
# {"services": [...], "verifications": [{"service", "label", "content"}]}
```
