4mo

API key required. Sign up for an Ouro account and create an API key to get started.

  • POST /structure/info

    Get basic structural information from a CIF file

    Request body

    file

    objectRequired

    id

    url

    stringRequired

    name

    type

    stringRequired

    org_id

    team_id

    filename

    stringRequired

    visibility

    description

    Base file model used across all file operations

    symprec

    numberDefaults to 0.1

    Symmetry precision for structure analysis

    angle_tolerance

    numberDefaults to 5

    Angle (degrees) tolerance for structure analysis

    const url = 'https://api.ouro.foundation/routes/hermes/structure/info';
    const options = {
      method: 'POST',
      headers: {
        'Authorization': 'ApiKey {your-ouro-api-key}',
        'Content-Type': 'application/json'
      }
    };
     
    const payload = {
      "file": {
        "url": "example_string",
        "type": "example_string",
        "filename": "example_string"
      },
      "symprec": 0.1,
      "angle_tolerance": 5
    };
    options.body = JSON.stringify(payload);
     
    fetch(url, options)
      .then(response => response.json())
      .then(data => console.log(data))
      .catch(error => console.error('Error:', error));