> ## Documentation Index
> Fetch the complete documentation index at: https://docs.superoffice.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Consent Infos

> Get all consent information for a given person.

May include withdrawn consents (check



## OpenAPI

````yaml /openapi/rest/openapi-v3-Person.json get /api/v1/Person/{personId}/Consent
openapi: 3.0.0
info:
  version: v1-REST
  title: SuperOffice REST API v1
  description: SuperOffice REST API - Person
  contact:
    name: SuperOffice DevNet
    url: https://docs.superoffice.com/en/api/index.html
    email: sdk@superoffice.com
servers:
  - url: http://localhost:56350
  - url: https://localhost:56350
security: []
tags: []
externalDocs:
  description: >-
    The SuperOffice DevNet Community has more documentation, examples, and
    discussion forums.
  url: https://community.superoffice.com/en/developer/
paths:
  /api/v1/Person/{personId}/Consent:
    get:
      tags:
        - Person
      summary: Get Consent Infos
      description: |-
        Get all consent information for a given person.

        May include withdrawn consents (check
      operationId: v1PersonEntity_GetConsentInfos
      parameters:
        - name: personId
          in: path
          description: The person id to get consents for
          required: true
          schema:
            type: integer
            format: int32
        - name: Accept-Language
          in: header
          description: >-
            Convert string references and multi-language values into a specified
            language (iso2) code.
          required: false
          schema:
            type: string
        - name: SO-Language
          in: header
          description: >-
            Convert string references and multi-language values into a specified
            language (iso2) code. Overrides Accept-Language value.
          required: false
          schema:
            type: string
        - name: SO-Culture
          in: header
          description: >-
            Number, date formatting in a specified culture (iso2 language) code.
            Partially overrides SO-Language/Accept-Language value. Ignored if no
            Language set.
          required: false
          schema:
            type: string
        - name: SO-TimeZone
          in: header
          description: >-
            Specify the timezone code that you would like date/time responses
            converted to.
          required: false
          schema:
            type: string
        - name: SO-AppToken
          in: header
          description: >-
            The application token that identifies the partner app. Used when
            calling Online WebAPI from a server.
          required: false
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/SuperOffice.CRM.Services.ConsentInfo'
            text/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/SuperOffice.CRM.Services.ConsentInfo'
            application/xml:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/SuperOffice.CRM.Services.ConsentInfo'
            text/xml:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/SuperOffice.CRM.Services.ConsentInfo'
            application/json-patch+json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/SuperOffice.CRM.Services.ConsentInfo'
            application/merge-patch+json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/SuperOffice.CRM.Services.ConsentInfo'
      security:
        - SuperOffice_Password: []
          SuperId_Authentication: []
components:
  schemas:
    SuperOffice.CRM.Services.ConsentInfo:
      description: "Consent information for a give person. Consents are for a particular Purpose, and may be withdrawn (see LegalBase).\r\n<para />\r\nCarrier object for ConsentInfo.\r\nServices for the ConsentInfo Carrier is available from the <see cref=\"T:SuperOffice.CRM.Services.IPersonAgent\">Person Agent</see>."
      type: object
      properties:
        ConsentPersonId:
          format: int32
          description: Primary key
          type: integer
        Comment:
          description: Comment regarding this specific consent
          type: string
        Registered:
          format: date-time
          description: When this consent record was created  in UTC.
          type: string
        RegisteredAssociateId:
          format: int32
          description: The ID of the associate who created this record
          type: integer
        Updated:
          format: date-time
          description: When this consent record was last updated  in UTC.
          type: string
        UpdatedAssociateId:
          format: int32
          description: The ID of the associate who last updated this record
          type: integer
        LegalBaseId:
          format: int32
          description: Primary key for the LegalBase associated with this consent
          type: integer
        LegalBaseKey:
          description: Key for the LegalBase associated with this consent
          type: string
        LegalBaseName:
          description: Name of the LegalBase associated with this consent
          type: string
        ConsentPurposeId:
          format: int32
          description: Primary key for the ConsentPurpose associated with this consent
          type: integer
        ConsentPurposeKey:
          description: Key of the ConsentPurpose associated with this consent
          type: string
        ConsentPurposeName:
          description: Name of the ConsentPurpose associated with this consent
          type: string
        ConsentSourceId:
          format: int32
          description: Primary key for the ConsentSource associated with this consent
          type: integer
        ConsentSourceKey:
          description: Key of the ConsentSource associated with this consent
          type: string
        ConsentSourceName:
          description: Name of the ConsentSource associated with this consent
          type: string
        TableRight:
          $ref: '#/components/schemas/SuperOffice.CRM.Security.TableRight'
        FieldProperties:
          description: >-
            Field property dictionary mapping field names to field access
            rights.
          type: object
          additionalProperties:
            $ref: '#/components/schemas/SuperOffice.CRM.Security.FieldProperty'
    SuperOffice.CRM.Security.TableRight:
      description: "Wraps a table right together with an explanatory reason.\r\nCode can indicate why access is restricted."
      type: object
      properties:
        Mask:
          type: string
        Reason:
          type: string
    SuperOffice.CRM.Security.FieldProperty:
      description: >-
        Class holding properties like field length, field type about a field in
        the carrier.
      type: object
      properties:
        FieldRight:
          $ref: '#/components/schemas/SuperOffice.CRM.Security.FieldRight'
        FieldType:
          type: string
        FieldLength:
          format: int32
          description: ''
          type: integer
    SuperOffice.CRM.Security.FieldRight:
      description: "Wraps the field right together with an explanatory reason.\r\nAlso adds logical operators to the field rights so that they can be easily combined."
      type: object
      properties:
        Mask:
          type: string
        Reason:
          type: string

````

## Related topics

- [Get Consent Infos](/en/api/reference/restful/agent/person_agent/get-consent-infos.md)
- [SuperOffice.WebApi.Data.Person GetConsentInfosRequest](/en/api/reference/webapi/SuperOffice.WebApi.Data.Person_GetConsentInfosRequest.md)
- [NSPersonAgent](/en/automation/crmscript/reference/CRMScript.NetServer.NSPersonAgent.md)
- [NSConsentInfo](/en/automation/crmscript/reference/CRMScript.NetServer.NSConsentInfo.md)
- [SuperOffice.WebApi.Data.ConsentInfo](/en/api/reference/webapi/SuperOffice.WebApi.Data.ConsentInfo.md)
- [Get Consent Purpose](/en/api/reference/restful/rest/list_consentpurpose/get-consent-purpose.md)
