---
updatedAt: 2026-05-27T00:16:27.000Z
agentTools:
  projectIndex: https://360learning.readme.io/llms.txt
---

# Retrieve a path session audience

> 🔑
>
> Required OAuth scope: `paths:read`.

Retrieves information about the path session audience given the path ID and session ID.

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "paths": {
    "/api/v2/paths/{pathId}/sessions/{sessionId}/audiences": {
      "get": {
        "description": "> 🔑\n>\n> Required OAuth scope: `paths:read`.\n\nRetrieves information about the path session audience given the path ID and session ID.",
        "operationId": "v2.paths.GetSessionAudienceController_getSessionAudience",
        "parameters": [
          {
            "name": "360-api-version",
            "in": "header",
            "description": "The version of the API.",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "v2.0"
              ]
            }
          },
          {
            "name": "pathId",
            "required": true,
            "in": "path",
            "description": "The unique ID of the path.",
            "schema": {
              "format": "ObjectId",
              "pattern": "^[a-fA-F0-9]{24}$",
              "example": "507f1f77bcf86cd799439011",
              "type": "string"
            }
          },
          {
            "name": "sessionId",
            "required": true,
            "in": "path",
            "description": "The unique ID of the path session.",
            "schema": {
              "format": "ObjectId",
              "pattern": "^[a-fA-F0-9]{24}$",
              "example": "507f1f77bcf86cd799439011",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Returns the information about the given session audience.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SessionAudienceDTO"
                }
              }
            }
          },
          "400": {
            "description": "The server cannot or will not process the request due to something that is perceived to be a client error.",
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "description": "The given `sessionId` does not belong to the `pathId`.",
                      "title": "Session Not Belong To Path",
                      "type": "object",
                      "properties": {
                        "error": {
                          "type": "object",
                          "properties": {
                            "code": {
                              "type": "string",
                              "enum": [
                                "sessionNotBelongToPath"
                              ]
                            },
                            "message": {
                              "type": "string",
                              "example": "A human-readable message to help with debugging."
                            }
                          },
                          "required": [
                            "code",
                            "message"
                          ]
                        }
                      },
                      "required": [
                        "error"
                      ]
                    },
                    {
                      "description": "The given `sessionId` does not correspond to an audience builder session.",
                      "title": "Session Is Not Audience Builder",
                      "type": "object",
                      "properties": {
                        "error": {
                          "type": "object",
                          "properties": {
                            "code": {
                              "type": "string",
                              "enum": [
                                "sessionIsNotAudienceBuilder"
                              ]
                            },
                            "message": {
                              "type": "string",
                              "example": "A human-readable message to help with debugging."
                            }
                          },
                          "required": [
                            "code",
                            "message"
                          ]
                        }
                      },
                      "required": [
                        "error"
                      ]
                    },
                    {
                      "description": "The given `sessionId` has unsupported filter type.",
                      "title": "Unsupported Audience Filter",
                      "type": "object",
                      "properties": {
                        "error": {
                          "type": "object",
                          "properties": {
                            "code": {
                              "type": "string",
                              "enum": [
                                "unsupportedAudienceFilter"
                              ]
                            },
                            "message": {
                              "type": "string",
                              "example": "A human-readable message to help with debugging."
                            }
                          },
                          "required": [
                            "code",
                            "message"
                          ]
                        }
                      },
                      "required": [
                        "error"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "401": {
            "description": "The given access token is either missing, invalid, has expired, or has been revoked.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string",
                      "enum": [
                        "invalid_token"
                      ]
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          },
          "403": {
            "description": "The given access token does not have the required OAuth scope to execute the request.",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Invalid Scope",
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "enum": [
                            "invalid_scope"
                          ]
                        },
                        "message": {
                          "type": "string",
                          "example": "A human-readable message to help with debugging."
                        }
                      },
                      "required": [
                        "code",
                        "message"
                      ]
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          },
          "404": {
            "description": "The server cannot find the requested resource.",
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "description": "The given `pathId` does not correspond to any existing path.",
                      "title": "Path Not Found",
                      "type": "object",
                      "properties": {
                        "error": {
                          "type": "object",
                          "properties": {
                            "code": {
                              "type": "string",
                              "enum": [
                                "pathNotFound"
                              ]
                            },
                            "message": {
                              "type": "string",
                              "example": "A human-readable message to help with debugging."
                            }
                          },
                          "required": [
                            "code",
                            "message"
                          ]
                        }
                      },
                      "required": [
                        "error"
                      ]
                    },
                    {
                      "description": "The given `sessionId` does not correspond to any existing path session.",
                      "title": "Session Not Found",
                      "type": "object",
                      "properties": {
                        "error": {
                          "type": "object",
                          "properties": {
                            "code": {
                              "type": "string",
                              "enum": [
                                "sessionNotFound"
                              ]
                            },
                            "message": {
                              "type": "string",
                              "example": "A human-readable message to help with debugging."
                            }
                          },
                          "required": [
                            "code",
                            "message"
                          ]
                        }
                      },
                      "required": [
                        "error"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "429": {
            "description": "The client has sent too many requests in a short amount of time. ",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string",
                      "enum": [
                        "tooManyRequests"
                      ]
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          }
        },
        "security": [
          {
            "oauth2": []
          }
        ],
        "summary": "Retrieve a path session audience",
        "tags": [
          "Paths"
        ]
      }
    }
  },
  "info": {
    "title": "Core API",
    "description": "",
    "version": "1.0.0",
    "contact": {}
  },
  "servers": [
    {
      "url": "https://app.360learning.com",
      "description": "Production EU"
    },
    {
      "url": "https://app.us.360learning.com",
      "description": "Production US"
    }
  ],
  "components": {
    "securitySchemes": {
      "oauth2": {
        "type": "oauth2",
        "flows": {
          "clientCredentials": {
            "tokenUrl": "/api/v2/oauth2/token",
            "scopes": {}
          }
        },
        "description": "Use the token from the authentication endpoint in the Authorization header.\n\nExample: `Authorization: Bearer <token>`"
      }
    },
    "schemas": {
      "SessionUsersAudienceFilterDTO": {
        "title": "Session Users Audience Filter",
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "users"
            ],
            "description": "The type of the session audience filter."
          },
          "ids": {
            "example": [
              "507f1f77bcf86cd799439011"
            ],
            "maxItems": 20000,
            "description": "The list of unique IDs in the the audience filter.",
            "type": "array",
            "items": {
              "type": "string",
              "format": "ObjectId",
              "pattern": "^[a-fA-F0-9]{24}$"
            }
          }
        },
        "required": [
          "type",
          "ids"
        ]
      },
      "SessionGroupsAudienceFilterDTO": {
        "title": "Session Groups Audience Filter",
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "groups"
            ],
            "description": "The type of the session audience filter."
          },
          "ids": {
            "example": [
              "507f1f77bcf86cd799439011"
            ],
            "maxItems": 5000,
            "description": "The list of unique IDs in the the audience filter.",
            "type": "array",
            "items": {
              "type": "string",
              "format": "ObjectId",
              "pattern": "^[a-fA-F0-9]{24}$"
            }
          }
        },
        "required": [
          "type",
          "ids"
        ]
      },
      "SessionExcludedLearnersAudienceFilterDTO": {
        "title": "Session Excluded Learners Audience Filter",
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "excludedLearners"
            ],
            "description": "The type of the session audience filter."
          },
          "ids": {
            "example": [
              "507f1f77bcf86cd799439011"
            ],
            "maxItems": 20000,
            "description": "The list of unique IDs in the the audience filter.",
            "type": "array",
            "items": {
              "type": "string",
              "format": "ObjectId",
              "pattern": "^[a-fA-F0-9]{24}$"
            }
          }
        },
        "required": [
          "type",
          "ids"
        ]
      },
      "SessionAudienceDTO": {
        "title": "Session Audience",
        "type": "object",
        "properties": {
          "filters": {
            "description": "The list of filters in the audience.",
            "type": "array",
            "items": {
              "oneOf": [
                {
                  "$ref": "#/components/schemas/SessionUsersAudienceFilterDTO"
                },
                {
                  "$ref": "#/components/schemas/SessionGroupsAudienceFilterDTO"
                },
                {
                  "$ref": "#/components/schemas/SessionExcludedLearnersAudienceFilterDTO"
                }
              ]
            }
          },
          "mode": {
            "type": "string",
            "enum": [
              "dynamic",
              "dynamicEnrollment",
              "dynamicUnenrollment",
              "manual"
            ],
            "description": "The audience builder update mode. Options are:\n- `dynamic`: Learners are dynamically enrolled and unenrolled.\n- `dynamicEnrollment`: Learners are dynamically enrolled.\n- `dynamicUnenrollment`: Learners are dynamically unenrolled.\n- `manual`: The audience is manually updated."
          }
        },
        "required": [
          "filters",
          "mode"
        ]
      }
    }
  },
  "x-readme": {
    "apply-tag-changes": true
  }
}
```