# Tokens for a member whom the site has signed in

`POST /members/session` · Rivier · content

Tokens for a member whom the site has signed in: one for the server-side check and, where the edge key is set up, one the edge verifies with the public key.

- Scope: content:admin
- Sdk: content.member.session
- Cli: content member session

## Request body

`application/json`

```json
{
  "type": "object",
  "properties": {
    "memberId": {
      "type": "string",
      "format": "uuid"
    },
    "ttlSeconds": {
      "type": "integer",
      "minimum": 60,
      "maximum": 2592000
    }
  },
  "required": [
    "memberId"
  ],
  "additionalProperties": false
}
```

## Responses

- `200`: Success
- `400`: The request was malformed
- `401`: No valid credential
- `403`: The credential lacks the scope, origin or address
- `429`: Over the key's rate limit; see Retry-After

## Example

```sh
curl -X POST 'https://api.rivier.ai/members/session' \
  -H 'Authorization: Bearer $KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "memberId": "string"
}'
```
