> This page is for Entria API Reference.

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.navipartner.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.navipartner.com/_mcp/server.

# Search for members by email address

GET https://api.entria.app/api/members

Returns the members whose email is the given one, with their memberships — the same data `GET /api/account/me` returns to a logged-in member, for a backend acting for any member, cached for up to 5 minutes. Blocked members and memberships are left out; expired memberships stay in. Each membership lists its unblocked cards, expired ones included (number, expiry, temporary flag); PIN codes and contact details are never returned. Because the response contains personal data, this endpoint requires a bearer access token in the `Authorization` header, in addition to the `x-entria` store header used by every endpoint. Obtain a token from `POST /oauth/token`; it must have been issued for the same store as this request.

Reference: https://docs.navipartner.com/entria-api/entria-api-reference/membership/get-find-members

## Authentication

- `Authorization` header (bearer token, required) — OAuth client token, for a partner backend only. A short-lived access token for endpoints that return personal data about any member. Obtain one from POST /oauth/token (RFC 7523 JWT-bearer), signing the assertion with the private key of the key pair registered for your store. Sent as `Authorization: Bearer <token>`. This is separate from the `x-entria` store header, which is still required.

## Request

### Query parameters

- `email` (string, required) — The email address to search for.

### Headers

- `x-entria` (string, required) — Identifies which store this request is for. Required on every store-scoped route. It is not authentication and not a secret — it grants no privileges and is safe to send from a browser. You receive the value once your Entria backend has been created and configured. Missing header returns 400; an unknown store returns 404.

## Response

### 200

The members behind the email address, with their memberships.

- `email` (string, required) — The (normalised) email the members were looked up by.
- `members` (list of ApiMembersGetResponsesContentApplicationJsonSchemaMembersItems, required)

## Errors

### 400 Bad Request Error

Invalid request

- `error` (string, required)
- `code` (string, optional)
- `details` (list of ErrorResponseDetailsItems, optional) — Per-field validation failures; present when code is VALIDATION_ERROR.
- `success` (boolean, optional, deprecated) — Deprecated. Use code === VALIDATION_ERROR.
- `errors` (list of any, optional, deprecated) — Deprecated. Raw zod issues; use details instead.

### 401 Unauthorized Error

Missing or invalid access token

- `error` (string, required)
- `code` (string, optional)
- `details` (list of ErrorResponseDetailsItems, optional) — Per-field validation failures; present when code is VALIDATION_ERROR.
- `success` (boolean, optional, deprecated) — Deprecated. Use code === VALIDATION_ERROR.
- `errors` (list of any, optional, deprecated) — Deprecated. Raw zod issues; use details instead.

### 403 Forbidden Error

Access token not valid for this store, or API auth not enabled

- `error` (string, required)
- `code` (string, optional)
- `details` (list of ErrorResponseDetailsItems, optional) — Per-field validation failures; present when code is VALIDATION_ERROR.
- `success` (boolean, optional, deprecated) — Deprecated. Use code === VALIDATION_ERROR.
- `errors` (list of any, optional, deprecated) — Deprecated. Raw zod issues; use details instead.

### 429 Too Many Requests Error

Too many requests — rate limit exceeded

- `error` (string, required)
- `code` (string, optional)
- `details` (list of ErrorResponseDetailsItems, optional) — Per-field validation failures; present when code is VALIDATION_ERROR.
- `success` (boolean, optional, deprecated) — Deprecated. Use code === VALIDATION_ERROR.
- `errors` (list of any, optional, deprecated) — Deprecated. Raw zod issues; use details instead.

### 503 Service Unavailable Error

API auth or Business Central is not configured for this store

- `error` (string, required)
- `code` (string, optional)
- `details` (list of ErrorResponseDetailsItems, optional) — Per-field validation failures; present when code is VALIDATION_ERROR.
- `success` (boolean, optional, deprecated) — Deprecated. Use code === VALIDATION_ERROR.
- `errors` (list of any, optional, deprecated) — Deprecated. Raw zod issues; use details instead.

## Types

### ApiMembersGetResponsesContentApplicationJsonSchemaMembersItems

- `memberNumber` (string, required)
- `memberships` (list of ApiMembersGetResponsesContentApplicationJsonSchemaMembersItemsMembershipsItems, required)
- `firstName` (string, optional)
- `lastName` (string, optional)

### ErrorResponseDetailsItems

- `path` (string, required)
- `message` (string, required)

### ApiMembersGetResponsesContentApplicationJsonSchemaMembersItemsMembershipsItems

- `membershipNumber` (string, required)
- `membershipCode` (string, required)
- `membershipDescription` (string, required)
- `validFromDate` (string, required, nullable)
- `validUntilDate` (string, required, nullable)
- `autoRenewalActivated` (boolean, required)
- `cards` (list of ApiMembersGetResponsesContentApplicationJsonSchemaMembersItemsMembershipsItemsCardsItems, required)

### ApiMembersGetResponsesContentApplicationJsonSchemaMembersItemsMembershipsItemsCardsItems

- `cardNumber` (string, required)
- `expiryDate` (string, required, nullable) — Null when the membership system sent no date.
- `temporary` (boolean, required) — Whether the membership system marks the card as temporary.

## Examples

**Response**

```json
{
  "email": "string",
  "members": [
    {
      "memberNumber": "string",
      "memberships": [
        {
          "membershipNumber": "string",
          "membershipCode": "string",
          "membershipDescription": "string",
          "validFromDate": "string",
          "validUntilDate": "string",
          "autoRenewalActivated": true,
          "cards": [
            {
              "cardNumber": "string",
              "expiryDate": "string",
              "temporary": true
            }
          ]
        }
      ],
      "firstName": "string",
      "lastName": "string"
    }
  ]
}
```

**SDK Code**

```python
import requests

url = "https://api.entria.app/api/members"

querystring = {"email":"email"}

headers = {
    "x-entria": "x-entria",
    "Authorization": "Bearer <token>"
}

response = requests.get(url, headers=headers, params=querystring)

print(response.json())
```

```javascript
const url = 'https://api.entria.app/api/members?email=email';
const options = {
  method: 'GET',
  headers: {'x-entria': 'x-entria', Authorization: 'Bearer <token>'}
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.entria.app/api/members?email=email"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("x-entria", "x-entria")
	req.Header.Add("Authorization", "Bearer <token>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("https://api.entria.app/api/members?email=email")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["x-entria"] = 'x-entria'
request["Authorization"] = 'Bearer <token>'

response = http.request(request)
puts response.read_body
```

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.entria.app/api/members?email=email")
  .header("x-entria", "x-entria")
  .header("Authorization", "Bearer <token>")
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.entria.app/api/members?email=email', [
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'x-entria' => 'x-entria',
  ],
]);

echo $response->getBody();
```

```csharp
using RestSharp;

var client = new RestClient("https://api.entria.app/api/members?email=email");
var request = new RestRequest(Method.GET);
request.AddHeader("x-entria", "x-entria");
request.AddHeader("Authorization", "Bearer <token>");
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = [
  "x-entria": "x-entria",
  "Authorization": "Bearer <token>"
]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.entria.app/api/members?email=email")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```