---
search:
  tags:
    - Sessions
    - POST
seo:
  description: >-
    Return the first session matching match_roboql_query, creating… Reference
    for the POST /v1/sessions/create_if_not_exists endpoint in the Roboto REST
    API.
sidebar:
  label: Create session if not exists
  badge: POST
title: Create session if not exists
type: openapi-operation
---
Return the first session matching ``match_roboql_query``, creating ``create_request`` when none matches.

### Access control
 - requires_org
 - Restricted tokens need the API scope `api.everything_else`

`POST /v1/sessions/create_if_not_exists`
