{
  "schemaVersion": 1,
  "operation": {
    "operationId": "getDevelopmentProfileApplication",
    "method": "GET",
    "path": "/api/v1/projects/{project}/targets/{target}/development-profile-application",
    "summary": "Read the local runtime's retained development profile application",
    "description": "",
    "tags": [
      "Connections"
    ],
    "effect": "read",
    "confirmation": "never",
    "authorization": {
      "action": "project.settings.read",
      "mode": "privilege",
      "privilege": "RESOURCE_MANAGE",
      "resolver": "project"
    },
    "parameters": [
      {
        "name": "project",
        "in": "path",
        "required": true,
        "description": "",
        "schema": {
          "maxLength": 200,
          "minLength": 1,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9_.:-]*$",
          "type": "string"
        }
      },
      {
        "name": "target",
        "in": "path",
        "required": true,
        "description": "",
        "schema": {
          "maxLength": 128,
          "minLength": 1,
          "pattern": "^[A-Za-z_][A-Za-z0-9_.:-]{0,127}$",
          "type": "string"
        }
      }
    ],
    "responses": [
      {
        "status": "200",
        "description": "The request has succeeded.",
        "content": [
          {
            "contentType": "application/json",
            "schema": {
              "$ref": "#/components/schemas/DevelopmentProfileApplicationResponse"
            }
          }
        ]
      },
      {
        "status": "400",
        "description": "The server could not understand the request due to invalid syntax.",
        "content": [
          {
            "contentType": "application/problem+json",
            "schema": {
              "$ref": "#/components/schemas/ProblemDetails"
            }
          }
        ]
      },
      {
        "status": "401",
        "description": "Access is unauthorized.",
        "content": [
          {
            "contentType": "application/problem+json",
            "schema": {
              "$ref": "#/components/schemas/ProblemDetails"
            }
          }
        ]
      },
      {
        "status": "403",
        "description": "Access is forbidden.",
        "content": [
          {
            "contentType": "application/problem+json",
            "schema": {
              "$ref": "#/components/schemas/ProblemDetails"
            }
          }
        ]
      },
      {
        "status": "404",
        "description": "The server cannot find the requested resource.",
        "content": [
          {
            "contentType": "application/problem+json",
            "schema": {
              "$ref": "#/components/schemas/ProblemDetails"
            }
          }
        ]
      },
      {
        "status": "409",
        "description": "The request conflicts with the current state of the server.",
        "content": [
          {
            "contentType": "application/problem+json",
            "schema": {
              "$ref": "#/components/schemas/ProblemDetails"
            }
          }
        ]
      },
      {
        "status": "412",
        "description": "Precondition failed.",
        "content": [
          {
            "contentType": "application/problem+json",
            "schema": {
              "$ref": "#/components/schemas/ProblemDetails"
            }
          }
        ]
      },
      {
        "status": "413",
        "description": "Client error",
        "content": [
          {
            "contentType": "application/problem+json",
            "schema": {
              "$ref": "#/components/schemas/ProblemDetails"
            }
          }
        ]
      },
      {
        "status": "415",
        "description": "Client error",
        "content": [
          {
            "contentType": "application/problem+json",
            "schema": {
              "$ref": "#/components/schemas/ProblemDetails"
            }
          }
        ]
      },
      {
        "status": "422",
        "description": "Client error",
        "content": [
          {
            "contentType": "application/problem+json",
            "schema": {
              "$ref": "#/components/schemas/ProblemDetails"
            }
          }
        ]
      },
      {
        "status": "429",
        "description": "Client error",
        "content": [
          {
            "contentType": "application/problem+json",
            "schema": {
              "$ref": "#/components/schemas/ProblemDetails"
            }
          }
        ]
      },
      {
        "status": "500",
        "description": "Server error",
        "content": [
          {
            "contentType": "application/problem+json",
            "schema": {
              "$ref": "#/components/schemas/ProblemDetails"
            }
          }
        ]
      },
      {
        "status": "502",
        "description": "Server error",
        "content": [
          {
            "contentType": "application/problem+json",
            "schema": {
              "$ref": "#/components/schemas/ProblemDetails"
            }
          }
        ]
      },
      {
        "status": "503",
        "description": "Service unavailable.",
        "content": [
          {
            "contentType": "application/problem+json",
            "schema": {
              "$ref": "#/components/schemas/ProblemDetails"
            }
          }
        ]
      }
    ]
  },
  "schemas": {
    "DevelopmentProfileApplicationResponse": {
      "example": {
        "applicationId": "example",
        "appliedConnectionCount": 1,
        "graphDigest": "example",
        "incompleteConnections": [
          "example"
        ],
        "lastCompletedApplicationId": "example",
        "lastCompletedAt": "2026-01-02T15:04:05Z",
        "profileDigest": "example",
        "profileName": "example",
        "requiredConnectionCount": 1,
        "revision": 1,
        "sourceDigest": "example",
        "status": "applying",
        "updatedAt": "2026-01-02T15:04:05Z"
      },
      "properties": {
        "applicationId": {
          "example": "example",
          "type": "string"
        },
        "appliedConnectionCount": {
          "description": "Logical connections whose exact binding and protected credential evidence have been durably applied.",
          "example": 1,
          "format": "int32",
          "type": "integer"
        },
        "graphDigest": {
          "example": "example",
          "type": "string"
        },
        "incompleteConnections": {
          "description": "Required logical connection IDs that are not yet durably applied. Credential references and provider versions are never returned.",
          "example": [
            "example"
          ],
          "items": {
            "maxLength": 200,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9_.:-]*$",
            "type": "string"
          },
          "type": "array"
        },
        "lastCompletedApplicationId": {
          "description": "The completed application retained by this runtime. Absent while its first application is incomplete. In-place replacement is not exposed; use ownership-gated local runtime recreation.",
          "example": "example",
          "type": "string"
        },
        "lastCompletedAt": {
          "example": "2026-01-02T15:04:05Z",
          "format": "date-time",
          "type": "string"
        },
        "profileDigest": {
          "example": "example",
          "type": "string"
        },
        "profileName": {
          "example": "example",
          "type": "string"
        },
        "requiredConnectionCount": {
          "description": "Logical connections required by the retained profile intent. This count contains no credential material.",
          "example": 1,
          "format": "int32",
          "type": "integer"
        },
        "revision": {
          "example": 1,
          "format": "int64",
          "minimum": 1,
          "type": "integer"
        },
        "sourceDigest": {
          "example": "example",
          "type": "string"
        },
        "status": {
          "$ref": "#/components/schemas/DevelopmentProfileApplicationStatus"
        },
        "updatedAt": {
          "example": "2026-01-02T15:04:05Z",
          "format": "date-time",
          "type": "string"
        }
      },
      "required": [
        "applicationId",
        "status",
        "profileName",
        "requiredConnectionCount",
        "appliedConnectionCount",
        "incompleteConnections",
        "sourceDigest",
        "graphDigest",
        "profileDigest",
        "revision",
        "updatedAt"
      ],
      "type": "object"
    },
    "DevelopmentProfileApplicationStatus": {
      "enum": [
        "applying",
        "incomplete",
        "applied"
      ],
      "example": "applying",
      "type": "string"
    },
    "ProblemDetails": {
      "example": {
        "code": "example",
        "detail": "example",
        "errors": [
          {
            "code": "example",
            "detail": "example",
            "field": "example"
          }
        ],
        "instance": "example",
        "requestId": "example",
        "status": 1,
        "title": "example",
        "type": "example"
      },
      "properties": {
        "code": {
          "example": "example",
          "type": "string"
        },
        "detail": {
          "example": "example",
          "type": "string"
        },
        "errors": {
          "example": [
            {
              "code": "example",
              "detail": "example",
              "field": "example"
            }
          ],
          "items": {
            "$ref": "#/components/schemas/ProblemFieldError"
          },
          "type": "array"
        },
        "instance": {
          "example": "example",
          "type": "string"
        },
        "requestId": {
          "example": "example",
          "type": "string"
        },
        "status": {
          "example": 1,
          "format": "int32",
          "type": "integer"
        },
        "title": {
          "example": "example",
          "type": "string"
        },
        "type": {
          "example": "example",
          "type": "string"
        }
      },
      "required": [
        "type",
        "title",
        "status",
        "detail",
        "instance",
        "code",
        "requestId",
        "errors"
      ],
      "type": "object"
    },
    "ProblemFieldError": {
      "example": {
        "code": "example",
        "detail": "example",
        "field": "example"
      },
      "properties": {
        "code": {
          "example": "example",
          "type": "string"
        },
        "detail": {
          "example": "example",
          "type": "string"
        },
        "field": {
          "example": "example",
          "type": "string"
        }
      },
      "required": [
        "field",
        "code",
        "detail"
      ],
      "type": "object"
    }
  }
}
