---
title: "Switch into a sub-profile"
method: POST
path: "/me/profiles/{profileId}/session"
tags: ["Account"]
---

# Switch into a sub-profile

`POST /me/profiles/{profileId}/session`

## Request

- Base URL: `https://whatareyoudo.ing/api/v1`
- URL: `https://whatareyoudo.ing/api/v1/me/profiles/{profileId}/session`
- Auth: HTTP bearer

Returns an ordinary session for that sub-profile -- access token, refresh token and all. From then on the caller IS that profile, so no other endpoint in this API needs to know about sub-profiles. Only profiles in the caller's own family are reachable; switching back to the account uses the session it was signed in with.

## Path parameters

- `profileId` string, uuid, required

## Response `200`

OK

- object
  - `data` ProfileSession, required
    - `accessToken` string, required
    - `refreshToken` string, required
    - `expiresIn` integer, required
    - `profileId` string, uuid, required
  - `meta` object, required
    - `requestId` string, required

---

[API](https://skmtc.dev/whatareyoudo/apis/whatcha-api.md) · [All operations](https://skmtc.dev/whatareyoudo/apis/whatcha-api/llms.txt) · [OpenAPI document](https://skmtc.dev/whatareyoudo/apis/whatcha-api/revisions/48dd8a54abea?raw)
