We use cookies to improve your experience. By continuing, you agree to our Cookie Policy.

plan.parts
About Databases Data Tasks How it works Pricing Docs Blog Support Contacts
GET Beta Free

OEM Session: state

/v1/oem/sessions/{session_id}

Beta. Step 2. Session state, vehicle modifications and the whole tree of nodes. ?wait=1..20 waits for the next state (long-poll). States: fetching_mods → mods_ready → fetching_tree → tree_ready → loading_nodes → ready, or error

Parameters

Name Type Required Description Example
session_id string path required session_id from step 1 3f2a9c1e-5b7d-4e8a-9c0f-1a2b3c4d5e6f
wait integer query optional Wait up to N seconds (1–20) for the next state (long-poll) 20
lang string query optional Language of names: en (default), ru, es, fr, pt en

Example Request

GET https://cdn.plan.parts/api/v1/oem/sessions/3f2a9c1e-5b7d-4e8a-9c0f-1a2b3c4d5e6f?wait=20&lang=en
Authorization: Bearer your_api_key

Example Response

{
    "success": true,
    "data": {
        "lifetime": {
            "created_at": "2026-11-27T12:49:37+03:00",
            "expires_at": "2026-11-27T15:49:37+03:00",
            "expires_in": 10800,
            "max_expires_at": "2026-11-28T12:49:37+03:00",
            "age": 0,
            "extends_by": 10800,
            "max_age": 86400
        },
        "session_id": "3f2a9c1e-5b7d-4e8a-9c0f-1a2b3c4d5e6f",
        "vin": "JTDKB20U883408205",
        "modifications": [
            {
                "id": "TOYOTA00",
                "name": "PRIUS",
                "catalog": "TOYOTA00",
                "details": [
                    {
                        "key": "description",
                        "value": "NHW20",
                        "label": "Model"
                    },
                    {
                        "key": "model",
                        "value": "NHW20L-AHEEBW",
                        "label": "Model code"
                    },
                    {
                        "key": "steering",
                        "label": "Steering",
                        "value": "LEFT-HAND DRIVE VEHICLES"
                    },
                    {
                        "key": "engine",
                        "label": "Engine",
                        "value": "(1NZFXE) 1500CC 16-VALVE DOHC EFI"
                    },
                    {
                        "key": "market",
                        "label": "Market",
                        "value": "EUROPE"
                    }
                ],
                "brand": "TOYOTA",
                "index": 0,
                "display_name": "PRIUS NHW20L-AHEEBW \u00b7 LEFT-HAND DRIVE VEHICLES \u00b7 EUROPE"
            },
            {
                "id": "TOYOTA00",
                "name": "PRIUS",
                "catalog": "TOYOTA00",
                "details": [
                    {
                        "key": "description",
                        "value": "NHW20",
                        "label": "Model"
                    },
                    {
                        "key": "model",
                        "value": "NHW20R-AHEEBQ",
                        "label": "Model code"
                    },
                    {
                        "key": "steering",
                        "label": "Steering",
                        "value": "RIGHT-HAND DRIVE VEHICLES"
                    },
                    {
                        "key": "engine",
                        "label": "Engine",
                        "value": "(1NZFXE) 1500CC 16-VALVE DOHC EFI"
                    },
                    {
                        "key": "market",
                        "label": "Market",
                        "value": "AUSTRALIA"
                    }
                ],
                "brand": "TOYOTA",
                "index": 1,
                "display_name": "PRIUS NHW20R-AHEEBQ \u00b7 RIGHT-HAND DRIVE VEHICLES \u00b7 AUSTRALIA"
            }
        ],
        "selected_index": null,
        "opened_modifications": [
            0,
            1
        ],
        "state": "mods_ready",
        "lang": "en"
    }
}

Try in Sandbox

Test this endpoint with real data in the Developer Portal sandbox.

Try in Sandbox →

No credit card required

Token cost

This endpoint is free — no tokens are deducted.