---
title: "Find the portal invitation for a contact the caller verified"
---

> Documentation Index
> Fetch the complete documentation index at: https://docs.nicer.travel/llms.txt
> Use this file to discover all available pages before exploring further.

# Find the portal invitation for a contact the caller verified

Path: Nicer API › identity

`POST /identity/invitations/registration/lookup`

URL: `https://api.nicer.travel/identity/invitations/registration/lookup`

Tells the invitation sign-up page which agency and role a current portal invitation is for, once the signed-in invitee has verified that email or phone number with a one-time code. A contact the caller has not verified gets the same `available: false` as one with no invitation.

## Authentication

- `bearerAuth`, http bearer, header `Authorization`, format `JWT`

## Request body

_Required._

- `verificationReference` (`identity.invitations.registration.lookup.verificationReference`; string, required) — The `registrationVerification` the sign-up challenge returned; with the signed-in session it proves the caller verified the contact with a one-time code.
  - pattern: `^[A-Za-z0-9_-]{43}$`
- `email` (`identity.invitations.registration.lookup.email`; string, optional)
  - format: `email` · pattern: `^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$`
- `phoneNumber` (`identity.invitations.registration.lookup.phoneNumber`; string, optional)
- `invitationId` (`identity.invitations.registration.lookup.invitationId`; string, optional)
  - maxLength: `100` · minLength: `1`

## Example request

```json
{
  "email": "user@example.com",
  "phoneNumber": "string",
  "invitationId": "string",
  "verificationReference": "string"
}
```

## Code samples

### JavaScript SDK

```javascript
import { createClient } from "@nicertravel/sdk";

const nicer = createClient({
  baseUrl: "https://api.nicer.travel",
  token: process.env.NICER_TOKEN,
});

await nicer.identity.invitations.registration.lookup({
  "verificationReference": "string"
});
```

### Nicer CLI

```bash
nicer identity invitations registration lookup --input - <<'JSON'
{
  "verificationReference": "string"
}
JSON
```

### cURL

```bash
curl --request POST \
  --url https://api.nicer.travel/identity/invitations/registration/lookup \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "email": "user@example.com",
  "phoneNumber": "string",
  "invitationId": "string",
  "verificationReference": "string"
}
'
```

### TypeScript

```typescript
const url = 'https://api.nicer.travel/identity/invitations/registration/lookup';
const options = {
  method: 'POST',
  headers: {
    'Content-Type': 'application/json',
    Authorization: 'Bearer <token>'
  },
  body: JSON.stringify({
    email: 'user@example.com',
    phoneNumber: 'string',
    invitationId: 'string',
    verificationReference: 'string'
  })
};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error(err));
```

### Python

```python
import requests

url = "https://api.nicer.travel/identity/invitations/registration/lookup"

payload = {
    "email": "user@example.com",
    "phoneNumber": "string",
    "invitationId": "string",
    "verificationReference": "string"
}
headers = {
    "Content-Type": "application/json",
    "Authorization": "Bearer <token>"
}

response = requests.post(url, json=payload, headers=headers)

print(response.text)
```

## Responses

### 200

OK

#### Example

```json
{
  "available": false
}
```

Every option has:

- `available` (`<option>.available`; boolean, required)

One of the following, each adding:

- `object` (`identity.invitations.registration.lookup.response.200.1`)
- `object` (`identity.invitations.registration.lookup.response.200.2`)
  - `invitationId` (`identity.invitations.registration.lookup.response.200.2.invitationId`; string, required)
  - `expiresAt` (`identity.invitations.registration.lookup.response.200.2.expiresAt`; string, required)
    - format: `date-time` · pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$`
  - `companyDisplayName` (`identity.invitations.registration.lookup.response.200.2.companyDisplayName`; string, required)
  - `logoUrl` (`identity.invitations.registration.lookup.response.200.2.logoUrl`; any of, required)
    - any of the following: `string`, `null`
  - `role` (`identity.invitations.registration.lookup.response.200.2.role`; string, required)
    - one of `"advisor"`, `"admin"`
  - `logoBackground` (`identity.invitations.registration.lookup.response.200.2.logoBackground`; string, optional)
    - one of `"light"`, `"dark"`

### 400

Request failed. `errorCode` is stable; `errorMessage` is for humans.

#### Example

```json
{
  "errorCode": "string",
  "errorMessage": "string"
}
```

- `errorCode` (`identity.invitations.registration.lookup.response.400.errorCode`; string, required)
- `errorMessage` (`identity.invitations.registration.lookup.response.400.errorMessage`; string, required)

### 401

Request failed. `errorCode` is stable; `errorMessage` is for humans.

#### Example

```json
{
  "errorCode": "string",
  "errorMessage": "string"
}
```

- `errorCode` (`identity.invitations.registration.lookup.response.401.errorCode`; string, required)
- `errorMessage` (`identity.invitations.registration.lookup.response.401.errorMessage`; string, required)

### 403

Request failed. `errorCode` is stable; `errorMessage` is for humans.

#### Example

```json
{
  "errorCode": "string",
  "errorMessage": "string"
}
```

- `errorCode` (`identity.invitations.registration.lookup.response.403.errorCode`; string, required)
- `errorMessage` (`identity.invitations.registration.lookup.response.403.errorMessage`; string, required)

### 429

Request failed. `errorCode` is stable; `errorMessage` is for humans.

#### Example

```json
{
  "errorCode": "string",
  "errorMessage": "string"
}
```

- `errorCode` (`identity.invitations.registration.lookup.response.429.errorCode`; string, required)
- `errorMessage` (`identity.invitations.registration.lookup.response.429.errorMessage`; string, required)


Source: https://docs.nicer.travel/api/identity/identity.invitations.registration.lookup/index.md
