# lookupPartnerOrg

Resolve a prospective partner organization by exactly one of an admin's phone number or email. Returns the matched admin and their organization: use the organization id as partnerOrgId when sending a partnership invitation. For an organization you are ALREADY partnered with, listPartnerships has the id without a lookup.

- Call: `POST https://server.goliathdata.com/api/v1/call` with `{ "operationId": "lookupPartnerOrg", "variables": {...} }`
- Scope: `ADMIN`
- Type: query
- Idempotency: a read; rejects `Idempotency-Key`
- Rate-limited: no

## Variables

- `phoneNumber`: `String`
- `email`: `String`

## Response (data, an example)

```json
{
  "orgPartnershipQuery": {
    "lookupInvitee": {
      "user": {
        "id": "<ID>",
        "firstName": "…",
        "lastName": "…",
        "email": "…"
      },
      "organization": {
        "id": "<ID>",
        "name": "…"
      }
    }
  }
}
```

## Example

```bash
curl https://server.goliathdata.com/api/v1/call \
  -H "Authorization: Bearer $GOLIATH_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "operationId": "lookupPartnerOrg",
    "variables": {}
  }'
```
