---
title: Get the profile
project: OpenAuth
version: 1.0
section: reference
language: en
license: MIT
url: https://totaljs.es/docs/openauth/1-0/reference/get-profile/
updated: 2026-11-19T09:22:04.896Z
---

# Get the profile

> GET /sessions/ returns the profile of a finished sign-in.

```http
GET /sessions/?id=SESSION_ID
x-token: YOUR_APP_TOKEN
```

## One profile

Pass your session ID as `id` (or `sessionid`). Send the [app token](../../guides/app-tokens/) in the `x-token` header or as the `token` query argument.

```bash
curl -H "x-token: YOUR_APP_TOKEN" "https://auth.example.com/sessions/?id=7f3a9c21"
```

```json
{"id":"1001","name":"Jane Doe","firstname":"Jane","lastname":"Doe","email":"jane@example.com","photo":"","access_token":"...","expire":"2026-11-19T08:30:37.743Z","response":{"id":"1001","name":"Jane Doe"},"sessionid":"7f3a9c21","serviceid":"facebook"}
```

The fields are described in [The user profile](../user-profile/).

If the user has not finished signing in, the session has expired, or the ID is unknown, OpenAuth answers:

```json
[{"error":"Session not found"}]
```

with status `404`.

You can read the same profile again until the session expires, 15 minutes after the sign-in started. Save what you need in your own database.

## All finished sign-ins

Without `id`, OpenAuth returns an array with the profiles of all finished sign-ins that have not expired yet:

```bash
curl -H "x-token: YOUR_APP_TOKEN" "https://auth.example.com/sessions/"
```

```json
[{"id":"1001","name":"Jane Doe",...,"sessionid":"7f3a9c21","serviceid":"facebook"}]
```

Sign-ins still in progress are not in the list.
