Skip to main content
POST
/
v3beta1
/
organizations
/
{org_id}
/
sessions
Create Session
curl --request POST \
  --url https://api.devin.ai/v3beta1/organizations/{org_id}/sessions \
  --header 'Content-Type: application/json' \
  --data '{
  "prompt": "<string>",
  "title": "<string>",
  "tags": [
    "<string>"
  ],
  "max_acu_limit": 123,
  "playbook_id": "<string>",
  "knowledge_ids": [
    "<string>"
  ],
  "secret_ids": [
    "<string>"
  ],
  "repos": [
    "<string>"
  ]
}'
{
  "session_id": "<string>",
  "url": "<string>",
  "status": "new",
  "title": "<string>",
  "tags": [
    "<string>"
  ],
  "user_id": "<string>",
  "org_id": "<string>",
  "created_at": 123,
  "updated_at": 123,
  "acus_consumed": 123,
  "pull_requests": [
    {
      "pr_url": "<string>",
      "pr_state": "<string>"
    }
  ]
}

Path Parameters

org_id
string | null
required

Query Parameters

secret_id
string | null

Body

application/json
prompt
string
required
title
string | null
tags
string[] | null
max_acu_limit
integer | null
playbook_id
string | null
knowledge_ids
string[] | null
secret_ids
string[] | null
repos
string[] | null

Response

Successful Response

session_id
string
required
url
string
required
status
enum<string>
required
Available options:
new,
claimed,
running,
exit,
error,
suspended,
resuming
tags
string[]
required
org_id
string
required
created_at
integer
required
updated_at
integer
required
acus_consumed
number
required
pull_requests
SessionPullRequest · object[]
required
title
string | null
user_id
string | null