### GET /sources Source: https://developers.google.com/jules/api/reference/rest/v1alpha/sources?hl=fr Lists all available sources. ```APIDOC ## GET /sources ### Description Lists sources. ### Method GET ### Endpoint `/sources` ``` -------------------------------- ### GET /sources Source: https://developers.google.com/jules/api/reference/rest/v1alpha/sources?hl=id Lists all available sources. ```APIDOC ## GET /sources ### Description Lists sources. ### Method GET ### Endpoint /sources ``` -------------------------------- ### GET /v1alpha/sources Source: https://developers.google.com/jules/api/reference/rest Lists all available sources. ```APIDOC ## GET /v1alpha/sources ### Description Lists sources. ### Method GET ### Endpoint /v1alpha/sources ``` -------------------------------- ### GET /v1alpha/{parent}/activities Source: https://developers.google.com/jules/api/reference/rest/v1alpha/sessions.activities/list?hl=ja Lists all activities for a given session. ```APIDOC ## GET https://jules.googleapis.com/v1alpha/{parent=sessions/*}/activities ### Description Lists activities for a session. ### Method GET ### Endpoint https://jules.googleapis.com/v1alpha/{parent=sessions/*}/activities ### Parameters #### Path Parameters - **parent** (string) - Required - The parent session, which owns this collection of activities. Format: sessions/{session} #### Query Parameters - **pageSize** (integer) - Optional - The number of activities to return. Must be between 1 and 100, inclusive. Defaults to 50. - **pageToken** (string) - Optional - A page token, received from a previous activities.list call. ### Response #### Success Response (200) - **activities** (array) - The activities from the specified session. - **nextPageToken** (string) - A token, which can be sent as pageToken to retrieve the next page. #### Response Example { "activities": [ { "object": "Activity" } ], "nextPageToken": "string" } ``` -------------------------------- ### HTTP GET Request for sources.list Source: https://developers.google.com/jules/api/reference/rest/v1alpha/sources/list?hl=es The endpoint to retrieve a list of sources using the GET method. ```http GET https://jules.googleapis.com/v1alpha/sources ``` -------------------------------- ### GET /v1alpha/sources Source: https://developers.google.com/jules/api/reference/rest/v1alpha/sources/list?hl=ko Lists sources available in the Jules API. ```APIDOC ## GET https://jules.googleapis.com/v1alpha/sources ### Description Lists sources. The URL uses gRPC Transcoding syntax. ### Method GET ### Endpoint https://jules.googleapis.com/v1alpha/sources ### Parameters #### Query Parameters - **filter** (string) - Optional - The filter expression for listing sources, based on AIP-160. Currently only supports filtering by name. - **pageSize** (integer) - Optional - The number of sources to return. Must be between 1 and 100, inclusive. Defaults to 30. - **pageToken** (string) - Optional - A page token, received from a previous sources.list call. ### Request Body The request body must be empty. ### Response #### Success Response (200) - **sources** (array of objects) - The sources from the specified request. - **nextPageToken** (string) - A token, which can be sent as pageToken to retrieve the next page. #### Response Example { "sources": [ { "object": "Source" } ], "nextPageToken": "string" } ``` -------------------------------- ### GET /sessions Source: https://developers.google.com/jules/api/reference/rest/v1alpha/sessions?hl=ko Lists all sessions available to the authenticated user. ```APIDOC ## GET /sessions ### Description Lists all sessions available to the authenticated user. ### Method GET ### Endpoint `/sessions` ### Response #### Success Response (200) - A list of session objects, each conforming to the Session resource structure. #### Response Example ```json [ { "name": "sessions/12345", "id": "12345", "prompt": "Analyze the performance of the latest release.", "sourceContext": { "source": "sources/my-source", "githubRepoContext": { "startingBranch": "main" } }, "title": "Performance Analysis Session", "requirePlanApproval": true, "automationMode": "AUTO_CREATE_PR", "createTime": "2023-10-27T10:00:00Z", "updateTime": "2023-10-27T10:05:00Z", "state": "IN_PROGRESS", "url": "https://jules.example.com/sessions/12345", "outputs": [] }, { "name": "sessions/67890", "id": "67890", "prompt": "Refactor the authentication module.", "sourceContext": { "source": "sources/another-source" }, "title": "Refactoring Auth", "requirePlanApproval": false, "automationMode": "UNSPECIFIED", "createTime": "2023-10-26T15:30:00Z", "updateTime": "2023-10-26T15:35:00Z", "state": "COMPLETED", "url": "https://jules.example.com/sessions/67890", "outputs": [ { "type": "CODE", "content": "Refactored code here..." } ] } ] ``` ``` -------------------------------- ### GET /sources/{name} Source: https://developers.google.com/jules/api/reference/rest/v1alpha/sources/get?hl=de Retrieves a single source resource by its name. ```APIDOC ## GET https://jules.googleapis.com/v1alpha/{name=sources/**} ### Description Gets a single source. ### Method GET ### Endpoint https://jules.googleapis.com/v1alpha/{name=sources/**} ### Parameters #### Path Parameters - **name** (string) - Required - The resource name of the source to retrieve. Format: sources/{source} ### Request Body The request body must be empty. ### Response #### Success Response (200) - **Source** (object) - An instance of the Source resource. ``` -------------------------------- ### GET /sources/{source} Source: https://developers.google.com/jules/api/reference/rest/v1alpha/sources?hl=fr Retrieves a single source by its resource name. ```APIDOC ## GET /sources/{source} ### Description Gets a single source. ### Method GET ### Endpoint `/sources/{source}` ### Parameters #### Path Parameters * `source` (string) - Required - The name of the source to retrieve. ``` -------------------------------- ### GET /v1alpha/sessions Source: https://developers.google.com/jules/api/reference/rest/v1alpha/sessions/list?hl=ru Lists all sessions. Stay organized with collections by saving and categorizing content based on your preferences. ```APIDOC ## GET /v1alpha/sessions ### Description Lists all sessions. Stay organized with collections by saving and categorizing content based on your preferences. ### Method GET ### Endpoint https://jules.googleapis.com/v1alpha/sessions ### Query Parameters - **pageSize** (integer) - Optional. The number of sessions to return. Must be between 1 and 100, inclusive. If unset, defaults to 30. If set to greater than 100, it will be coerced to 100. - **pageToken** (string) - Optional. A page token, received from a previous `sessions.list` call. ### Request Body The request body must be empty. ### Response #### Success Response (200) - **sessions** (array of Session objects) - The sessions from the specified request. - **nextPageToken** (string) - A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted, there are no subsequent pages. #### Response Example ```json { "sessions": [ { "session_field_1": "value1", "session_field_2": "value2" } ], "nextPageToken": "some_token" } ``` ``` -------------------------------- ### GET /v1alpha/{parent=sessions/*}/activities Source: https://developers.google.com/jules/api/reference/rest?hl=pt-br Lists all activities associated with a specific session. ```APIDOC ## GET /v1alpha/{parent=sessions/*}/activities ### Description Lists activities for a session. ### Method GET ### Endpoint /v1alpha/{parent=sessions/*}/activities ### Parameters #### Path Parameters - **parent** (string) - Required - The session resource name. ``` -------------------------------- ### GET /v1alpha/sources Source: https://developers.google.com/jules/api/reference/rest/v1alpha/sources/list?hl=id Lists all available sources, with optional filtering and pagination support. ```APIDOC ## GET https://jules.googleapis.com/v1alpha/sources ### Description Lists sources. The request body must be empty. ### Method GET ### Endpoint https://jules.googleapis.com/v1alpha/sources ### Parameters #### Query Parameters - **filter** (string) - Optional - The filter expression for listing sources, based on AIP-160. Example: 'name=sources/source1 OR name=sources/source2' - **pageSize** (integer) - Optional - The number of sources to return. Must be between 1 and 100, inclusive. Defaults to 30. - **pageToken** (string) - Optional - A page token, received from a previous sources.list call. ### Response #### Success Response (200) - **sources** (array of objects) - The sources from the specified request. - **nextPageToken** (string) - A token, which can be sent as pageToken to retrieve the next page. #### Response Example { "sources": [ { "object": "Source" } ], "nextPageToken": "string" } ``` -------------------------------- ### GET /v1alpha/sessions Source: https://developers.google.com/jules/api/reference/rest/v1alpha/sessions/list?hl=es Lists all sessions available in the Jules API. ```APIDOC ## GET https://jules.googleapis.com/v1alpha/sessions ### Description Lists all sessions. ### Method GET ### Endpoint https://jules.googleapis.com/v1alpha/sessions ### Parameters #### Query Parameters - **pageSize** (integer) - Optional - The number of sessions to return. Must be between 1 and 100, inclusive. If unset, defaults to 30. - **pageToken** (string) - Optional - A page token, received from a previous sessions.list call. ### Response #### Success Response (200) - **sessions[]** (object) - The sessions from the specified request. - **nextPageToken** (string) - A token, which can be sent as pageToken to retrieve the next page. #### Response Example { "sessions": [ { "object": "Session" } ], "nextPageToken": "string" } ``` -------------------------------- ### GET /v1alpha/sessions Source: https://developers.google.com/jules/api/reference/rest/v1alpha/sessions/list?hl=fr Lists all sessions available in the Jules API. ```APIDOC ## GET https://jules.googleapis.com/v1alpha/sessions ### Description Lists all sessions. The URL uses gRPC Transcoding syntax. ### Method GET ### Endpoint https://jules.googleapis.com/v1alpha/sessions ### Parameters #### Query Parameters - **pageSize** (integer) - Optional - The number of sessions to return. Must be between 1 and 100, inclusive. If unset, defaults to 30. - **pageToken** (string) - Optional - A page token, received from a previous sessions.list call. ### Request Body The request body must be empty. ### Response #### Success Response (200) - **sessions** (array) - The sessions from the specified request. - **nextPageToken** (string) - A token, which can be sent as pageToken to retrieve the next page. If this field is omitted, there are no subsequent pages. #### Response Example { "sessions": [ { "object": "Session" } ], "nextPageToken": "string" } ``` -------------------------------- ### GET /v1alpha/sources Source: https://developers.google.com/jules/api/reference/rest/v1alpha/sources/list Lists all available sources, with support for filtering, page size limits, and pagination tokens. ```APIDOC ## GET https://jules.googleapis.com/v1alpha/sources ### Description Lists sources. The request returns a list of sources based on the provided filter criteria. ### Method GET ### Endpoint https://jules.googleapis.com/v1alpha/sources ### Parameters #### Query Parameters - **filter** (string) - Optional - The filter expression for listing sources, based on AIP-160. Example: 'name=sources/source1 OR name=sources/source2' - **pageSize** (integer) - Optional - The number of sources to return. Must be between 1 and 100, inclusive. Defaults to 30. - **pageToken** (string) - Optional - A page token, received from a previous sources.list call. ### Request Body The request body must be empty. ### Response #### Success Response (200) - **sources** (array of objects) - The sources from the specified request. - **nextPageToken** (string) - A token, which can be sent as pageToken to retrieve the next page. #### Response Example { "sources": [ { "object": "Source" } ], "nextPageToken": "string" } ``` -------------------------------- ### GET sessions.activities.get Source: https://developers.google.com/jules/api/reference/rest/v1alpha/sessions.activities/get?hl=pt-br Retrieves a single activity by its resource name. ```APIDOC ## GET sessions.activities.get ### Description Gets a single activity from the Jules API. ### Method GET ### Endpoint https://jules.googleapis.com/v1alpha/{name=sessions/*/activities/*} ### Parameters #### Path Parameters - **name** (string) - Required - The resource name of the activity to retrieve. Format: sessions/{session}/activities/{activity} ### Request Body The request body must be empty. ### Response #### Success Response (200) - **Activity** (object) - An instance of the Activity resource. ``` -------------------------------- ### GET /v1alpha/sources Source: https://developers.google.com/jules/api/reference/rest/v1alpha/sources/list?hl=de Lists sources, allowing for organization with collections. You can save and categorize content based on your preferences. ```APIDOC ## GET /v1alpha/sources ### Description Lists sources. Stay organized with collections. Save and categorize content based on your preferences. ### Method GET ### Endpoint `https://jules.googleapis.com/v1alpha/sources` ### Query Parameters #### Query Parameters - **filter** (string) - Optional - The filter expression for listing sources, based on AIP-160. If not set, all sources will be returned. Currently only supports filtering by name, which can be used to filter by a single source or multiple sources separated by OR. Example filters: - 'name=sources/source1 OR name=sources/source2' - **pageSize** (integer) - Optional - The number of sources to return. Must be between 1 and 100, inclusive. If unset, defaults to 30. If set to greater than 100, it will be coerced to 100. - **pageToken** (string) - Optional - A page token, received from a previous `sources.list` call. ### Request Body The request body must be empty. ### Response #### Success Response (200) - **sources** (array of Source objects) - The sources from the specified request. - **nextPageToken** (string) - A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted, there are no subsequent pages. #### Response Example ```json { "sources": [ { "object (Source)" } ], "nextPageToken": "string" } ``` ``` -------------------------------- ### GET /v1alpha/sessions Source: https://developers.google.com/jules/api/reference/rest/v1alpha/sessions/list?hl=zh-cn Lists all sessions available in the system with support for pagination. ```APIDOC ## GET https://jules.googleapis.com/v1alpha/sessions ### Description Lists all sessions. The URL uses gRPC Transcoding syntax. ### Method GET ### Endpoint https://jules.googleapis.com/v1alpha/sessions ### Parameters #### Query Parameters - **pageSize** (integer) - Optional - The number of sessions to return. Must be between 1 and 100, inclusive. If unset, defaults to 30. - **pageToken** (string) - Optional - A page token, received from a previous sessions.list call. ### Response #### Success Response (200) - **sessions** (array of objects) - The sessions from the specified request. - **nextPageToken** (string) - A token, which can be sent as pageToken to retrieve the next page. If this field is omitted, there are no subsequent pages. #### Response Example { "sessions": [ { "object": "Session" } ], "nextPageToken": "string" } ``` -------------------------------- ### GET /v1alpha/{name=sessions/*/activities/*} Source: https://developers.google.com/jules/api/reference/rest Retrieves details for a specific activity within a session. ```APIDOC ## GET /v1alpha/{name=sessions/*/activities/*} ### Description Gets a single activity. ### Method GET ### Endpoint /v1alpha/{name=sessions/*/activities/*} ### Parameters #### Path Parameters - **name** (string) - Required - The resource name of the activity. ``` -------------------------------- ### GET /sources/{source} Source: https://developers.google.com/jules/api/reference/rest/v1alpha/sources?hl=id Retrieves a single source by its identifier. ```APIDOC ## GET /sources/{source} ### Description Gets a single source. ### Method GET ### Endpoint /sources/{source} ### Parameters #### Path Parameters - **source** (string) - Required - The identifier of the source. ``` -------------------------------- ### GET /v1alpha/{name=sessions/*} Source: https://developers.google.com/jules/api/reference/rest/v1alpha/sessions/get?hl=ru Retrieves a single session resource by its name. ```APIDOC ## GET https://jules.googleapis.com/v1alpha/{name=sessions/*} ### Description Gets a single session resource. ### Method GET ### Endpoint https://jules.googleapis.com/v1alpha/{name=sessions/*} ### Parameters #### Path Parameters - **name** (string) - Required - The resource name of the session to retrieve. Format: sessions/{session} ### Request Body The request body must be empty. ### Response #### Success Response (200) - **Session** (object) - An instance of the Session resource. ``` -------------------------------- ### GET /v1alpha/sources Source: https://developers.google.com/jules/api/reference/rest/v1alpha/sources/list?hl=ja Lists all sources available in the Jules API, with optional filtering and pagination support. ```APIDOC ## GET https://jules.googleapis.com/v1alpha/sources ### Description Lists sources. The request retrieves a collection of sources based on optional filter criteria. ### Method GET ### Endpoint https://jules.googleapis.com/v1alpha/sources ### Parameters #### Query Parameters - **filter** (string) - Optional - The filter expression for listing sources, based on AIP-160. - **pageSize** (integer) - Optional - The number of sources to return. Must be between 1 and 100, inclusive. Defaults to 30. - **pageToken** (string) - Optional - A page token, received from a previous sources.list call. ### Response #### Success Response (200) - **sources** (array of objects) - The sources from the specified request. - **nextPageToken** (string) - A token, which can be sent as pageToken to retrieve the next page. #### Response Example { "sources": [ { "name": "sources/source1" } ], "nextPageToken": "token_string" } ``` -------------------------------- ### GET /v1alpha/sessions Source: https://developers.google.com/jules/api/reference/rest/v1alpha/sessions/list?hl=pt-br Lists all sessions, allowing for organization and categorization of content based on user preferences. Supports pagination. ```APIDOC ## GET /v1alpha/sessions ### Description Lists all sessions. Stay organized with collections by saving and categorizing content based on your preferences. ### Method GET ### Endpoint `https://jules.googleapis.com/v1alpha/sessions` ### Query Parameters #### Query Parameters - **pageSize** (integer) - Optional - The number of sessions to return. Must be between 1 and 100, inclusive. If unset, defaults to 30. If set to greater than 100, it will be coerced to 100. - **pageToken** (string) - Optional - A page token, received from a previous `sessions.list` call. ### Request Body The request body must be empty. ### Response #### Success Response (200) - **sessions** (array of Session objects) - The sessions from the specified request. - **nextPageToken** (string) - A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted, there are no subsequent pages. #### Response Example ```json { "sessions": [ { "session_id": "string", "name": "string", "description": "string", "create_time": "timestamp", "update_time": "timestamp" } ], "nextPageToken": "string" } ``` ``` -------------------------------- ### GET /v1alpha/sessions Source: https://developers.google.com/jules/api/reference/rest/v1alpha/sessions/list?hl=ja Lists all sessions. Allows for pagination using pageSize and pageToken. ```APIDOC ## GET /v1alpha/sessions ### Description Lists all sessions. Stay organized with collections. Save and categorize content based on your preferences. ### Method GET ### Endpoint https://jules.googleapis.com/v1alpha/sessions ### Query Parameters #### Query Parameters - **pageSize** (integer) - Optional. The number of sessions to return. Must be between 1 and 100, inclusive. If unset, defaults to 30. If set to greater than 100, it will be coerced to 100. - **pageToken** (string) - Optional. A page token, received from a previous `sessions.list` call. ### Request Body The request body must be empty. ### Response #### Success Response (200) - **sessions** (array of Session objects) - The sessions from the specified request. - **nextPageToken** (string) - A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted, there are no subsequent pages. #### Response Example ```json { "sessions": [ { "object": "Session" } ], "nextPageToken": "string" } ``` ``` -------------------------------- ### Get Activity Source: https://developers.google.com/jules/api/reference/rest/v1alpha/sessions.activities/get?hl=fr Retrieves a single activity by its resource name. The URL uses gRPC Transcoding syntax. ```APIDOC ## GET /v1alpha/{name=sessions/*/activities/*} ### Description Gets a single activity. Stay organized with collections. Save and categorize content based on your preferences. ### Method GET ### Endpoint `https://jules.googleapis.com/v1alpha/{name=sessions/*/activities/*}` ### Parameters #### Path Parameters - **name** (string) - Required - The resource name of the activity to retrieve. Format: sessions/{session}/activities/{activity}. It takes the form sessions/{session}/activities/{activities}. ### Request Body The request body must be empty. ### Response #### Success Response (200) If successful, the response body contains an instance of `Activity`. ``` -------------------------------- ### GET /v1alpha/sessions Source: https://developers.google.com/jules/api/reference/rest/v1alpha/sessions/list?hl=id Retrieves a list of all sessions available in the Jules API. ```APIDOC ## GET https://jules.googleapis.com/v1alpha/sessions ### Description Lists all sessions. The request returns a paginated list of session objects. ### Method GET ### Endpoint https://jules.googleapis.com/v1alpha/sessions ### Parameters #### Query Parameters - **pageSize** (integer) - Optional - The number of sessions to return. Must be between 1 and 100, inclusive. Defaults to 30. - **pageToken** (string) - Optional - A page token, received from a previous sessions.list call. ### Response #### Success Response (200) - **sessions** (array of objects) - The sessions from the specified request. - **nextPageToken** (string) - A token, which can be sent as pageToken to retrieve the next page. #### Response Example { "sessions": [ { "object": "Session" } ], "nextPageToken": "string" } ``` -------------------------------- ### GET sessions.activities.get Source: https://developers.google.com/jules/api/reference/rest/v1alpha/sessions.activities/get?hl=id Retrieves a single activity resource based on the provided session and activity identifiers. ```APIDOC ## GET sessions.activities.get ### Description Gets a single activity. ### Method GET ### Endpoint https://jules.googleapis.com/v1alpha/{name=sessions/*/activities/*} ### Parameters #### Path Parameters - **name** (string) - Required - The resource name of the activity to retrieve. Format: sessions/{session}/activities/{activity} ### Response #### Success Response (200) - **Activity** (object) - The response body contains an instance of Activity. ``` -------------------------------- ### GET sessions.activities.get Source: https://developers.google.com/jules/api/reference/rest/v1alpha/sessions.activities/get?hl=es Retrieves a single activity resource based on the provided session and activity identifiers. ```APIDOC ## GET sessions.activities.get ### Description Gets a single activity. ### Method GET ### Endpoint https://jules.googleapis.com/v1alpha/{name=sessions/*/activities/*} ### Parameters #### Path Parameters - **name** (string) - Required - The resource name of the activity to retrieve. Format: sessions/{session}/activities/{activity} ### Request Body The request body must be empty. ### Response #### Success Response (200) - **Activity** (object) - The response body contains an instance of Activity. ``` -------------------------------- ### GET sessions.activities.get Source: https://developers.google.com/jules/api/reference/rest/v1alpha/sessions.activities/get Retrieves a single activity resource based on the provided session and activity identifiers. ```APIDOC ## GET sessions.activities.get ### Description Gets a single activity. ### Method GET ### Endpoint https://jules.googleapis.com/v1alpha/{name=sessions/*/activities/*} ### Parameters #### Path Parameters - **name** (string) - Required - The resource name of the activity to retrieve. Format: sessions/{session}/activities/{activity} ### Request Body The request body must be empty. ### Response #### Success Response (200) - **Activity** (object) - An instance of the Activity resource. ``` -------------------------------- ### GET /v1alpha/sessions Source: https://developers.google.com/jules/api/reference/rest/v1alpha/sessions/list?hl=ko Lists all sessions. Allows for pagination and controlling the number of results returned. ```APIDOC ## GET /v1alpha/sessions ### Description Lists all sessions. Stay organized with collections. Save and categorize content based on your preferences. ### Method GET ### Endpoint https://jules.googleapis.com/v1alpha/sessions ### Query Parameters #### Query Parameters - **pageSize** (integer) - Optional. The number of sessions to return. Must be between 1 and 100, inclusive. If unset, defaults to 30. If set to greater than 100, it will be coerced to 100. - **pageToken** (string) - Optional. A page token, received from a previous `sessions.list` call. ### Request Body The request body must be empty. ### Response #### Success Response (200) - **sessions** (array of Session objects) - The sessions from the specified request. - **nextPageToken** (string) - A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted, there are no subsequent pages. #### Response Example ```json { "sessions": [ { "session_id": "string", "name": "string", "description": "string", "createTime": "timestamp", "updateTime": "timestamp" } ], "nextPageToken": "string" } ``` ``` -------------------------------- ### GET /sessions/{parent}/activities Source: https://developers.google.com/jules/api/reference/rest/v1alpha/sessions.activities/list?hl=ru Lists all activities for a given session. Supports pagination via pageSize and pageToken parameters. ```APIDOC ## GET /sessions/{parent}/activities ### Description Lists activities for a session. ### Method GET ### Endpoint https://jules.googleapis.com/v1alpha/{parent=sessions/*}/activities ### Parameters #### Path Parameters - **parent** (string) - Required - The parent session, which owns this collection of activities. Format: sessions/{session} #### Query Parameters - **pageSize** (integer) - Optional - The number of activities to return. Must be between 1 and 100, inclusive. Defaults to 50. - **pageToken** (string) - Optional - A page token, received from a previous activities.list call. ### Response #### Success Response (200) - **activities** (array of objects) - The activities from the specified session. - **nextPageToken** (string) - A token, which can be sent as pageToken to retrieve the next page. #### Response Example { "activities": [ { "object": "Activity" } ], "nextPageToken": "string" } ``` -------------------------------- ### GET /v1alpha/{name=sessions/*} Source: https://developers.google.com/jules/api/reference/rest/v1alpha/sessions/get Retrieves a single session resource based on the provided session name. ```APIDOC ## GET https://jules.googleapis.com/v1alpha/{name=sessions/*} ### Description Gets a single session resource. ### Method GET ### Endpoint https://jules.googleapis.com/v1alpha/{name=sessions/*} ### Parameters #### Path Parameters - **name** (string) - Required - The resource name of the session to retrieve. Format: sessions/{session} ### Request Body The request body must be empty. ### Response #### Success Response (200) - **Session** (object) - An instance of the requested session. ``` -------------------------------- ### GET /sessions/{session}/activities/{activity} Source: https://developers.google.com/jules/api/reference/rest/v1alpha/sessions.activities/get?hl=ja Retrieves a single activity resource based on the provided session and activity identifiers. ```APIDOC ## GET https://jules.googleapis.com/v1alpha/sessions/{session}/activities/{activity} ### Description Gets a single activity. ### Method GET ### Endpoint https://jules.googleapis.com/v1alpha/{name=sessions/*/activities/*} ### Parameters #### Path Parameters - **name** (string) - Required - The resource name of the activity to retrieve. Format: sessions/{session}/activities/{activity} ### Request Body The request body must be empty. ### Response #### Success Response (200) - **Activity** (object) - An instance of the Activity resource. ``` -------------------------------- ### GET /v1alpha/{name=sessions/*} Source: https://developers.google.com/jules/api/reference/rest/v1alpha/sessions/get?hl=es Retrieves a single session. Sessions can be saved and categorized based on user preferences. ```APIDOC ## GET /v1alpha/{name=sessions/*} ### Description Gets a single session. Stay organized with collections by saving and categorizing content based on your preferences. ### Method GET ### Endpoint `https://jules.googleapis.com/v1alpha/{name=sessions/*}` ### Parameters #### Path Parameters - **name** (string) - Required - The resource name of the session to retrieve. Format: sessions/{session}. It takes the form `sessions/{session}`. ### Request Body The request body must be empty. ### Response #### Success Response (200) If successful, the response body contains an instance of `Session`. ``` -------------------------------- ### GET /sessions/{parent}/activities Source: https://developers.google.com/jules/api/reference/rest/v1alpha/sessions.activities/list?hl=zh-cn Lists all activities for a specified session. Supports pagination via pageSize and pageToken parameters. ```APIDOC ## GET /sessions/{parent}/activities ### Description Lists activities for a session. ### Method GET ### Endpoint https://jules.googleapis.com/v1alpha/{parent=sessions/*}/activities ### Parameters #### Path Parameters - **parent** (string) - Required - The parent session, which owns this collection of activities. Format: sessions/{session} #### Query Parameters - **pageSize** (integer) - Optional - The number of activities to return. Must be between 1 and 100, inclusive. Defaults to 50. - **pageToken** (string) - Optional - A page token, received from a previous activities.list call. ### Response #### Success Response (200) - **activities[]** (object) - The activities from the specified session. - **nextPageToken** (string) - A token, which can be sent as pageToken to retrieve the next page. #### Response Example { "activities": [ { "object": "Activity" } ], "nextPageToken": "string" } ``` -------------------------------- ### GET /v1alpha/sessions Source: https://developers.google.com/jules/api/reference/rest/v1alpha/sessions/list Lists all sessions available in the Jules API. Supports pagination via pageSize and pageToken. ```APIDOC ## GET https://jules.googleapis.com/v1alpha/sessions ### Description Lists all sessions. The URL uses gRPC Transcoding syntax. ### Method GET ### Endpoint https://jules.googleapis.com/v1alpha/sessions ### Parameters #### Query Parameters - **pageSize** (integer) - Optional - The number of sessions to return. Must be between 1 and 100, inclusive. Defaults to 30. - **pageToken** (string) - Optional - A page token, received from a previous sessions.list call. ### Request Body The request body must be empty. ### Response #### Success Response (200) - **sessions** (array of objects) - The sessions from the specified request. - **nextPageToken** (string) - A token, which can be sent as pageToken to retrieve the next page. If this field is omitted, there are no subsequent pages. #### Response Example { "sessions": [ { "object": "Session" } ], "nextPageToken": "string" } ``` -------------------------------- ### GET /v1alpha/{name=sources/**} Source: https://developers.google.com/jules/api/reference/rest/v1alpha/sources/get?hl=fr Retrieves a single source. This endpoint allows you to fetch specific source information using its resource name. ```APIDOC ## GET /v1alpha/{name=sources/**} ### Description Gets a single source. Stay organized with collections. Save and categorize content based on your preferences. ### Method GET ### Endpoint `https://jules.googleapis.com/v1alpha/{name=sources/**}` ### Parameters #### Path Parameters - **name** (string) - Required - The resource name of the source to retrieve. Format: sources/{source}. It takes the form `sources/{+source}`. ### Request Body The request body must be empty. ### Response #### Success Response (200) If successful, the response body contains an instance of `Source`. ``` -------------------------------- ### POST /sessions Source: https://developers.google.com/jules/api/reference/rest/v1alpha/sessions?hl=ko Creates a new session with the specified prompt and source context. Optional parameters include title, requirePlanApproval, and automationMode. ```APIDOC ## POST /sessions ### Description Creates a new session. ### Method POST ### Endpoint `/sessions` ### Parameters #### Request Body - `prompt` (string) - Required. The prompt to start the session with. - `sourceContext` (object(`SourceContext`)) - Required. The source to use in this session, with additional context. - `title` (string) - Optional. If not provided, the system will generate one. - `requirePlanApproval` (boolean) - Optional. Input only. If true, plans the agent generates will require explicit plan approval before the agent starts working. If not set, plans will be auto-approved. - `automationMode` (enum(`AutomationMode`)) - Optional. Input only. The automation mode of the session. If not set, the default automation mode will be used. ### Request Example ```json { "prompt": "Analyze the performance of the latest release.", "sourceContext": { "source": "sources/my-source", "githubRepoContext": { "startingBranch": "main" } }, "title": "Performance Analysis Session", "requirePlanApproval": true, "automationMode": "AUTO_CREATE_PR" } ``` ### Response #### Success Response (200) - `name` (string) - Output only. Identifier. The full resource name (e.g., "sessions/{session}"). - `id` (string) - Output only. The id of the session. This is the same as the "{session}" part of the resource name (e.g., "sessions/{session}"). - `prompt` (string) - Required. The prompt to start the session with. - `sourceContext` (object(`SourceContext`)) - Required. The source to use in this session, with additional context. - `title` (string) - Optional. If not provided, the system will generate one. - `requirePlanApproval` (boolean) - Optional. Input only. If true, plans the agent generates will require explicit plan approval before the agent starts working. If not set, plans will be auto-approved. - `automationMode` (enum(`AutomationMode`)) - Optional. Input only. The automation mode of the session. If not set, the default automation mode will be used. - `createTime` (string(`Timestamp` format)) - Output only. The time the session was created. - `updateTime` (string(`Timestamp` format)) - Output only. The time the session was last updated. - `state` (enum(`State`)) - Output only. The state of the session. - `url` (string) - Output only. The URL of the session to view the session in the Jules web app. - `outputs[]` (object(`SessionOutput`)) - Output only. The outputs of the session, if any. #### Response Example ```json { "name": "sessions/12345", "id": "12345", "prompt": "Analyze the performance of the latest release.", "sourceContext": { "source": "sources/my-source", "githubRepoContext": { "startingBranch": "main" } }, "title": "Performance Analysis Session", "requirePlanApproval": true, "automationMode": "AUTO_CREATE_PR", "createTime": "2023-10-27T10:00:00Z", "updateTime": "2023-10-27T10:05:00Z", "state": "IN_PROGRESS", "url": "https://jules.example.com/sessions/12345", "outputs": [] } ``` ``` -------------------------------- ### POST /sessions Source: https://developers.google.com/jules/api/reference/rest/v1alpha/sessions?hl=ja Creates a new session with the specified prompt and source context. ```APIDOC ## POST /sessions Creates a new session. ### Method POST ### Endpoint `/sessions` ### Parameters #### Request Body - **prompt** (string) - Required - The prompt to start the session with. - **sourceContext** (object) - Required - The source to use in this session, with additional context. - **source** (string) - Required - The name of the source this context is for. Format: sources/{source} - **githubRepoContext** (object) - Optional - Context to use a GitHubRepo in a session. - **startingBranch** (string) - Required - The name of the branch to start the session from. - **title** (string) - Optional - If not provided, the system will generate one. - **requirePlanApproval** (boolean) - Optional - Input only. If true, plans the agent generates will require explicit plan approval before the agent starts working. If not set, plans will be auto-approved. - **automationMode** (enum) - Optional - Input only. The automation mode of the session. If not set, the default automation mode will be used. ### Request Example ```json { "prompt": "Create a new feature based on the user story.", "sourceContext": { "source": "sources/my-repo", "githubRepoContext": { "startingBranch": "main" } }, "title": "New Feature Implementation", "requirePlanApproval": true, "automationMode": "AUTO_CREATE_PR" } ``` ### Response #### Success Response (200) - **name** (string) - Output only. Identifier. The full resource name (e.g., "sessions/{session}"). - **id** (string) - Output only. The id of the session. - **prompt** (string) - The prompt to start the session with. - **sourceContext** (object) - The source to use in this session, with additional context. - **title** (string) - The title of the session. - **requirePlanApproval** (boolean) - If true, plans require explicit approval. - **automationMode** (enum) - The automation mode of the session. - **createTime** (string) - Output only. The time the session was created. - **updateTime** (string) - Output only. The time the session was last updated. - **state** (enum) - Output only. The state of the session. - **url** (string) - Output only. The URL of the session. - **outputs** (array) - Output only. The outputs of the session, if any. #### Response Example ```json { "name": "sessions/12345", "id": "12345", "prompt": "Create a new feature based on the user story.", "sourceContext": { "source": "sources/my-repo", "githubRepoContext": { "startingBranch": "main" } }, "title": "New Feature Implementation", "requirePlanApproval": true, "automationMode": "AUTO_CREATE_PR", "createTime": "2023-10-27T10:00:00Z", "updateTime": "2023-10-27T10:05:00Z", "state": "PLANNING", "url": "https://jules.example.com/sessions/12345", "outputs": [] } ``` ``` -------------------------------- ### GET /v1alpha/{name=sessions/*} Source: https://developers.google.com/jules/api/reference/rest/v1alpha/sessions/get?hl=id Retrieves a single session. This endpoint is used to get specific session details based on its resource name. ```APIDOC ## GET /v1alpha/{name=sessions/*} ### Description Gets a single session. Stay organized with collections. Save and categorize content based on your preferences. ### Method GET ### Endpoint `https://jules.googleapis.com/v1alpha/{name=sessions/*}` ### Parameters #### Path Parameters - **name** (string) - Required - The resource name of the session to retrieve. Format: sessions/{session}. It takes the form `sessions/{session}`. ### Request Body The request body must be empty. ### Response #### Success Response (200) If successful, the response body contains an instance of `Session`. ``` -------------------------------- ### POST /v1alpha/sessions Source: https://developers.google.com/jules/api/reference/rest/v1alpha/sessions/create?hl=id Creates a new session. Stay organized with collections by saving and categorizing content based on your preferences. ```APIDOC ## POST /v1alpha/sessions ### Description Creates a new session. ### Method POST ### Endpoint `https://jules.googleapis.com/v1alpha/sessions` ### Request Body The request body contains an instance of `Session`. ### Response #### Success Response (200) If successful, the response body contains a newly created instance of `Session`. ``` -------------------------------- ### POST /sessions/{session}:approvePlan Source: https://developers.google.com/jules/api/reference/rest/v1alpha/sessions/approvePlan?hl=ko Approves a plan in a session using the gRPC Transcoding syntax. ```APIDOC ## POST /sessions/{session}:approvePlan ### Description Approves a plan in a session. ### Method POST ### Endpoint https://jules.googleapis.com/v1alpha/{session=sessions/*}:approvePlan ### Parameters #### Path Parameters - **session** (string) - Required - The resource name of the session to approve the plan in. Format: sessions/{session} ### Request Body The request body must be empty. ### Response #### Success Response (200) - The response body is empty. ``` -------------------------------- ### Session Methods Source: https://developers.google.com/jules/api/reference/rest/v1alpha/sessions?hl=es Overview of available methods for interacting with session resources. ```APIDOC ## Methods ### approvePlan Approves a plan in a session. ### create Creates a new session. ### get Gets a single session. ### list Lists all sessions. ### sendMessage Sends a message from the user to a session. ``` -------------------------------- ### Methods Source: https://developers.google.com/jules/api/reference/rest/v1alpha/sources Available methods for interacting with the Source resource. ```APIDOC ## Methods ### `get` Gets a single source. ### `list` Lists sources. ``` -------------------------------- ### POST /v1alpha/sessions Source: https://developers.google.com/jules/api/reference/rest Creates a new session. ```APIDOC ## POST /v1alpha/sessions ### Description Creates a new session. ### Method POST ### Endpoint /v1alpha/sessions ``` -------------------------------- ### GET /sessions/{session} Source: https://developers.google.com/jules/api/reference/rest/v1alpha/sessions?hl=ko Retrieves a specific session by its resource name. ```APIDOC ## GET /sessions/{session} ### Description Retrieves a specific session. ### Method GET ### Endpoint `/sessions/{session}` ### Parameters #### Path Parameters - **session** (string) - Required - The resource name of the session to retrieve (e.g., "sessions/12345"). ### Response #### Success Response (200) - `name` (string) - Output only. Identifier. The full resource name (e.g., "sessions/{session}"). - `id` (string) - Output only. The id of the session. This is the same as the "{session}" part of the resource name (e.g., "sessions/{session}"). - `prompt` (string) - Required. The prompt to start the session with. - `sourceContext` (object(`SourceContext`)) - Required. The source to use in this session, with additional context. - `title` (string) - Optional. If not provided, the system will generate one. - `requirePlanApproval` (boolean) - Optional. Input only. If true, plans the agent generates will require explicit plan approval before the agent starts working. If not set, plans will be auto-approved. - `automationMode` (enum(`AutomationMode`)) - Optional. Input only. The automation mode of the session. If not set, the default automation mode will be used. - `createTime` (string(`Timestamp` format)) - Output only. The time the session was created. - `updateTime` (string(`Timestamp` format)) - Output only. The time the session was last updated. - `state` (enum(`State`)) - Output only. The state of the session. - `url` (string) - Output only. The URL of the session to view the session in the Jules web app. - `outputs[]` (object(`SessionOutput`)) - Output only. The outputs of the session, if any. #### Response Example ```json { "name": "sessions/12345", "id": "12345", "prompt": "Analyze the performance of the latest release.", "sourceContext": { "source": "sources/my-source", "githubRepoContext": { "startingBranch": "main" } }, "title": "Performance Analysis Session", "requirePlanApproval": true, "automationMode": "AUTO_CREATE_PR", "createTime": "2023-10-27T10:00:00Z", "updateTime": "2023-10-27T10:05:00Z", "state": "IN_PROGRESS", "url": "https://jules.example.com/sessions/12345", "outputs": [] } ``` ```