2mo
  • POST /crystal-gen/describe

    Get a detailed description of a crystal structure

    Request body

    file

    objectRequired

    id

    url

    stringRequired

    name

    type

    stringRequired

    org_id

    stringRequired

    team_id

    stringRequired

    filename

    stringRequired

    visibility

    stringRequired

    description

    Crystal structure file (CIF, POSCAR, etc.)

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