> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.cloudraker.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.cloudraker.com/_mcp/server.

# Get the e-signature envelope for a sign-document run

GET https://api.cloudraker.com/spaces/{spaceId}/runs/{runId}/envelope

The sender's view of a `sign-document` run: the envelope (status, document, mode), the signer roster with per-signer status (`pending`/`signed`, email-verified and signed timestamps), and the full audit trail. Requires `space:read` (denied → 404). Returns 404 for a run of any other action. **Never contains signer signing links** — those are bearer capabilities held only by the signers.

Reference: https://docs.cloudraker.com/api/cloud-raker-api/workspace/space-runs/get-space-run-envelope

## OpenAPI Specification

```yaml
openapi: 3.1.0
info:
  title: CloudRaker API
  version: 1.0.0
paths:
  /spaces/{spaceId}/runs/{runId}/envelope:
    get:
      operationId: get-space-run-envelope
      summary: Get the e-signature envelope for a sign-document run
      description: >-
        The sender's view of a `sign-document` run: the envelope (status,
        document, mode), the signer roster with per-signer status
        (`pending`/`signed`, email-verified and signed timestamps), and the full
        audit trail. Requires `space:read` (denied → 404). Returns 404 for a run
        of any other action. **Never contains signer signing links** — those are
        bearer capabilities held only by the signers.
      tags:
        - spaceRuns
      parameters:
        - name: spaceId
          in: path
          required: true
          schema:
            type: string
        - name: runId
          in: path
          required: true
          schema:
            type: string
        - name: Authorization
          in: header
          description: Bearer authentication
          required: true
          schema:
            type: string
      responses:
        '200':
          description: The envelope, its signer roster and its audit trail.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SignEnvelopeView'
servers:
  - url: https://api.cloudraker.com
    description: Production
  - url: https://api.staging.raker.one
    description: Staging
  - url: https://api.dev.raker.one
    description: Development
components:
  schemas:
    SignEnvelopeViewEnvelopeStatus:
      type: string
      enum:
        - pending
        - finalizing
        - completed
        - failed
        - voided
      title: SignEnvelopeViewEnvelopeStatus
    SignEnvelopeViewEnvelope:
      type: object
      properties:
        id:
          type: string
        runId:
          type: string
        docName:
          type: string
        docSha256:
          type: string
        docSize:
          type: number
          format: double
        status:
          $ref: '#/components/schemas/SignEnvelopeViewEnvelopeStatus'
        signatureMode:
          type: string
        message:
          type:
            - string
            - 'null'
        error:
          type:
            - string
            - 'null'
        outputFileId:
          type:
            - string
            - 'null'
          description: The signed PDF, as a file in the space.
        createdAt:
          type: string
          format: date-time
        completedAt:
          type:
            - string
            - 'null'
          format: date-time
        expiresAt:
          type: string
          format: date-time
      required:
        - id
        - runId
        - docName
        - docSha256
        - docSize
        - status
        - signatureMode
        - message
        - error
        - outputFileId
        - createdAt
        - completedAt
        - expiresAt
      title: SignEnvelopeViewEnvelope
    SignEnvelopeViewSignersItemsSource:
      type: string
      enum:
        - install
        - run
      title: SignEnvelopeViewSignersItemsSource
    SignEnvelopeViewSignersItemsStatus:
      type: string
      enum:
        - pending
        - signed
      title: SignEnvelopeViewSignersItemsStatus
    SignEnvelopeViewSignersItems:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        email:
          type: string
          format: email
        position:
          type: integer
        source:
          $ref: '#/components/schemas/SignEnvelopeViewSignersItemsSource'
        status:
          $ref: '#/components/schemas/SignEnvelopeViewSignersItemsStatus'
        emailVerifiedAt:
          type:
            - string
            - 'null'
          format: date-time
        signedAt:
          type:
            - string
            - 'null'
          format: date-time
        typedName:
          type:
            - string
            - 'null'
        lastInvitedAt:
          type: string
          format: date-time
      required:
        - id
        - name
        - email
        - position
        - source
        - status
        - emailVerifiedAt
        - signedAt
        - typedName
        - lastInvitedAt
      title: SignEnvelopeViewSignersItems
    SignEnvelopeViewEventsItems:
      type: object
      properties:
        id:
          type: string
        type:
          type: string
        actor:
          type: string
          description: Signer name, or `system`.
        signerId:
          type:
            - string
            - 'null'
        ip:
          type:
            - string
            - 'null'
        occurredAt:
          type: string
          format: date-time
      required:
        - id
        - type
        - actor
        - signerId
        - ip
        - occurredAt
      title: SignEnvelopeViewEventsItems
    SignEnvelopeView:
      type: object
      properties:
        envelope:
          $ref: '#/components/schemas/SignEnvelopeViewEnvelope'
        signers:
          type: array
          items:
            $ref: '#/components/schemas/SignEnvelopeViewSignersItems'
          description: Ordered by signing position. Never carries a signing link.
        events:
          type: array
          items:
            $ref: '#/components/schemas/SignEnvelopeViewEventsItems'
      required:
        - envelope
        - signers
        - events
      title: SignEnvelopeView
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

```

## Examples



**Request**

```json
{}
```

**Response**

```json
{
  "envelope": {
    "id": "env_9f8b7c6d5a4e3f21",
    "runId": "run_1234567890abcdef",
    "docName": "Purchase_Agreement_2024.pdf",
    "docSha256": "3a7bd3e2360a3d5f8b9c1e2d4f6a7b8c9d0e1f2a3b4c5d6e7f8a9b0c1d2e3f4a",
    "docSize": 254312.5,
    "status": "pending",
    "signatureMode": "sequential",
    "message": "Please review and sign the document at your earliest convenience.",
    "error": null,
    "outputFileId": null,
    "createdAt": "2024-04-10T14:22:00Z",
    "completedAt": null,
    "expiresAt": "2024-05-10T14:22:00Z"
  },
  "signers": [
    {
      "id": "signer_001",
      "name": "Alice Johnson",
      "email": "alice.johnson@example.com",
      "position": 1,
      "source": "run",
      "status": "pending",
      "emailVerifiedAt": "2024-04-10T14:25:00Z",
      "signedAt": null,
      "typedName": null,
      "lastInvitedAt": "2024-04-10T14:22:00Z"
    },
    {
      "id": "signer_002",
      "name": "Bob Smith",
      "email": "bob.smith@example.com",
      "position": 2,
      "source": "run",
      "status": "pending",
      "emailVerifiedAt": null,
      "signedAt": null,
      "typedName": null,
      "lastInvitedAt": "2024-04-10T14:22:00Z"
    }
  ],
  "events": [
    {
      "id": "evt_1001",
      "type": "envelope_created",
      "actor": "system",
      "signerId": null,
      "ip": null,
      "occurredAt": "2024-04-10T14:22:00Z",
      "data": {}
    },
    {
      "id": "evt_1002",
      "type": "signer_invited",
      "actor": "system",
      "signerId": "signer_001",
      "ip": null,
      "occurredAt": "2024-04-10T14:22:05Z",
      "data": {}
    },
    {
      "id": "evt_1003",
      "type": "signer_email_verified",
      "actor": "Alice Johnson",
      "signerId": "signer_001",
      "ip": "198.51.100.23",
      "occurredAt": "2024-04-10T14:25:00Z",
      "data": {}
    }
  ]
}
```

**SDK Code**

```python
import requests

url = "https://api.cloudraker.com/spaces/spaceId/runs/runId/envelope"

payload = {}
headers = {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

response = requests.get(url, json=payload, headers=headers)

print(response.json())
```

```javascript
const url = 'https://api.cloudraker.com/spaces/spaceId/runs/runId/envelope';
const options = {
  method: 'GET',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: '{}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://api.cloudraker.com/spaces/spaceId/runs/runId/envelope"

	payload := strings.NewReader("{}")

	req, _ := http.NewRequest("GET", url, payload)

	req.Header.Add("Authorization", "Bearer <token>")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("https://api.cloudraker.com/spaces/spaceId/runs/runId/envelope")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{}"

response = http.request(request)
puts response.read_body
```

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.cloudraker.com/spaces/spaceId/runs/runId/envelope")
  .header("Authorization", "Bearer <token>")
  .header("Content-Type", "application/json")
  .body("{}")
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.cloudraker.com/spaces/spaceId/runs/runId/envelope', [
  'body' => '{}',
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Content-Type' => 'application/json',
  ],
]);

echo $response->getBody();
```

```csharp
using RestSharp;

var client = new RestClient("https://api.cloudraker.com/spaces/spaceId/runs/runId/envelope");
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "Bearer <token>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = [
  "Authorization": "Bearer <token>",
  "Content-Type": "application/json"
]
let parameters = [] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://api.cloudraker.com/spaces/spaceId/runs/runId/envelope")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```