# Sessions

Manage user sessions that are created upon successful 'frontend' authentication. This does not apply to the methods implemented via a backend-to-backend integration (under 'Backend Authentication').


## Servers

Sandbox environment
```
https://api.sbx.transmitsecurity.io/cis
```

US production environment
```
https://api.transmitsecurity.io/cis
```

EU production environment
```
https://api.eu.transmitsecurity.io/cis
```

CA production environment
```
https://api.ca.transmitsecurity.io/cis
```

AU production environment
```
https://api.au.transmitsecurity.io/cis
```

JP production environment
```
https://api.gasne1-ts01.transmitsecurity.io/cis
```

## Security

### bearer

Type: http
Scheme: bearer
Bearer Format: JWT

### UserAccessToken

A token returned upon end-user authentication, which provides access to resources and data for the user and app for which it was generated

Type: http
Scheme: bearer
Bearer Format: JWT

### AdminAccessToken

A token generated by a management application using the [token endpoint](/openapi/token.openapi/other/getaccesstoken). It provides access to all resources for the tenant and its apps

Type: oauth2
Token URL: /oidc/token
Scopes:

### ClientAccessToken

A token generated by an end-user application using the [token endpoint](/openapi/token.openapi/other/getaccesstoken). It provides access to resources and data on the tenant level or associated with the specific application (but not other apps in the tenant)

Type: oauth2
Token URL: /oidc/token
Scopes:

### OrgAdminAccessToken

A token returned upon B2B authentication for a user that has the organizationAdmin or organizationCreator role.

Type: oauth2
Token URL: /oidc/token
Scopes:

## Download OpenAPI description

 - [Sessions](https://developer.transmitsecurity.com/_bundle/openapi/user/sessions.openapi.yaml)

 - [GET /v1/sessions/{user_id}](https://developer.transmitsecurity.com/openapi/user/sessions.openapi/other/getusersessions.md): Retrieves all active sessions for a specified user. **Required permissions**: `apps:read`, `[appId]:read`, `sessions:read`.
 - [DELETE /v1/sessions/{user_id}](https://developer.transmitsecurity.com/openapi/user/sessions.openapi/other/deleteusersessions.md): Revokes all refresh tokens and logs out of all sessions for a specified user. **Required permissions**: `apps:delete`, `[appId]:delete`, `sessions:delete`.
 - [DELETE /v1/sessions/{app_id}/{organization_id}/{user_id}/all](https://developer.transmitsecurity.com/openapi/user/sessions.openapi/other/deleteusersessionsbyappandorganization.md): Revokes all refresh tokens and signs the specified user out of all sessions within the specified application and organization. **Required permissions**: `apps:delete`, `[appId]:delete`, `sessions:dele
