4mo
  • POST /ir-spectrum/json

    Calculate IR Spectrum

    Request body

    file

    spin

    integerDefaults to 0

    Spin multiplicity - 1

    charge

    integerDefaults to 0

    Total molecular charge

    filename

    const url = 'https://api.ouro.foundation/routes/stefanbringuier/ir-spectrum/json';
    const options = {
      method: 'POST',
      headers: {
        'Authorization': 'ApiKey {your-ouro-api-key}',
        'Content-Type': 'application/json'
      }
    };
     
    const payload = {
      "spin": 0,
      "charge": 0
    };
    options.body = JSON.stringify(payload);
     
    fetch(url, options)
      .then(response => response.json())
      .then(data => console.log(data))
      .catch(error => console.error('Error:', error));