APIAPI reference
Observations where a molecule takes part
POST /v1/molecules/reactions
POST /v1/molecules/reactions
Authorization
This operation requires a bearer credential. The description defines additional role, scope or first-party-session restrictions; an API key does not grant those permissions by itself.
Request body
| Property | Type | Required | Details |
|---|---|---|---|
smiles | string | yes | One molecule (no dots). |
role | "reactant" ∣ "product" ∣ "agent" ∣ null | no | |
limit | integer | no | Maximum records, from 1 to 100. Default: 10. |
offset | integer | no | Zero-based pagination offset. Default: 0. |
Full schema: MoleculeReactionsRequest
{
"properties": {
"smiles": {
"type": "string",
"maxLength": 10000,
"minLength": 1,
"title": "Smiles",
"description": "One molecule (no dots)."
},
"role": {
"anyOf": [
{
"type": "string",
"enum": [
"reactant",
"product",
"agent"
]
},
{
"type": "null"
}
],
"title": "Role"
},
"limit": {
"type": "integer",
"maximum": 100,
"minimum": 1,
"title": "Limit",
"description": "Maximum records, from 1 to 100.",
"default": 10
},
"offset": {
"type": "integer",
"maximum": 1000000,
"minimum": 0,
"title": "Offset",
"description": "Zero-based pagination offset.",
"default": 0
}
},
"additionalProperties": false,
"type": "object",
"required": [
"smiles"
],
"title": "MoleculeReactionsRequest"
}Responses
| HTTP | Details | Type |
|---|---|---|
| 200 | Successful Response | application/json: ObservationPage |
| 401 | Unauthorized | application/problem+json: ProblemDetails |
| 402 | Payment Required | application/problem+json: ProblemDetails |
| 403 | Forbidden | application/problem+json: ProblemDetails |
| 408 | Request Timeout | application/problem+json: ProblemDetails |
| 413 | Request Entity Too Large | application/problem+json: ProblemDetails |
| 422 | Unprocessable Entity | application/problem+json: ProblemDetails |
| 429 | Too Many Requests | application/problem+json: ProblemDetails |
| 502 | Bad Gateway | application/problem+json: ProblemDetails |
| 503 | Service Unavailable | application/problem+json: ProblemDetails |
Response: ObservationPage
| Property | Type | Required | Details |
|---|---|---|---|
items | Observation[] | yes | |
limit | integer | yes | |
offset | integer | yes | |
has_more | boolean | yes | |
next_offset | integer ∣ null | yes |
Full schema
{
"properties": {
"items": {
"items": {
"$ref": "#/components/schemas/Observation"
},
"type": "array",
"title": "Items"
},
"limit": {
"type": "integer",
"title": "Limit"
},
"offset": {
"type": "integer",
"title": "Offset"
},
"has_more": {
"type": "boolean",
"title": "Has More"
},
"next_offset": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Next Offset"
}
},
"additionalProperties": true,
"type": "object",
"required": [
"items",
"limit",
"offset",
"has_more",
"next_offset"
],
"title": "ObservationPage"
}This page is generated from OpenAPI; examples are schemas, not a fabricated successful response.