Yapper Docs
Api reference
GET
/sessions/{sessionId}/editor

Returns the assets in the session's Editor strip, oldest first (the newest 200), each with webUrl opening the editor on it, plus the editor's running edits as processes. Uses the processes:read scope.

Authorization

bearerAuth processes:read
AuthorizationBearer <token>

In: header

Scope: processes:read

Path Parameters

sessionId*string

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/sessions/string/editor"
{  "sessionId": "string",  "items": [    {      "asset": {        "id": "string",        "type": "image",        "name": "string",        "url": "http://example.com",        "thumbnailUrl": "http://example.com",        "preview": {          "url": "http://example.com",          "width": 0,          "height": 0,          "mimeType": "string"        },        "width": 0,        "height": 0,        "duration": 0,        "mimeType": "string",        "source": "string",        "sourceProcessId": "string",        "prompt": "string",        "model": "string",        "trainingId": "string",        "draft": {          "finishableUntil": "2019-08-24T14:15:22Z",          "finishResolutions": [            1080          ]        },        "favorite": true,        "sessionId": "string",        "libraryFolderIds": [          "string"        ],        "createdBy": "string",        "metadata": {          "property1": "string",          "property2": "string"        },        "testMode": true,        "webUrl": "http://example.com",        "createdAt": "2019-08-24T14:15:22Z",        "links": {          "self": "string"        }      },      "addedAt": "2019-08-24T14:15:22Z",      "webUrl": "http://example.com"    }  ],  "running": [    {      "id": "string",      "type": "string",      "status": "queued",      "model": "string",      "trainingId": "string",      "draft": {        "finishableUntil": "2019-08-24T14:15:22Z",        "finishResolutions": [          1080        ]      },      "createdAt": "2019-08-24T14:15:22Z",      "updatedAt": "2019-08-24T14:15:22Z",      "completedAt": "2019-08-24T14:15:22Z",      "estimatedCompletionSeconds": 0,      "suggestedPollAfterSeconds": 0,      "progress": {        "elapsedSeconds": 0,        "estimatedSecondsRemaining": 0      },      "creditsEstimated": 0,      "creditsUsed": 0,      "refunded": true,      "error": {        "code": "string",        "message": "string"      },      "input": {},      "outputs": [        {          "type": "image",          "assetId": "string",          "url": "http://example.com",          "thumbnailUrl": "http://example.com",          "preview": {            "url": "http://example.com",            "width": 0,            "height": 0,            "mimeType": "string"          },          "width": 0,          "height": 0,          "duration": 0,          "mimeType": "string"        }      ],      "metadata": {        "property1": "string",        "property2": "string"      },      "sessionId": "string",      "createdBy": "string",      "testMode": true,      "webUrl": "http://example.com",      "links": {        "self": "string"      }    }  ],  "webUrl": "http://example.com"}
{  "error": {    "code": "string",    "message": "string",    "requestId": "string"  }}
{  "error": {    "code": "string",    "message": "string",    "requestId": "string"  }}
{  "error": {    "code": "string",    "message": "string",    "requestId": "string"  }}
{  "error": {    "code": "string",    "message": "string",    "requestId": "string"  }}
{  "error": {    "code": "string",    "message": "string",    "requestId": "string"  }}