2mo
  • POST /matterviz/trajectory

    Interactive trajectory explorer with MatterViz

    Parameters

    ouro-route-id

    in header

    ouro-route-org-id

    in header

    ouro-route-team-id

    in header

    ouro-action-id

    in header

    Request body

    fps

    integerDefaults to 10

    Range: 1 to 120

    Frames per second for playback

    file

    objectRequired

    id

    url

    stringRequired

    name

    type

    stringRequired

    org_id

    stringRequired

    team_id

    stringRequired

    filename

    stringRequired

    visibility

    stringRequired

    description

    Trajectory file

    auto_play

    booleanDefaults to true

    Auto-play trajectory if supported

    const url = 'https://api.ouro.foundation/routes/mmoderwell/matterviz/trajectory';
    const options = {
      method: 'POST',
      headers: {
        'Authorization': 'ApiKey {your-ouro-api-key}',
        'Content-Type': 'application/json'
      }
    };
     
    const payload = {
      "fps": 10,
      "file": {
        "url": "example_string",
        "type": "example_string",
        "org_id": "example_string",
        "team_id": "example_string",
        "filename": "example_string",
        "visibility": "example_string"
      },
      "auto_play": true
    };
    options.body = JSON.stringify(payload);
     
    fetch(url, options)
      .then(response => response.json())
      .then(data => console.log(data))
      .catch(error => console.error('Error:', error));