List runs
Returns a list of runs belonging to a thread.
Path parameters
The ID of the thread the run belongs to.
Query parameters
A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20.
Sort order by the created_at timestamp of the objects. asc for ascending order and desc for descending order.
A cursor for use in pagination. after is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include after=obj_foo in order to fetch the next page of the list.
A cursor for use in pagination. before is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with obj_foo, your subsequent call can include before=obj_foo in order to fetch the previous page of the list.
Response
OK
Example response
{
"object": "list",
"first_id": "run_abc123",
"last_id": "run_abc456"
}Changes
Changed in 10 of the 163 revisions of this API.21226
- ○
added the optional property
/to the response with the statusresponse-optional-property-added
- ○
- ○
added the non-success response with the status
response-non-success-status-added
- ○
- ▲
response property
data/items/metadatalist-of-types was widened by adding typesnullto media typeapplication/jsonof response200response-property-list-of-types-widened
- ▲
response property
data/items/response_format/oneOf[subschema #4: JSON schema]/json_schema/strictlist-of-types was widened by adding typesnullto media typeapplication/jsonof response200response-property-list-of-types-widened
- ▲
response property
data/items/tools/items/oneOf[subschema #3: Function tool]/function/strictlist-of-types was widened by adding typesnullto media typeapplication/jsonof response200response-property-list-of-types-widened
- ▲
response property
data/items/truncation_strategy/allOf[subschema #1: Thread Truncation Controls]/last_messageslist-of-types was widened by adding typesnullto media typeapplication/jsonof response200response-property-list-of-types-widened
- ▲
the
//response's property type changed fromobjectto no type for statusresponse-property-type-changed
- ▲
removed the required property
///from the response with the statusresponse-required-property-removed
- ▲
removed the required property
///from the response with the statusresponse-required-property-removed
- ▲
removed the required property
///from the response with the statusresponse-required-property-removed
- ○
added
subschema #1subschema #2to the//response propertyanyOflist for the response statusresponse-property-any-of-added
- ○
the
response's property default valuefalsewas removed for the statusresponse-property-default-value-removed
- ○
the
response's property default valuefalsewas removed for the statusresponse-property-default-value-removed
This revision also has 40 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲
- ▲
the response property
//became nullable for the statusresponse-property-became-nullable
- ▲
added
subschema #1to the//response propertyoneOflist for the response statusresponse-property-one-of-added
- ○
removed
subschema #2from the//response propertyallOflist for the response statusresponse-property-all-of-removed
- ▲
- ▲
the
//response's property type changed fromobjectto no type for statusresponse-property-type-changed
- ▲
removed the required property
///from the response with the statusresponse-required-property-removed
- ●
removed the optional property
///from the response with the statusresponse-optional-property-removed
- ○
added
subschema #2to the//response propertyallOflist for the response statusresponse-property-all-of-added
- ○
added
subschema #2to the//response propertyallOflist for the response statusresponse-property-all-of-added
- ○
added
subschema #2to the//response propertyallOflist for the response statusresponse-property-all-of-added
- ○
removed
subschema #1from the//response propertyoneOflist for the response statusresponse-property-one-of-removed
- ○
removed
subschema #1from the//response propertyoneOflist for the response statusresponse-property-one-of-removed
- ▲
- ▲
the response property
//became nullable for the statusresponse-property-became-nullable
- ▲
the response property
//became nullable for the statusresponse-property-became-nullable
- ▲
the response property
//became nullable for the statusresponse-property-became-nullable
- ▲
added
subschema #1to the//response propertyoneOflist for the response statusresponse-property-one-of-added
- ▲
added
subschema #1to the//response propertyoneOflist for the response statusresponse-property-one-of-added
- ▲
the
//response's property type changed from no type toobjectfor statusresponse-property-type-changed
- ○
added the optional property
///to the response with the statusresponse-optional-property-added
- ○
removed
subschema #2from the//response propertyallOflist for the response statusresponse-property-all-of-removed
- ○
removed
subschema #2from the//response propertyallOflist for the response statusresponse-property-all-of-removed
- ○
removed
subschema #2from the//response propertyallOflist for the response statusresponse-property-all-of-removed
- ○
added the required property
///to the response with the statusresponse-required-property-added
- ▲
- ▲
the
//response's property type changed fromobjectto no type for statusresponse-property-type-changed
- ▲
removed the required property
///from the response with the statusresponse-required-property-removed
- ●
removed the optional property
///from the response with the statusresponse-optional-property-removed
- ○
added
subschema #2to the//response propertyallOflist for the response statusresponse-property-all-of-added
- ○
added
subschema #2to the//response propertyallOflist for the response statusresponse-property-all-of-added
- ○
added
subschema #2to the//response propertyallOflist for the response statusresponse-property-all-of-added
- ○
removed
subschema #1from the//response propertyoneOflist for the response statusresponse-property-one-of-removed
- ○
removed
subschema #1from the//response propertyoneOflist for the response statusresponse-property-one-of-removed
- ▲
- ○
the response property
///////became required for the statusresponse-property-became-required
- ○
- ○
added the optional property
//////to the response with the statusresponse-optional-property-added
- ○
- ▲
added to the
//response propertyoneOflist for the response statusresponse-property-one-of-added
- ○
added the optional property
//////to the response with the statusresponse-optional-property-added
- ○
removed the
noneenum value from the///response property for the response statusresponse-property-enum-value-removed
- ○
removed from the
//response propertyoneOflist for the response statusresponse-property-one-of-removed
This revision also has 2 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲