---
title: "Get profile sections. Roles: admin."
method: GET
path: "/api/memberships/{membershipId}/profile-sections"
tags: ["Questions", "Organizations"]
---

# Get profile sections. Roles: admin.

`GET /api/memberships/{membershipId}/profile-sections`

## Request

- Base URL: `https://api.mobilecoach.org` (the document declares no server; this is the origin it was published from)
- URL: `https://api.mobilecoach.org/api/memberships/{membershipId}/profile-sections`
- Auth: none declared

## Path parameters

- `membershipId` integer, required

## Query parameters

- `locale` string

## Response `200`

OK

- ProfileSectionsResponseProfileSectionCoreWithAudience
  - `success` boolean
  - `error` string
  - `profileSections` ProfileSectionCoreWithAudience[]
    - `audit` Audit
      - `createdTime` string, date-time
      - `modifiedTime` string, date-time
      - `modifiedBy` string
    - `alternateLocales` object
      - `empty` boolean
    - `profileSectionId` integer
    - `membershipId` integer
    - `name` string
    - `description` string
    - `seq` integer
    - `external` boolean
    - `idpPluginId` integer
    - `audience` AudienceCore
      - `audit` Audit
        - `createdTime` string, date-time
        - `modifiedTime` string, date-time
        - `modifiedBy` string
      - `audienceId` integer
      - `membershipId` integer
      - `name` string
      - `criterionType` 'AGE' | 'COMPOUND' | 'COURSE' | 'GROUP' | 'IDENTITY_PROVIDER' | 'PROFILE_QUESTION' | 'PROGRAM'
      - `criterionOperator` 'AND' | 'OR' | 'EQUALS' | 'NOT_EQUALS' | 'GREATER_THAN_OR_EQUALS' | 'LESS_THAN_OR_EQUALS'
      - `criterionValue` string
      - `invalidTime` string, date-time
      - `groupDescendantsIncluded` boolean
      - `idpPluginId` integer
    - `locale` string

## Other responses

- `400`: Bad request
- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not found
- `500`: Internal server error

## Changes

- **2026-10-20** `6e5d224eed9b`: 3 warning
  - added the new `AGE` enum value to the `profileSections/items/audience/criterionType` response property for the response status `200`
  - added the new `GREATER_THAN_OR_EQUALS` enum value to the `profileSections/items/audience/criterionOperator` response property for the response status `200`
  - added the new `LESS_THAN_OR_EQUALS` enum value to the `profileSections/items/audience/criterionOperator` response property for the response status `200`
- **2026-09-02** `870f28ba2607`: 5 info
  - added the optional property `error/errorId` to the response with the `400` status
  - added the optional property `error/errorId` to the response with the `401` status
  - added the optional property `error/errorId` to the response with the `403` status
  - added the optional property `error/errorId` to the response with the `404` status
  - …1 more

[Operation history](https://skmtc.dev/mobilecoach/apis/mobilecoach-api/changes/api/memberships/:membershipId/profile-sections/get.md)

---

[API](https://skmtc.dev/mobilecoach/apis/mobilecoach-api.md) - [All operations](https://skmtc.dev/mobilecoach/apis/mobilecoach-api/llms.txt) - [OpenAPI document](https://skmtc.dev/mobilecoach/apis/mobilecoach-api/revisions/df463b248fcb?raw)
