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

# Get a SaaS provisioning intent

> Return the intent behind a SAAS_PROVISIONING task: the account change (`direction` PROVISION, DEPROVISION or UPDATE) on the application `saasId` for `employeeId`, the address it creates the account with, its entitlements, the task (`taskId`) and the ticket holding it, and `executedAt` once carried out. Take the `intentId` from the task (`getTicket`), then run it with `executeSaasProvisioningIntent`. Refused with `INTENT_NOT_FOUND`.

Key: ReadScope: Company


## OpenAPI

````yaml https://api.getprimo.com/openapi.json get /saas-provisioning-intents/{intentId}
openapi: 3.1.1
info:
  title: Public API - BETA
  description: Read docs on https://docs.getprimo.com/
  version: '1.0'
  contact: {}
servers:
  - url: https://api.getprimo.com
security:
  - apikey: []
tags: []
paths:
  /saas-provisioning-intents/{intentId}:
    get:
      tags:
        - Saas
      summary: Get a SaaS provisioning intent
      description: >-
        Return the intent behind a SAAS_PROVISIONING task: the account change
        (`direction` PROVISION, DEPROVISION or UPDATE) on the application
        `saasId` for `employeeId`, the address it creates the account with, its
        entitlements, the task (`taskId`) and the ticket holding it, and
        `executedAt` once carried out. Take the `intentId` from the task
        (`getTicket`), then run it with `executeSaasProvisioningIntent`. Refused
        with `INTENT_NOT_FOUND`.
      operationId: getSaasProvisioningIntent
      parameters:
        - name: intentId
          required: true
          in: path
          schema:
            type: string
      responses:
        default:
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SaasProvisioningIntent_Output'
components:
  schemas:
    SaasProvisioningIntent_Output:
      type: object
      properties:
        id:
          type: string
          description: Intent id
        taskId:
          description: The SAAS_PROVISIONING task that tracks the account
          anyOf:
            - type: string
            - type: 'null'
        ticketId:
          description: >-
            The ticket holding that task: the parentTicketId sent, or the one
            Primo opened; null when the intent has no task
          anyOf:
            - type: string
            - type: 'null'
        employeeId:
          description: >-
            The employee the account is for; null on an account opened for the
            hire of an onboarding before its employee exists
          anyOf:
            - type: string
            - type: 'null'
        onboardingId:
          description: >-
            The onboarding whose hire the account is for, when it was opened for
            one
          default: null
          anyOf:
            - type: string
            - type: 'null'
        saasId:
          type: string
        direction:
          type: string
          enum:
            - PROVISION
            - DEPROVISION
            - UPDATE
        identityId:
          anyOf:
            - type: string
            - type: 'null'
        email:
          description: The address a PROVISION intent creates the account with
          anyOf:
            - type: string
            - type: 'null'
        groups:
          type: array
          items:
            type: object
            properties:
              id:
                description: >-
                  The entitlement id from `getSaasById`, or null for one only an
                  admin knows by name
                anyOf:
                  - type: string
                  - type: 'null'
              name:
                type: string
                minLength: 1
            required:
              - id
              - name
            additionalProperties: false
        roles:
          type: array
          items:
            type: object
            properties:
              id:
                description: >-
                  The entitlement id from `getSaasById`, or null for one only an
                  admin knows by name
                anyOf:
                  - type: string
                  - type: 'null'
              name:
                type: string
                minLength: 1
            required:
              - id
              - name
            additionalProperties: false
        licenses:
          type: array
          items:
            type: object
            properties:
              id:
                description: >-
                  The entitlement id from `getSaasById`, or null for one only an
                  admin knows by name
                anyOf:
                  - type: string
                  - type: 'null'
              name:
                type: string
                minLength: 1
            required:
              - id
              - name
            additionalProperties: false
        organizationUnits:
          type: array
          items:
            type: object
            properties:
              id:
                description: >-
                  The entitlement id from `getSaasById`, or null for one only an
                  admin knows by name
                anyOf:
                  - type: string
                  - type: 'null'
              name:
                type: string
                minLength: 1
            required:
              - id
              - name
            additionalProperties: false
        executedAt:
          description: >-
            When Primo carried the account out; null while it waits on its date
            or on the admin
          anyOf:
            - type: string
              format: date-time
              pattern: >-
                ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$
            - type: 'null'
        createdAt:
          type: string
          format: date-time
          pattern: >-
            ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$
      required:
        - id
        - taskId
        - ticketId
        - employeeId
        - onboardingId
        - saasId
        - direction
        - identityId
        - email
        - groups
        - roles
        - licenses
        - organizationUnits
        - executedAt
        - createdAt
      additionalProperties: false
  securitySchemes:
    apikey:
      scheme: bearer
      bearerFormat: API key
      type: http
      description: >-
        Use your Primo API key in the Authorization header as `Bearer
        <API_KEY>`.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.