> This page is for Postman API Docs.

> For clean Markdown content of this page, append .md to this URL. For the complete documentation index, see https://learning.postman.com/llms.txt.

# Generate an SDK

POST https://api.postman.com/sdks
Content-Type: application/json

Creates an asynchronous generation job for a single SDK (in one language) from a collection or specification.

To get the status of an SDK's generation, use the GET `/sdks/{sdkId}` endpoint and track its `buildStatus`. When the status is the `succeeded` value, the SDK is ready to download. You can also use the URL in the POST response's `Location` header.

**Note:**

The request body is determined by the given `language` value, so only provide the properties relevant to that language's SDK.

Reference: https://learning.postman.com/api-docs/api-reference/sd-ks/create-sdk

## Authentication

- `x-api-key` header (required) — API Key authentication via header

## Servers

- `https://api.postman.com` (https://api.postman.com, default)
- `https://api.eu.postman.com` (https://api.eu.postman.com)

## Request

### Body (application/json)

This endpoint expects a createSdk.

- `source` (sdkSource, required) — The collection or specification that the SDK is generated from.
- `language` (enum, required) — The target output language for the generated SDK.
  - Allowed values: `typescript`, `python`, `go`, `java`, `csharp`, `ruby`, `php`, `kotlin`, `rust`, `cli`
- `sdkVersion` (string, optional) — An optional override for the SDK version. If this isn't provided, the next version is resolved from the latest auto-pull request.
- `authors` (list of sdkAuthorData, optional) — A list of package authors written into the generated manifest.
- `retry` (sdkRetryOptions, optional) — Retry behavior baked into the generated SDK's HTTP client. A power-user option; sensible defaults apply for any field left unset.
- `typescriptOptions` (typescriptOptions, optional) — TypeScript-specific SDK generation options.
- `pythonOptions` (pythonOptions, optional) — Python-specific SDK generation options.
- `goOptions` (goOptions, optional) — Go-specific SDK generation options.
- `javaOptions` (javaOptions, optional) — Java-specific SDK generation options.
- `csharpOptions` (csharpOptions, optional) — C#-specific SDK generation options.
- `rubyOptions` (rubyOptions, optional) — Ruby-specific generation options.
- `phpOptions` (phpOptions, optional) — PHP-specific SDK generation options.
- `kotlinOptions` (kotlinOptions, optional) — Kotlin-specific SDK generation options.
- `rustOptions` (rustOptions, optional) — Rust-specific SDK generation options.
- `cliOptions` (cliOptions, optional) — CLI-specific SDK generation options.

## Response

### 202

Successful Response

## Errors

### 400 Bad Request Error

Malformed Request

- `type` (string, required) — The [URI reference](https://www.rfc-editor.org/rfc/rfc3986) that identifies the type of problem.
- `title` (string, required) — A short summary of the problem.
- `status` (integer, required) — The error's HTTP status code.
- `detail` (string, optional) — Information about the error.
- `instance` (string, optional) — A URI reference that identifies the specific occurrence of the problem.
- `requestId` (string, optional) — The request's ID.

### 401 Unauthorized Error

Unauthorized

- `CreateSdkRequestUnauthorizedError`
  - Error (Type, Title, Detail, Status): commonErrorTypeTitleDetailStatus
  - Error (Name, Message): commonErrorNameMessage

### 403 Forbidden Error

Forbidden

- `CreateSdkRequestForbiddenError`
  - Error (Type, Title, Detail, Status): commonErrorTypeTitleDetailStatus
  - Error (Name, Message): commonErrorNameMessage

### 422 Unprocessable Entity Error

Unprocessable Entity

- `type` (CommonErrorTypeTitleDetailStatusType, optional) — The type of error.
- `title` (string, optional) — A short summary of the problem.
- `detail` (string, optional) — Information about the error.
- `status` (integer, optional) — The error's HTTP status code.

### 429 Too Many Requests Error

Too Many Requests

- `type` (CommonErrorTypeTitleDetailStatusType, optional) — The type of error.
- `title` (string, optional) — A short summary of the problem.
- `detail` (string, optional) — Information about the error.
- `status` (integer, optional) — The error's HTTP status code.

### 500 Internal Server Error

Internal Server Error

- `CreateSdkRequestInternalServerError`
  - Error (Type, Title, Detail): commonErrorTypeTitleDetail
  - Error (Type, Title, Detail, Status): commonErrorTypeTitleDetailStatus
  - Error (Name, Message): commonErrorNameMessage

## Types

### sdkSource

The collection or specification that the SDK is generated from.

- `type` (enum, required) — The type of Postman element.
  - Allowed values: `collection`, `spec`
- `id` (string, required) — The ID of the Postman Collection or specification in Postman.

### sdkAuthorData

Information about the author of the generated SDK.

- `name` (string, required) — The author's name.
- `email` (string, optional) — The author's email address.

### sdkRetryOptions

Retry behavior baked into the generated SDK's HTTP client. A power-user option; sensible defaults apply for any field left unset.

- `retryDelay` (integer, required, default: 150) — The base wait between attempts, in milliseconds.
- `enabled` (boolean, optional, default: true) — If true, the generated SDK includes retry behavior.
- `maxAttempts` (integer, optional, default: 3) — The maximum number of attempts to try before giving up.
- `maxDelay` (integer, optional) — The maximum wait between attempts, in milliseconds.
- `backOffFactor` (double, optional) — The exponent base used to compute exponential backoff between attempts.
- `retryDelayJitter` (integer, optional) — The maximum random jitter added to wait times, in milliseconds.
- `httpCodesToRetry` (list of integer, optional) — A list of HTTP status codes that the SDK attempts its retries on.
- `httpMethodsToRetry` (list of enum, optional) — A list of the HTTP methods that the SDK attempts its retries on.
  - Allowed values: `GET`, `POST`, `PUT`, `DELETE`, `PATCH`, `HEAD`, `OPTIONS`, `CONNECT`, `TRACE`

### typescriptOptions

TypeScript-specific SDK generation options.

- `npmOrg` (string, optional) — An npm organization's scope. Don't include a trailing slash.
- `npmName` (string, optional) — The unscoped npm package's name.

### pythonOptions

Python-specific SDK generation options.

- `pypiPackageName` (string, optional) — The PyPI package's name.

### goOptions

Go-specific SDK generation options.

- `goModuleName` (string, optional) — The Go module path written into the `go.mod` definition file.

### javaOptions

Java-specific SDK generation options.

- `groupId` (string, optional) — The Maven group ID written into the `pom.xml` dependencies file.
- `artifactId` (string, optional) — The Maven artifact ID written into the `pom.xml` dependencies file.

### csharpOptions

C#-specific SDK generation options.

- `packageId` (string, optional) — The NuGet package's ID.

### rubyOptions

Ruby-specific generation options.

- `gemName` (string, optional) — The RubyGems gem's name.

### phpOptions

PHP-specific SDK generation options.

- `packageName` (string, optional) — The composer package name, in `vendor/package` format.

### kotlinOptions

Kotlin-specific SDK generation options.

- `groupId` (string, optional) — The Maven group ID written into the `pom.xml` dependencies file.
- `artifactId` (string, optional) — The Maven artifact ID written into the `pom.xml` dependencies file.

### rustOptions

Rust-specific SDK generation options.

- `packageName` (string, optional) — The crates.io package's name.

### cliOptions

CLI-specific SDK generation options.

- `goModuleName` (string, optional) — The Go module's path for the generated CLI.

### commonErrorTypeTitleDetailStatus

- `type` (CommonErrorTypeTitleDetailStatusType, optional) — The type of error.
- `title` (string, optional) — A short summary of the problem.
- `detail` (string, optional) — Information about the error.
- `status` (integer, optional) — The error's HTTP status code.

### commonErrorNameMessage

- `error` (CommonErrorNameMessageError, optional) — Information about the error.

### CommonErrorTypeTitleDetailStatusType

The type of error.

- string
- string

### commonErrorTypeTitleDetail

- `type` (string, optional) — The type of error.
- `title` (string, optional) — A short summary of the problem.
- `detail` (CommonErrorTypeTitleDetailDetail, optional) — Information about the error.

### CommonErrorNameMessageError

Information about the error.

- `name` (string, optional) — The error name.
- `message` (string, optional) — The error message.

### CommonErrorTypeTitleDetailDetail

Information about the error.

- string
- map from string to any

## Examples

### Generate a TypeScript SDK

**Request**

```json
{
  "source": {
    "type": "collection",
    "id": "12ece9e1-2abf-4edc-8e34-de66e74114d2"
  },
  "language": "typescript",
  "authors": [
    {
      "name": "engineering Engineering",
      "email": "sdk@engineering.com"
    }
  ],
  "retry": {
    "retryDelay": 200,
    "maxAttempts": 5,
    "httpCodesToRetry": [
      429,
      503
    ]
  },
  "typescriptOptions": {
    "npmOrg": "@engineering",
    "npmName": "engineering-sdk"
  }
}
```

**SDK Code**

```python Generate a TypeScript SDK
import requests

url = "https://api.postman.com/sdks"

payload = {
    "source": {
        "type": "collection",
        "id": "12ece9e1-2abf-4edc-8e34-de66e74114d2"
    },
    "language": "typescript",
    "authors": [
        {
            "name": "engineering Engineering",
            "email": "sdk@engineering.com"
        }
    ],
    "retry": {
        "retryDelay": 200,
        "maxAttempts": 5,
        "httpCodesToRetry": [429, 503]
    },
    "typescriptOptions": {
        "npmOrg": "@engineering",
        "npmName": "engineering-sdk"
    }
}
headers = {
    "x-api-key": "<apiKey>",
    "Content-Type": "application/json"
}

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

print(response.json())
```

```javascript Generate a TypeScript SDK
const url = 'https://api.postman.com/sdks';
const options = {
  method: 'POST',
  headers: {'x-api-key': '<apiKey>', 'Content-Type': 'application/json'},
  body: '{"source":{"type":"collection","id":"12ece9e1-2abf-4edc-8e34-de66e74114d2"},"language":"typescript","authors":[{"name":"engineering Engineering","email":"sdk@engineering.com"}],"retry":{"retryDelay":200,"maxAttempts":5,"httpCodesToRetry":[429,503]},"typescriptOptions":{"npmOrg":"@engineering","npmName":"engineering-sdk"}}'
};

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

```go Generate a TypeScript SDK
package main

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

func main() {

	url := "https://api.postman.com/sdks"

	payload := strings.NewReader("{\n  \"source\": {\n    \"type\": \"collection\",\n    \"id\": \"12ece9e1-2abf-4edc-8e34-de66e74114d2\"\n  },\n  \"language\": \"typescript\",\n  \"authors\": [\n    {\n      \"name\": \"engineering Engineering\",\n      \"email\": \"sdk@engineering.com\"\n    }\n  ],\n  \"retry\": {\n    \"retryDelay\": 200,\n    \"maxAttempts\": 5,\n    \"httpCodesToRetry\": [\n      429,\n      503\n    ]\n  },\n  \"typescriptOptions\": {\n    \"npmOrg\": \"@engineering\",\n    \"npmName\": \"engineering-sdk\"\n  }\n}")

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

	req.Header.Add("x-api-key", "<apiKey>")
	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 Generate a TypeScript SDK
require 'uri'
require 'net/http'

url = URI("https://api.postman.com/sdks")

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

request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<apiKey>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"source\": {\n    \"type\": \"collection\",\n    \"id\": \"12ece9e1-2abf-4edc-8e34-de66e74114d2\"\n  },\n  \"language\": \"typescript\",\n  \"authors\": [\n    {\n      \"name\": \"engineering Engineering\",\n      \"email\": \"sdk@engineering.com\"\n    }\n  ],\n  \"retry\": {\n    \"retryDelay\": 200,\n    \"maxAttempts\": 5,\n    \"httpCodesToRetry\": [\n      429,\n      503\n    ]\n  },\n  \"typescriptOptions\": {\n    \"npmOrg\": \"@engineering\",\n    \"npmName\": \"engineering-sdk\"\n  }\n}"

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

```java Generate a TypeScript SDK
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://api.postman.com/sdks")
  .header("x-api-key", "<apiKey>")
  .header("Content-Type", "application/json")
  .body("{\n  \"source\": {\n    \"type\": \"collection\",\n    \"id\": \"12ece9e1-2abf-4edc-8e34-de66e74114d2\"\n  },\n  \"language\": \"typescript\",\n  \"authors\": [\n    {\n      \"name\": \"engineering Engineering\",\n      \"email\": \"sdk@engineering.com\"\n    }\n  ],\n  \"retry\": {\n    \"retryDelay\": 200,\n    \"maxAttempts\": 5,\n    \"httpCodesToRetry\": [\n      429,\n      503\n    ]\n  },\n  \"typescriptOptions\": {\n    \"npmOrg\": \"@engineering\",\n    \"npmName\": \"engineering-sdk\"\n  }\n}")
  .asString();
```

```php Generate a TypeScript SDK
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://api.postman.com/sdks', [
  'body' => '{
  "source": {
    "type": "collection",
    "id": "12ece9e1-2abf-4edc-8e34-de66e74114d2"
  },
  "language": "typescript",
  "authors": [
    {
      "name": "engineering Engineering",
      "email": "sdk@engineering.com"
    }
  ],
  "retry": {
    "retryDelay": 200,
    "maxAttempts": 5,
    "httpCodesToRetry": [
      429,
      503
    ]
  },
  "typescriptOptions": {
    "npmOrg": "@engineering",
    "npmName": "engineering-sdk"
  }
}',
  'headers' => [
    'Content-Type' => 'application/json',
    'x-api-key' => '<apiKey>',
  ],
]);

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

```csharp Generate a TypeScript SDK
using RestSharp;

var client = new RestClient("https://api.postman.com/sdks");
var request = new RestRequest(Method.POST);
request.AddHeader("x-api-key", "<apiKey>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"source\": {\n    \"type\": \"collection\",\n    \"id\": \"12ece9e1-2abf-4edc-8e34-de66e74114d2\"\n  },\n  \"language\": \"typescript\",\n  \"authors\": [\n    {\n      \"name\": \"engineering Engineering\",\n      \"email\": \"sdk@engineering.com\"\n    }\n  ],\n  \"retry\": {\n    \"retryDelay\": 200,\n    \"maxAttempts\": 5,\n    \"httpCodesToRetry\": [\n      429,\n      503\n    ]\n  },\n  \"typescriptOptions\": {\n    \"npmOrg\": \"@engineering\",\n    \"npmName\": \"engineering-sdk\"\n  }\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift Generate a TypeScript SDK
import Foundation

let headers = [
  "x-api-key": "<apiKey>",
  "Content-Type": "application/json"
]
let parameters = [
  "source": [
    "type": "collection",
    "id": "12ece9e1-2abf-4edc-8e34-de66e74114d2"
  ],
  "language": "typescript",
  "authors": [
    [
      "name": "engineering Engineering",
      "email": "sdk@engineering.com"
    ]
  ],
  "retry": [
    "retryDelay": 200,
    "maxAttempts": 5,
    "httpCodesToRetry": [429, 503]
  ],
  "typescriptOptions": [
    "npmOrg": "@engineering",
    "npmName": "engineering-sdk"
  ]
] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "https://api.postman.com/sdks")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
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()
```

### Generate a Python SDK

**Request**

```json
{
  "source": {
    "type": "collection",
    "id": "12ece9e1-2abf-4edc-8e34-de66e74114d2"
  },
  "language": "python",
  "authors": [
    {
      "name": "engineering Engineering",
      "email": "sdk@engineering.com"
    }
  ],
  "retry": {
    "retryDelay": 200,
    "maxAttempts": 5,
    "httpCodesToRetry": [
      429,
      503
    ]
  },
  "pythonOptions": {
    "pypiPackageName": "engineering-sdk"
  }
}
```

**SDK Code**

```python Generate a Python SDK
import requests

url = "https://api.postman.com/sdks"

payload = {
    "source": {
        "type": "collection",
        "id": "12ece9e1-2abf-4edc-8e34-de66e74114d2"
    },
    "language": "python",
    "authors": [
        {
            "name": "engineering Engineering",
            "email": "sdk@engineering.com"
        }
    ],
    "retry": {
        "retryDelay": 200,
        "maxAttempts": 5,
        "httpCodesToRetry": [429, 503]
    },
    "pythonOptions": { "pypiPackageName": "engineering-sdk" }
}
headers = {
    "x-api-key": "<apiKey>",
    "Content-Type": "application/json"
}

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

print(response.json())
```

```javascript Generate a Python SDK
const url = 'https://api.postman.com/sdks';
const options = {
  method: 'POST',
  headers: {'x-api-key': '<apiKey>', 'Content-Type': 'application/json'},
  body: '{"source":{"type":"collection","id":"12ece9e1-2abf-4edc-8e34-de66e74114d2"},"language":"python","authors":[{"name":"engineering Engineering","email":"sdk@engineering.com"}],"retry":{"retryDelay":200,"maxAttempts":5,"httpCodesToRetry":[429,503]},"pythonOptions":{"pypiPackageName":"engineering-sdk"}}'
};

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

```go Generate a Python SDK
package main

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

func main() {

	url := "https://api.postman.com/sdks"

	payload := strings.NewReader("{\n  \"source\": {\n    \"type\": \"collection\",\n    \"id\": \"12ece9e1-2abf-4edc-8e34-de66e74114d2\"\n  },\n  \"language\": \"python\",\n  \"authors\": [\n    {\n      \"name\": \"engineering Engineering\",\n      \"email\": \"sdk@engineering.com\"\n    }\n  ],\n  \"retry\": {\n    \"retryDelay\": 200,\n    \"maxAttempts\": 5,\n    \"httpCodesToRetry\": [\n      429,\n      503\n    ]\n  },\n  \"pythonOptions\": {\n    \"pypiPackageName\": \"engineering-sdk\"\n  }\n}")

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

	req.Header.Add("x-api-key", "<apiKey>")
	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 Generate a Python SDK
require 'uri'
require 'net/http'

url = URI("https://api.postman.com/sdks")

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

request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<apiKey>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"source\": {\n    \"type\": \"collection\",\n    \"id\": \"12ece9e1-2abf-4edc-8e34-de66e74114d2\"\n  },\n  \"language\": \"python\",\n  \"authors\": [\n    {\n      \"name\": \"engineering Engineering\",\n      \"email\": \"sdk@engineering.com\"\n    }\n  ],\n  \"retry\": {\n    \"retryDelay\": 200,\n    \"maxAttempts\": 5,\n    \"httpCodesToRetry\": [\n      429,\n      503\n    ]\n  },\n  \"pythonOptions\": {\n    \"pypiPackageName\": \"engineering-sdk\"\n  }\n}"

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

```java Generate a Python SDK
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://api.postman.com/sdks")
  .header("x-api-key", "<apiKey>")
  .header("Content-Type", "application/json")
  .body("{\n  \"source\": {\n    \"type\": \"collection\",\n    \"id\": \"12ece9e1-2abf-4edc-8e34-de66e74114d2\"\n  },\n  \"language\": \"python\",\n  \"authors\": [\n    {\n      \"name\": \"engineering Engineering\",\n      \"email\": \"sdk@engineering.com\"\n    }\n  ],\n  \"retry\": {\n    \"retryDelay\": 200,\n    \"maxAttempts\": 5,\n    \"httpCodesToRetry\": [\n      429,\n      503\n    ]\n  },\n  \"pythonOptions\": {\n    \"pypiPackageName\": \"engineering-sdk\"\n  }\n}")
  .asString();
```

```php Generate a Python SDK
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://api.postman.com/sdks', [
  'body' => '{
  "source": {
    "type": "collection",
    "id": "12ece9e1-2abf-4edc-8e34-de66e74114d2"
  },
  "language": "python",
  "authors": [
    {
      "name": "engineering Engineering",
      "email": "sdk@engineering.com"
    }
  ],
  "retry": {
    "retryDelay": 200,
    "maxAttempts": 5,
    "httpCodesToRetry": [
      429,
      503
    ]
  },
  "pythonOptions": {
    "pypiPackageName": "engineering-sdk"
  }
}',
  'headers' => [
    'Content-Type' => 'application/json',
    'x-api-key' => '<apiKey>',
  ],
]);

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

```csharp Generate a Python SDK
using RestSharp;

var client = new RestClient("https://api.postman.com/sdks");
var request = new RestRequest(Method.POST);
request.AddHeader("x-api-key", "<apiKey>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"source\": {\n    \"type\": \"collection\",\n    \"id\": \"12ece9e1-2abf-4edc-8e34-de66e74114d2\"\n  },\n  \"language\": \"python\",\n  \"authors\": [\n    {\n      \"name\": \"engineering Engineering\",\n      \"email\": \"sdk@engineering.com\"\n    }\n  ],\n  \"retry\": {\n    \"retryDelay\": 200,\n    \"maxAttempts\": 5,\n    \"httpCodesToRetry\": [\n      429,\n      503\n    ]\n  },\n  \"pythonOptions\": {\n    \"pypiPackageName\": \"engineering-sdk\"\n  }\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift Generate a Python SDK
import Foundation

let headers = [
  "x-api-key": "<apiKey>",
  "Content-Type": "application/json"
]
let parameters = [
  "source": [
    "type": "collection",
    "id": "12ece9e1-2abf-4edc-8e34-de66e74114d2"
  ],
  "language": "python",
  "authors": [
    [
      "name": "engineering Engineering",
      "email": "sdk@engineering.com"
    ]
  ],
  "retry": [
    "retryDelay": 200,
    "maxAttempts": 5,
    "httpCodesToRetry": [429, 503]
  ],
  "pythonOptions": ["pypiPackageName": "engineering-sdk"]
] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "https://api.postman.com/sdks")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
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()
```

### Generate a Go SDK

**Request**

```json
{
  "source": {
    "type": "spec",
    "id": "9a7b6c5d-4e3f-2a1b-0c9d-8e7f6a5b4c3d"
  },
  "language": "go",
  "authors": [
    {
      "name": "engineering Engineering",
      "email": "sdk@engineering.com"
    }
  ],
  "retry": {
    "retryDelay": 200,
    "maxAttempts": 5,
    "httpCodesToRetry": [
      429,
      503
    ]
  },
  "goOptions": {
    "goModuleName": "github.com/engineering/engineering-sdk"
  }
}
```

**SDK Code**

```python Generate a Go SDK
import requests

url = "https://api.postman.com/sdks"

payload = {
    "source": {
        "type": "spec",
        "id": "9a7b6c5d-4e3f-2a1b-0c9d-8e7f6a5b4c3d"
    },
    "language": "go",
    "authors": [
        {
            "name": "engineering Engineering",
            "email": "sdk@engineering.com"
        }
    ],
    "retry": {
        "retryDelay": 200,
        "maxAttempts": 5,
        "httpCodesToRetry": [429, 503]
    },
    "goOptions": { "goModuleName": "github.com/engineering/engineering-sdk" }
}
headers = {
    "x-api-key": "<apiKey>",
    "Content-Type": "application/json"
}

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

print(response.json())
```

```javascript Generate a Go SDK
const url = 'https://api.postman.com/sdks';
const options = {
  method: 'POST',
  headers: {'x-api-key': '<apiKey>', 'Content-Type': 'application/json'},
  body: '{"source":{"type":"spec","id":"9a7b6c5d-4e3f-2a1b-0c9d-8e7f6a5b4c3d"},"language":"go","authors":[{"name":"engineering Engineering","email":"sdk@engineering.com"}],"retry":{"retryDelay":200,"maxAttempts":5,"httpCodesToRetry":[429,503]},"goOptions":{"goModuleName":"github.com/engineering/engineering-sdk"}}'
};

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

```go Generate a Go SDK
package main

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

func main() {

	url := "https://api.postman.com/sdks"

	payload := strings.NewReader("{\n  \"source\": {\n    \"type\": \"spec\",\n    \"id\": \"9a7b6c5d-4e3f-2a1b-0c9d-8e7f6a5b4c3d\"\n  },\n  \"language\": \"go\",\n  \"authors\": [\n    {\n      \"name\": \"engineering Engineering\",\n      \"email\": \"sdk@engineering.com\"\n    }\n  ],\n  \"retry\": {\n    \"retryDelay\": 200,\n    \"maxAttempts\": 5,\n    \"httpCodesToRetry\": [\n      429,\n      503\n    ]\n  },\n  \"goOptions\": {\n    \"goModuleName\": \"github.com/engineering/engineering-sdk\"\n  }\n}")

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

	req.Header.Add("x-api-key", "<apiKey>")
	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 Generate a Go SDK
require 'uri'
require 'net/http'

url = URI("https://api.postman.com/sdks")

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

request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<apiKey>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"source\": {\n    \"type\": \"spec\",\n    \"id\": \"9a7b6c5d-4e3f-2a1b-0c9d-8e7f6a5b4c3d\"\n  },\n  \"language\": \"go\",\n  \"authors\": [\n    {\n      \"name\": \"engineering Engineering\",\n      \"email\": \"sdk@engineering.com\"\n    }\n  ],\n  \"retry\": {\n    \"retryDelay\": 200,\n    \"maxAttempts\": 5,\n    \"httpCodesToRetry\": [\n      429,\n      503\n    ]\n  },\n  \"goOptions\": {\n    \"goModuleName\": \"github.com/engineering/engineering-sdk\"\n  }\n}"

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

```java Generate a Go SDK
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://api.postman.com/sdks")
  .header("x-api-key", "<apiKey>")
  .header("Content-Type", "application/json")
  .body("{\n  \"source\": {\n    \"type\": \"spec\",\n    \"id\": \"9a7b6c5d-4e3f-2a1b-0c9d-8e7f6a5b4c3d\"\n  },\n  \"language\": \"go\",\n  \"authors\": [\n    {\n      \"name\": \"engineering Engineering\",\n      \"email\": \"sdk@engineering.com\"\n    }\n  ],\n  \"retry\": {\n    \"retryDelay\": 200,\n    \"maxAttempts\": 5,\n    \"httpCodesToRetry\": [\n      429,\n      503\n    ]\n  },\n  \"goOptions\": {\n    \"goModuleName\": \"github.com/engineering/engineering-sdk\"\n  }\n}")
  .asString();
```

```php Generate a Go SDK
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://api.postman.com/sdks', [
  'body' => '{
  "source": {
    "type": "spec",
    "id": "9a7b6c5d-4e3f-2a1b-0c9d-8e7f6a5b4c3d"
  },
  "language": "go",
  "authors": [
    {
      "name": "engineering Engineering",
      "email": "sdk@engineering.com"
    }
  ],
  "retry": {
    "retryDelay": 200,
    "maxAttempts": 5,
    "httpCodesToRetry": [
      429,
      503
    ]
  },
  "goOptions": {
    "goModuleName": "github.com/engineering/engineering-sdk"
  }
}',
  'headers' => [
    'Content-Type' => 'application/json',
    'x-api-key' => '<apiKey>',
  ],
]);

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

```csharp Generate a Go SDK
using RestSharp;

var client = new RestClient("https://api.postman.com/sdks");
var request = new RestRequest(Method.POST);
request.AddHeader("x-api-key", "<apiKey>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"source\": {\n    \"type\": \"spec\",\n    \"id\": \"9a7b6c5d-4e3f-2a1b-0c9d-8e7f6a5b4c3d\"\n  },\n  \"language\": \"go\",\n  \"authors\": [\n    {\n      \"name\": \"engineering Engineering\",\n      \"email\": \"sdk@engineering.com\"\n    }\n  ],\n  \"retry\": {\n    \"retryDelay\": 200,\n    \"maxAttempts\": 5,\n    \"httpCodesToRetry\": [\n      429,\n      503\n    ]\n  },\n  \"goOptions\": {\n    \"goModuleName\": \"github.com/engineering/engineering-sdk\"\n  }\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift Generate a Go SDK
import Foundation

let headers = [
  "x-api-key": "<apiKey>",
  "Content-Type": "application/json"
]
let parameters = [
  "source": [
    "type": "spec",
    "id": "9a7b6c5d-4e3f-2a1b-0c9d-8e7f6a5b4c3d"
  ],
  "language": "go",
  "authors": [
    [
      "name": "engineering Engineering",
      "email": "sdk@engineering.com"
    ]
  ],
  "retry": [
    "retryDelay": 200,
    "maxAttempts": 5,
    "httpCodesToRetry": [429, 503]
  ],
  "goOptions": ["goModuleName": "github.com/engineering/engineering-sdk"]
] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "https://api.postman.com/sdks")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
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()
```

### Generate a Java SDK

**Request**

```json
{
  "source": {
    "type": "collection",
    "id": "12ece9e1-2abf-4edc-8e34-de66e74114d2"
  },
  "language": "java",
  "authors": [
    {
      "name": "engineering Engineering",
      "email": "sdk@engineering.com"
    }
  ],
  "retry": {
    "retryDelay": 200,
    "maxAttempts": 5,
    "httpCodesToRetry": [
      429,
      503
    ]
  },
  "javaOptions": {
    "groupId": "com.engineering",
    "artifactId": "engineering-sdk"
  }
}
```

**SDK Code**

```python Generate a Java SDK
import requests

url = "https://api.postman.com/sdks"

payload = {
    "source": {
        "type": "collection",
        "id": "12ece9e1-2abf-4edc-8e34-de66e74114d2"
    },
    "language": "java",
    "authors": [
        {
            "name": "engineering Engineering",
            "email": "sdk@engineering.com"
        }
    ],
    "retry": {
        "retryDelay": 200,
        "maxAttempts": 5,
        "httpCodesToRetry": [429, 503]
    },
    "javaOptions": {
        "groupId": "com.engineering",
        "artifactId": "engineering-sdk"
    }
}
headers = {
    "x-api-key": "<apiKey>",
    "Content-Type": "application/json"
}

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

print(response.json())
```

```javascript Generate a Java SDK
const url = 'https://api.postman.com/sdks';
const options = {
  method: 'POST',
  headers: {'x-api-key': '<apiKey>', 'Content-Type': 'application/json'},
  body: '{"source":{"type":"collection","id":"12ece9e1-2abf-4edc-8e34-de66e74114d2"},"language":"java","authors":[{"name":"engineering Engineering","email":"sdk@engineering.com"}],"retry":{"retryDelay":200,"maxAttempts":5,"httpCodesToRetry":[429,503]},"javaOptions":{"groupId":"com.engineering","artifactId":"engineering-sdk"}}'
};

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

```go Generate a Java SDK
package main

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

func main() {

	url := "https://api.postman.com/sdks"

	payload := strings.NewReader("{\n  \"source\": {\n    \"type\": \"collection\",\n    \"id\": \"12ece9e1-2abf-4edc-8e34-de66e74114d2\"\n  },\n  \"language\": \"java\",\n  \"authors\": [\n    {\n      \"name\": \"engineering Engineering\",\n      \"email\": \"sdk@engineering.com\"\n    }\n  ],\n  \"retry\": {\n    \"retryDelay\": 200,\n    \"maxAttempts\": 5,\n    \"httpCodesToRetry\": [\n      429,\n      503\n    ]\n  },\n  \"javaOptions\": {\n    \"groupId\": \"com.engineering\",\n    \"artifactId\": \"engineering-sdk\"\n  }\n}")

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

	req.Header.Add("x-api-key", "<apiKey>")
	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 Generate a Java SDK
require 'uri'
require 'net/http'

url = URI("https://api.postman.com/sdks")

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

request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<apiKey>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"source\": {\n    \"type\": \"collection\",\n    \"id\": \"12ece9e1-2abf-4edc-8e34-de66e74114d2\"\n  },\n  \"language\": \"java\",\n  \"authors\": [\n    {\n      \"name\": \"engineering Engineering\",\n      \"email\": \"sdk@engineering.com\"\n    }\n  ],\n  \"retry\": {\n    \"retryDelay\": 200,\n    \"maxAttempts\": 5,\n    \"httpCodesToRetry\": [\n      429,\n      503\n    ]\n  },\n  \"javaOptions\": {\n    \"groupId\": \"com.engineering\",\n    \"artifactId\": \"engineering-sdk\"\n  }\n}"

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

```java Generate a Java SDK
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://api.postman.com/sdks")
  .header("x-api-key", "<apiKey>")
  .header("Content-Type", "application/json")
  .body("{\n  \"source\": {\n    \"type\": \"collection\",\n    \"id\": \"12ece9e1-2abf-4edc-8e34-de66e74114d2\"\n  },\n  \"language\": \"java\",\n  \"authors\": [\n    {\n      \"name\": \"engineering Engineering\",\n      \"email\": \"sdk@engineering.com\"\n    }\n  ],\n  \"retry\": {\n    \"retryDelay\": 200,\n    \"maxAttempts\": 5,\n    \"httpCodesToRetry\": [\n      429,\n      503\n    ]\n  },\n  \"javaOptions\": {\n    \"groupId\": \"com.engineering\",\n    \"artifactId\": \"engineering-sdk\"\n  }\n}")
  .asString();
```

```php Generate a Java SDK
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://api.postman.com/sdks', [
  'body' => '{
  "source": {
    "type": "collection",
    "id": "12ece9e1-2abf-4edc-8e34-de66e74114d2"
  },
  "language": "java",
  "authors": [
    {
      "name": "engineering Engineering",
      "email": "sdk@engineering.com"
    }
  ],
  "retry": {
    "retryDelay": 200,
    "maxAttempts": 5,
    "httpCodesToRetry": [
      429,
      503
    ]
  },
  "javaOptions": {
    "groupId": "com.engineering",
    "artifactId": "engineering-sdk"
  }
}',
  'headers' => [
    'Content-Type' => 'application/json',
    'x-api-key' => '<apiKey>',
  ],
]);

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

```csharp Generate a Java SDK
using RestSharp;

var client = new RestClient("https://api.postman.com/sdks");
var request = new RestRequest(Method.POST);
request.AddHeader("x-api-key", "<apiKey>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"source\": {\n    \"type\": \"collection\",\n    \"id\": \"12ece9e1-2abf-4edc-8e34-de66e74114d2\"\n  },\n  \"language\": \"java\",\n  \"authors\": [\n    {\n      \"name\": \"engineering Engineering\",\n      \"email\": \"sdk@engineering.com\"\n    }\n  ],\n  \"retry\": {\n    \"retryDelay\": 200,\n    \"maxAttempts\": 5,\n    \"httpCodesToRetry\": [\n      429,\n      503\n    ]\n  },\n  \"javaOptions\": {\n    \"groupId\": \"com.engineering\",\n    \"artifactId\": \"engineering-sdk\"\n  }\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift Generate a Java SDK
import Foundation

let headers = [
  "x-api-key": "<apiKey>",
  "Content-Type": "application/json"
]
let parameters = [
  "source": [
    "type": "collection",
    "id": "12ece9e1-2abf-4edc-8e34-de66e74114d2"
  ],
  "language": "java",
  "authors": [
    [
      "name": "engineering Engineering",
      "email": "sdk@engineering.com"
    ]
  ],
  "retry": [
    "retryDelay": 200,
    "maxAttempts": 5,
    "httpCodesToRetry": [429, 503]
  ],
  "javaOptions": [
    "groupId": "com.engineering",
    "artifactId": "engineering-sdk"
  ]
] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "https://api.postman.com/sdks")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
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()
```

### Generate a C# SDK

**Request**

```json
{
  "source": {
    "type": "spec",
    "id": "9a7b6c5d-4e3f-2a1b-0c9d-8e7f6a5b4c3d"
  },
  "language": "csharp",
  "authors": [
    {
      "name": "engineering Engineering",
      "email": "sdk@engineering.com"
    }
  ],
  "retry": {
    "retryDelay": 200,
    "maxAttempts": 5,
    "httpCodesToRetry": [
      429,
      503
    ]
  },
  "csharpOptions": {
    "packageId": "engineering.Sdk"
  }
}
```

**SDK Code**

```python Generate a C# SDK
import requests

url = "https://api.postman.com/sdks"

payload = {
    "source": {
        "type": "spec",
        "id": "9a7b6c5d-4e3f-2a1b-0c9d-8e7f6a5b4c3d"
    },
    "language": "csharp",
    "authors": [
        {
            "name": "engineering Engineering",
            "email": "sdk@engineering.com"
        }
    ],
    "retry": {
        "retryDelay": 200,
        "maxAttempts": 5,
        "httpCodesToRetry": [429, 503]
    },
    "csharpOptions": { "packageId": "engineering.Sdk" }
}
headers = {
    "x-api-key": "<apiKey>",
    "Content-Type": "application/json"
}

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

print(response.json())
```

```javascript Generate a C# SDK
const url = 'https://api.postman.com/sdks';
const options = {
  method: 'POST',
  headers: {'x-api-key': '<apiKey>', 'Content-Type': 'application/json'},
  body: '{"source":{"type":"spec","id":"9a7b6c5d-4e3f-2a1b-0c9d-8e7f6a5b4c3d"},"language":"csharp","authors":[{"name":"engineering Engineering","email":"sdk@engineering.com"}],"retry":{"retryDelay":200,"maxAttempts":5,"httpCodesToRetry":[429,503]},"csharpOptions":{"packageId":"engineering.Sdk"}}'
};

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

```go Generate a C# SDK
package main

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

func main() {

	url := "https://api.postman.com/sdks"

	payload := strings.NewReader("{\n  \"source\": {\n    \"type\": \"spec\",\n    \"id\": \"9a7b6c5d-4e3f-2a1b-0c9d-8e7f6a5b4c3d\"\n  },\n  \"language\": \"csharp\",\n  \"authors\": [\n    {\n      \"name\": \"engineering Engineering\",\n      \"email\": \"sdk@engineering.com\"\n    }\n  ],\n  \"retry\": {\n    \"retryDelay\": 200,\n    \"maxAttempts\": 5,\n    \"httpCodesToRetry\": [\n      429,\n      503\n    ]\n  },\n  \"csharpOptions\": {\n    \"packageId\": \"engineering.Sdk\"\n  }\n}")

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

	req.Header.Add("x-api-key", "<apiKey>")
	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 Generate a C# SDK
require 'uri'
require 'net/http'

url = URI("https://api.postman.com/sdks")

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

request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<apiKey>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"source\": {\n    \"type\": \"spec\",\n    \"id\": \"9a7b6c5d-4e3f-2a1b-0c9d-8e7f6a5b4c3d\"\n  },\n  \"language\": \"csharp\",\n  \"authors\": [\n    {\n      \"name\": \"engineering Engineering\",\n      \"email\": \"sdk@engineering.com\"\n    }\n  ],\n  \"retry\": {\n    \"retryDelay\": 200,\n    \"maxAttempts\": 5,\n    \"httpCodesToRetry\": [\n      429,\n      503\n    ]\n  },\n  \"csharpOptions\": {\n    \"packageId\": \"engineering.Sdk\"\n  }\n}"

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

```java Generate a C# SDK
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://api.postman.com/sdks")
  .header("x-api-key", "<apiKey>")
  .header("Content-Type", "application/json")
  .body("{\n  \"source\": {\n    \"type\": \"spec\",\n    \"id\": \"9a7b6c5d-4e3f-2a1b-0c9d-8e7f6a5b4c3d\"\n  },\n  \"language\": \"csharp\",\n  \"authors\": [\n    {\n      \"name\": \"engineering Engineering\",\n      \"email\": \"sdk@engineering.com\"\n    }\n  ],\n  \"retry\": {\n    \"retryDelay\": 200,\n    \"maxAttempts\": 5,\n    \"httpCodesToRetry\": [\n      429,\n      503\n    ]\n  },\n  \"csharpOptions\": {\n    \"packageId\": \"engineering.Sdk\"\n  }\n}")
  .asString();
```

```php Generate a C# SDK
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://api.postman.com/sdks', [
  'body' => '{
  "source": {
    "type": "spec",
    "id": "9a7b6c5d-4e3f-2a1b-0c9d-8e7f6a5b4c3d"
  },
  "language": "csharp",
  "authors": [
    {
      "name": "engineering Engineering",
      "email": "sdk@engineering.com"
    }
  ],
  "retry": {
    "retryDelay": 200,
    "maxAttempts": 5,
    "httpCodesToRetry": [
      429,
      503
    ]
  },
  "csharpOptions": {
    "packageId": "engineering.Sdk"
  }
}',
  'headers' => [
    'Content-Type' => 'application/json',
    'x-api-key' => '<apiKey>',
  ],
]);

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

```csharp Generate a C# SDK
using RestSharp;

var client = new RestClient("https://api.postman.com/sdks");
var request = new RestRequest(Method.POST);
request.AddHeader("x-api-key", "<apiKey>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"source\": {\n    \"type\": \"spec\",\n    \"id\": \"9a7b6c5d-4e3f-2a1b-0c9d-8e7f6a5b4c3d\"\n  },\n  \"language\": \"csharp\",\n  \"authors\": [\n    {\n      \"name\": \"engineering Engineering\",\n      \"email\": \"sdk@engineering.com\"\n    }\n  ],\n  \"retry\": {\n    \"retryDelay\": 200,\n    \"maxAttempts\": 5,\n    \"httpCodesToRetry\": [\n      429,\n      503\n    ]\n  },\n  \"csharpOptions\": {\n    \"packageId\": \"engineering.Sdk\"\n  }\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift Generate a C# SDK
import Foundation

let headers = [
  "x-api-key": "<apiKey>",
  "Content-Type": "application/json"
]
let parameters = [
  "source": [
    "type": "spec",
    "id": "9a7b6c5d-4e3f-2a1b-0c9d-8e7f6a5b4c3d"
  ],
  "language": "csharp",
  "authors": [
    [
      "name": "engineering Engineering",
      "email": "sdk@engineering.com"
    ]
  ],
  "retry": [
    "retryDelay": 200,
    "maxAttempts": 5,
    "httpCodesToRetry": [429, 503]
  ],
  "csharpOptions": ["packageId": "engineering.Sdk"]
] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "https://api.postman.com/sdks")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
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()
```

### Generate a Ruby SDK

**Request**

```json
{
  "source": {
    "type": "collection",
    "id": "12ece9e1-2abf-4edc-8e34-de66e74114d2"
  },
  "language": "ruby",
  "authors": [
    {
      "name": "engineering Engineering",
      "email": "sdk@engineering.com"
    }
  ],
  "retry": {
    "retryDelay": 200,
    "maxAttempts": 5,
    "httpCodesToRetry": [
      429,
      503
    ]
  },
  "rubyOptions": {
    "gemName": "engineering-sdk"
  }
}
```

**SDK Code**

```python Generate a Ruby SDK
import requests

url = "https://api.postman.com/sdks"

payload = {
    "source": {
        "type": "collection",
        "id": "12ece9e1-2abf-4edc-8e34-de66e74114d2"
    },
    "language": "ruby",
    "authors": [
        {
            "name": "engineering Engineering",
            "email": "sdk@engineering.com"
        }
    ],
    "retry": {
        "retryDelay": 200,
        "maxAttempts": 5,
        "httpCodesToRetry": [429, 503]
    },
    "rubyOptions": { "gemName": "engineering-sdk" }
}
headers = {
    "x-api-key": "<apiKey>",
    "Content-Type": "application/json"
}

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

print(response.json())
```

```javascript Generate a Ruby SDK
const url = 'https://api.postman.com/sdks';
const options = {
  method: 'POST',
  headers: {'x-api-key': '<apiKey>', 'Content-Type': 'application/json'},
  body: '{"source":{"type":"collection","id":"12ece9e1-2abf-4edc-8e34-de66e74114d2"},"language":"ruby","authors":[{"name":"engineering Engineering","email":"sdk@engineering.com"}],"retry":{"retryDelay":200,"maxAttempts":5,"httpCodesToRetry":[429,503]},"rubyOptions":{"gemName":"engineering-sdk"}}'
};

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

```go Generate a Ruby SDK
package main

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

func main() {

	url := "https://api.postman.com/sdks"

	payload := strings.NewReader("{\n  \"source\": {\n    \"type\": \"collection\",\n    \"id\": \"12ece9e1-2abf-4edc-8e34-de66e74114d2\"\n  },\n  \"language\": \"ruby\",\n  \"authors\": [\n    {\n      \"name\": \"engineering Engineering\",\n      \"email\": \"sdk@engineering.com\"\n    }\n  ],\n  \"retry\": {\n    \"retryDelay\": 200,\n    \"maxAttempts\": 5,\n    \"httpCodesToRetry\": [\n      429,\n      503\n    ]\n  },\n  \"rubyOptions\": {\n    \"gemName\": \"engineering-sdk\"\n  }\n}")

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

	req.Header.Add("x-api-key", "<apiKey>")
	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 Generate a Ruby SDK
require 'uri'
require 'net/http'

url = URI("https://api.postman.com/sdks")

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

request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<apiKey>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"source\": {\n    \"type\": \"collection\",\n    \"id\": \"12ece9e1-2abf-4edc-8e34-de66e74114d2\"\n  },\n  \"language\": \"ruby\",\n  \"authors\": [\n    {\n      \"name\": \"engineering Engineering\",\n      \"email\": \"sdk@engineering.com\"\n    }\n  ],\n  \"retry\": {\n    \"retryDelay\": 200,\n    \"maxAttempts\": 5,\n    \"httpCodesToRetry\": [\n      429,\n      503\n    ]\n  },\n  \"rubyOptions\": {\n    \"gemName\": \"engineering-sdk\"\n  }\n}"

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

```java Generate a Ruby SDK
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://api.postman.com/sdks")
  .header("x-api-key", "<apiKey>")
  .header("Content-Type", "application/json")
  .body("{\n  \"source\": {\n    \"type\": \"collection\",\n    \"id\": \"12ece9e1-2abf-4edc-8e34-de66e74114d2\"\n  },\n  \"language\": \"ruby\",\n  \"authors\": [\n    {\n      \"name\": \"engineering Engineering\",\n      \"email\": \"sdk@engineering.com\"\n    }\n  ],\n  \"retry\": {\n    \"retryDelay\": 200,\n    \"maxAttempts\": 5,\n    \"httpCodesToRetry\": [\n      429,\n      503\n    ]\n  },\n  \"rubyOptions\": {\n    \"gemName\": \"engineering-sdk\"\n  }\n}")
  .asString();
```

```php Generate a Ruby SDK
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://api.postman.com/sdks', [
  'body' => '{
  "source": {
    "type": "collection",
    "id": "12ece9e1-2abf-4edc-8e34-de66e74114d2"
  },
  "language": "ruby",
  "authors": [
    {
      "name": "engineering Engineering",
      "email": "sdk@engineering.com"
    }
  ],
  "retry": {
    "retryDelay": 200,
    "maxAttempts": 5,
    "httpCodesToRetry": [
      429,
      503
    ]
  },
  "rubyOptions": {
    "gemName": "engineering-sdk"
  }
}',
  'headers' => [
    'Content-Type' => 'application/json',
    'x-api-key' => '<apiKey>',
  ],
]);

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

```csharp Generate a Ruby SDK
using RestSharp;

var client = new RestClient("https://api.postman.com/sdks");
var request = new RestRequest(Method.POST);
request.AddHeader("x-api-key", "<apiKey>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"source\": {\n    \"type\": \"collection\",\n    \"id\": \"12ece9e1-2abf-4edc-8e34-de66e74114d2\"\n  },\n  \"language\": \"ruby\",\n  \"authors\": [\n    {\n      \"name\": \"engineering Engineering\",\n      \"email\": \"sdk@engineering.com\"\n    }\n  ],\n  \"retry\": {\n    \"retryDelay\": 200,\n    \"maxAttempts\": 5,\n    \"httpCodesToRetry\": [\n      429,\n      503\n    ]\n  },\n  \"rubyOptions\": {\n    \"gemName\": \"engineering-sdk\"\n  }\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift Generate a Ruby SDK
import Foundation

let headers = [
  "x-api-key": "<apiKey>",
  "Content-Type": "application/json"
]
let parameters = [
  "source": [
    "type": "collection",
    "id": "12ece9e1-2abf-4edc-8e34-de66e74114d2"
  ],
  "language": "ruby",
  "authors": [
    [
      "name": "engineering Engineering",
      "email": "sdk@engineering.com"
    ]
  ],
  "retry": [
    "retryDelay": 200,
    "maxAttempts": 5,
    "httpCodesToRetry": [429, 503]
  ],
  "rubyOptions": ["gemName": "engineering-sdk"]
] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "https://api.postman.com/sdks")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
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()
```

### Generate a PHP SDK

**Request**

```json
{
  "source": {
    "type": "spec",
    "id": "9a7b6c5d-4e3f-2a1b-0c9d-8e7f6a5b4c3d"
  },
  "language": "php",
  "authors": [
    {
      "name": "engineering Engineering",
      "email": "sdk@engineering.com"
    }
  ],
  "retry": {
    "retryDelay": 200,
    "maxAttempts": 5,
    "httpCodesToRetry": [
      429,
      503
    ]
  },
  "phpOptions": {
    "packageName": "engineering/sdk"
  }
}
```

**SDK Code**

```python Generate a PHP SDK
import requests

url = "https://api.postman.com/sdks"

payload = {
    "source": {
        "type": "spec",
        "id": "9a7b6c5d-4e3f-2a1b-0c9d-8e7f6a5b4c3d"
    },
    "language": "php",
    "authors": [
        {
            "name": "engineering Engineering",
            "email": "sdk@engineering.com"
        }
    ],
    "retry": {
        "retryDelay": 200,
        "maxAttempts": 5,
        "httpCodesToRetry": [429, 503]
    },
    "phpOptions": { "packageName": "engineering/sdk" }
}
headers = {
    "x-api-key": "<apiKey>",
    "Content-Type": "application/json"
}

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

print(response.json())
```

```javascript Generate a PHP SDK
const url = 'https://api.postman.com/sdks';
const options = {
  method: 'POST',
  headers: {'x-api-key': '<apiKey>', 'Content-Type': 'application/json'},
  body: '{"source":{"type":"spec","id":"9a7b6c5d-4e3f-2a1b-0c9d-8e7f6a5b4c3d"},"language":"php","authors":[{"name":"engineering Engineering","email":"sdk@engineering.com"}],"retry":{"retryDelay":200,"maxAttempts":5,"httpCodesToRetry":[429,503]},"phpOptions":{"packageName":"engineering/sdk"}}'
};

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

```go Generate a PHP SDK
package main

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

func main() {

	url := "https://api.postman.com/sdks"

	payload := strings.NewReader("{\n  \"source\": {\n    \"type\": \"spec\",\n    \"id\": \"9a7b6c5d-4e3f-2a1b-0c9d-8e7f6a5b4c3d\"\n  },\n  \"language\": \"php\",\n  \"authors\": [\n    {\n      \"name\": \"engineering Engineering\",\n      \"email\": \"sdk@engineering.com\"\n    }\n  ],\n  \"retry\": {\n    \"retryDelay\": 200,\n    \"maxAttempts\": 5,\n    \"httpCodesToRetry\": [\n      429,\n      503\n    ]\n  },\n  \"phpOptions\": {\n    \"packageName\": \"engineering/sdk\"\n  }\n}")

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

	req.Header.Add("x-api-key", "<apiKey>")
	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 Generate a PHP SDK
require 'uri'
require 'net/http'

url = URI("https://api.postman.com/sdks")

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

request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<apiKey>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"source\": {\n    \"type\": \"spec\",\n    \"id\": \"9a7b6c5d-4e3f-2a1b-0c9d-8e7f6a5b4c3d\"\n  },\n  \"language\": \"php\",\n  \"authors\": [\n    {\n      \"name\": \"engineering Engineering\",\n      \"email\": \"sdk@engineering.com\"\n    }\n  ],\n  \"retry\": {\n    \"retryDelay\": 200,\n    \"maxAttempts\": 5,\n    \"httpCodesToRetry\": [\n      429,\n      503\n    ]\n  },\n  \"phpOptions\": {\n    \"packageName\": \"engineering/sdk\"\n  }\n}"

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

```java Generate a PHP SDK
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://api.postman.com/sdks")
  .header("x-api-key", "<apiKey>")
  .header("Content-Type", "application/json")
  .body("{\n  \"source\": {\n    \"type\": \"spec\",\n    \"id\": \"9a7b6c5d-4e3f-2a1b-0c9d-8e7f6a5b4c3d\"\n  },\n  \"language\": \"php\",\n  \"authors\": [\n    {\n      \"name\": \"engineering Engineering\",\n      \"email\": \"sdk@engineering.com\"\n    }\n  ],\n  \"retry\": {\n    \"retryDelay\": 200,\n    \"maxAttempts\": 5,\n    \"httpCodesToRetry\": [\n      429,\n      503\n    ]\n  },\n  \"phpOptions\": {\n    \"packageName\": \"engineering/sdk\"\n  }\n}")
  .asString();
```

```php Generate a PHP SDK
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://api.postman.com/sdks', [
  'body' => '{
  "source": {
    "type": "spec",
    "id": "9a7b6c5d-4e3f-2a1b-0c9d-8e7f6a5b4c3d"
  },
  "language": "php",
  "authors": [
    {
      "name": "engineering Engineering",
      "email": "sdk@engineering.com"
    }
  ],
  "retry": {
    "retryDelay": 200,
    "maxAttempts": 5,
    "httpCodesToRetry": [
      429,
      503
    ]
  },
  "phpOptions": {
    "packageName": "engineering/sdk"
  }
}',
  'headers' => [
    'Content-Type' => 'application/json',
    'x-api-key' => '<apiKey>',
  ],
]);

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

```csharp Generate a PHP SDK
using RestSharp;

var client = new RestClient("https://api.postman.com/sdks");
var request = new RestRequest(Method.POST);
request.AddHeader("x-api-key", "<apiKey>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"source\": {\n    \"type\": \"spec\",\n    \"id\": \"9a7b6c5d-4e3f-2a1b-0c9d-8e7f6a5b4c3d\"\n  },\n  \"language\": \"php\",\n  \"authors\": [\n    {\n      \"name\": \"engineering Engineering\",\n      \"email\": \"sdk@engineering.com\"\n    }\n  ],\n  \"retry\": {\n    \"retryDelay\": 200,\n    \"maxAttempts\": 5,\n    \"httpCodesToRetry\": [\n      429,\n      503\n    ]\n  },\n  \"phpOptions\": {\n    \"packageName\": \"engineering/sdk\"\n  }\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift Generate a PHP SDK
import Foundation

let headers = [
  "x-api-key": "<apiKey>",
  "Content-Type": "application/json"
]
let parameters = [
  "source": [
    "type": "spec",
    "id": "9a7b6c5d-4e3f-2a1b-0c9d-8e7f6a5b4c3d"
  ],
  "language": "php",
  "authors": [
    [
      "name": "engineering Engineering",
      "email": "sdk@engineering.com"
    ]
  ],
  "retry": [
    "retryDelay": 200,
    "maxAttempts": 5,
    "httpCodesToRetry": [429, 503]
  ],
  "phpOptions": ["packageName": "engineering/sdk"]
] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "https://api.postman.com/sdks")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
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()
```

### Generate a Kotlin SDK

**Request**

```json
{
  "source": {
    "type": "spec",
    "id": "9a7b6c5d-4e3f-2a1b-0c9d-8e7f6a5b4c3d"
  },
  "language": "kotlin",
  "authors": [
    {
      "name": "engineering Engineering",
      "email": "sdk@engineering.com"
    }
  ],
  "retry": {
    "retryDelay": 200,
    "maxAttempts": 5,
    "httpCodesToRetry": [
      429,
      503
    ]
  },
  "kotlinOptions": {
    "groupId": "com.engineering",
    "artifactId": "engineering-sdk"
  }
}
```

**SDK Code**

```python Generate a Kotlin SDK
import requests

url = "https://api.postman.com/sdks"

payload = {
    "source": {
        "type": "spec",
        "id": "9a7b6c5d-4e3f-2a1b-0c9d-8e7f6a5b4c3d"
    },
    "language": "kotlin",
    "authors": [
        {
            "name": "engineering Engineering",
            "email": "sdk@engineering.com"
        }
    ],
    "retry": {
        "retryDelay": 200,
        "maxAttempts": 5,
        "httpCodesToRetry": [429, 503]
    },
    "kotlinOptions": {
        "groupId": "com.engineering",
        "artifactId": "engineering-sdk"
    }
}
headers = {
    "x-api-key": "<apiKey>",
    "Content-Type": "application/json"
}

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

print(response.json())
```

```javascript Generate a Kotlin SDK
const url = 'https://api.postman.com/sdks';
const options = {
  method: 'POST',
  headers: {'x-api-key': '<apiKey>', 'Content-Type': 'application/json'},
  body: '{"source":{"type":"spec","id":"9a7b6c5d-4e3f-2a1b-0c9d-8e7f6a5b4c3d"},"language":"kotlin","authors":[{"name":"engineering Engineering","email":"sdk@engineering.com"}],"retry":{"retryDelay":200,"maxAttempts":5,"httpCodesToRetry":[429,503]},"kotlinOptions":{"groupId":"com.engineering","artifactId":"engineering-sdk"}}'
};

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

```go Generate a Kotlin SDK
package main

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

func main() {

	url := "https://api.postman.com/sdks"

	payload := strings.NewReader("{\n  \"source\": {\n    \"type\": \"spec\",\n    \"id\": \"9a7b6c5d-4e3f-2a1b-0c9d-8e7f6a5b4c3d\"\n  },\n  \"language\": \"kotlin\",\n  \"authors\": [\n    {\n      \"name\": \"engineering Engineering\",\n      \"email\": \"sdk@engineering.com\"\n    }\n  ],\n  \"retry\": {\n    \"retryDelay\": 200,\n    \"maxAttempts\": 5,\n    \"httpCodesToRetry\": [\n      429,\n      503\n    ]\n  },\n  \"kotlinOptions\": {\n    \"groupId\": \"com.engineering\",\n    \"artifactId\": \"engineering-sdk\"\n  }\n}")

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

	req.Header.Add("x-api-key", "<apiKey>")
	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 Generate a Kotlin SDK
require 'uri'
require 'net/http'

url = URI("https://api.postman.com/sdks")

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

request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<apiKey>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"source\": {\n    \"type\": \"spec\",\n    \"id\": \"9a7b6c5d-4e3f-2a1b-0c9d-8e7f6a5b4c3d\"\n  },\n  \"language\": \"kotlin\",\n  \"authors\": [\n    {\n      \"name\": \"engineering Engineering\",\n      \"email\": \"sdk@engineering.com\"\n    }\n  ],\n  \"retry\": {\n    \"retryDelay\": 200,\n    \"maxAttempts\": 5,\n    \"httpCodesToRetry\": [\n      429,\n      503\n    ]\n  },\n  \"kotlinOptions\": {\n    \"groupId\": \"com.engineering\",\n    \"artifactId\": \"engineering-sdk\"\n  }\n}"

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

```java Generate a Kotlin SDK
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://api.postman.com/sdks")
  .header("x-api-key", "<apiKey>")
  .header("Content-Type", "application/json")
  .body("{\n  \"source\": {\n    \"type\": \"spec\",\n    \"id\": \"9a7b6c5d-4e3f-2a1b-0c9d-8e7f6a5b4c3d\"\n  },\n  \"language\": \"kotlin\",\n  \"authors\": [\n    {\n      \"name\": \"engineering Engineering\",\n      \"email\": \"sdk@engineering.com\"\n    }\n  ],\n  \"retry\": {\n    \"retryDelay\": 200,\n    \"maxAttempts\": 5,\n    \"httpCodesToRetry\": [\n      429,\n      503\n    ]\n  },\n  \"kotlinOptions\": {\n    \"groupId\": \"com.engineering\",\n    \"artifactId\": \"engineering-sdk\"\n  }\n}")
  .asString();
```

```php Generate a Kotlin SDK
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://api.postman.com/sdks', [
  'body' => '{
  "source": {
    "type": "spec",
    "id": "9a7b6c5d-4e3f-2a1b-0c9d-8e7f6a5b4c3d"
  },
  "language": "kotlin",
  "authors": [
    {
      "name": "engineering Engineering",
      "email": "sdk@engineering.com"
    }
  ],
  "retry": {
    "retryDelay": 200,
    "maxAttempts": 5,
    "httpCodesToRetry": [
      429,
      503
    ]
  },
  "kotlinOptions": {
    "groupId": "com.engineering",
    "artifactId": "engineering-sdk"
  }
}',
  'headers' => [
    'Content-Type' => 'application/json',
    'x-api-key' => '<apiKey>',
  ],
]);

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

```csharp Generate a Kotlin SDK
using RestSharp;

var client = new RestClient("https://api.postman.com/sdks");
var request = new RestRequest(Method.POST);
request.AddHeader("x-api-key", "<apiKey>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"source\": {\n    \"type\": \"spec\",\n    \"id\": \"9a7b6c5d-4e3f-2a1b-0c9d-8e7f6a5b4c3d\"\n  },\n  \"language\": \"kotlin\",\n  \"authors\": [\n    {\n      \"name\": \"engineering Engineering\",\n      \"email\": \"sdk@engineering.com\"\n    }\n  ],\n  \"retry\": {\n    \"retryDelay\": 200,\n    \"maxAttempts\": 5,\n    \"httpCodesToRetry\": [\n      429,\n      503\n    ]\n  },\n  \"kotlinOptions\": {\n    \"groupId\": \"com.engineering\",\n    \"artifactId\": \"engineering-sdk\"\n  }\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift Generate a Kotlin SDK
import Foundation

let headers = [
  "x-api-key": "<apiKey>",
  "Content-Type": "application/json"
]
let parameters = [
  "source": [
    "type": "spec",
    "id": "9a7b6c5d-4e3f-2a1b-0c9d-8e7f6a5b4c3d"
  ],
  "language": "kotlin",
  "authors": [
    [
      "name": "engineering Engineering",
      "email": "sdk@engineering.com"
    ]
  ],
  "retry": [
    "retryDelay": 200,
    "maxAttempts": 5,
    "httpCodesToRetry": [429, 503]
  ],
  "kotlinOptions": [
    "groupId": "com.engineering",
    "artifactId": "engineering-sdk"
  ]
] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "https://api.postman.com/sdks")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
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()
```

### Generate a Rust SDK

**Request**

```json
{
  "source": {
    "type": "collection",
    "id": "12ece9e1-2abf-4edc-8e34-de66e74114d2"
  },
  "language": "rust",
  "authors": [
    {
      "name": "engineering Engineering",
      "email": "sdk@engineering.com"
    }
  ],
  "retry": {
    "retryDelay": 200,
    "maxAttempts": 5,
    "httpCodesToRetry": [
      429,
      503
    ]
  },
  "rustOptions": {
    "packageName": "engineering-sdk"
  }
}
```

**SDK Code**

```python Generate a Rust SDK
import requests

url = "https://api.postman.com/sdks"

payload = {
    "source": {
        "type": "collection",
        "id": "12ece9e1-2abf-4edc-8e34-de66e74114d2"
    },
    "language": "rust",
    "authors": [
        {
            "name": "engineering Engineering",
            "email": "sdk@engineering.com"
        }
    ],
    "retry": {
        "retryDelay": 200,
        "maxAttempts": 5,
        "httpCodesToRetry": [429, 503]
    },
    "rustOptions": { "packageName": "engineering-sdk" }
}
headers = {
    "x-api-key": "<apiKey>",
    "Content-Type": "application/json"
}

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

print(response.json())
```

```javascript Generate a Rust SDK
const url = 'https://api.postman.com/sdks';
const options = {
  method: 'POST',
  headers: {'x-api-key': '<apiKey>', 'Content-Type': 'application/json'},
  body: '{"source":{"type":"collection","id":"12ece9e1-2abf-4edc-8e34-de66e74114d2"},"language":"rust","authors":[{"name":"engineering Engineering","email":"sdk@engineering.com"}],"retry":{"retryDelay":200,"maxAttempts":5,"httpCodesToRetry":[429,503]},"rustOptions":{"packageName":"engineering-sdk"}}'
};

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

```go Generate a Rust SDK
package main

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

func main() {

	url := "https://api.postman.com/sdks"

	payload := strings.NewReader("{\n  \"source\": {\n    \"type\": \"collection\",\n    \"id\": \"12ece9e1-2abf-4edc-8e34-de66e74114d2\"\n  },\n  \"language\": \"rust\",\n  \"authors\": [\n    {\n      \"name\": \"engineering Engineering\",\n      \"email\": \"sdk@engineering.com\"\n    }\n  ],\n  \"retry\": {\n    \"retryDelay\": 200,\n    \"maxAttempts\": 5,\n    \"httpCodesToRetry\": [\n      429,\n      503\n    ]\n  },\n  \"rustOptions\": {\n    \"packageName\": \"engineering-sdk\"\n  }\n}")

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

	req.Header.Add("x-api-key", "<apiKey>")
	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 Generate a Rust SDK
require 'uri'
require 'net/http'

url = URI("https://api.postman.com/sdks")

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

request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<apiKey>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"source\": {\n    \"type\": \"collection\",\n    \"id\": \"12ece9e1-2abf-4edc-8e34-de66e74114d2\"\n  },\n  \"language\": \"rust\",\n  \"authors\": [\n    {\n      \"name\": \"engineering Engineering\",\n      \"email\": \"sdk@engineering.com\"\n    }\n  ],\n  \"retry\": {\n    \"retryDelay\": 200,\n    \"maxAttempts\": 5,\n    \"httpCodesToRetry\": [\n      429,\n      503\n    ]\n  },\n  \"rustOptions\": {\n    \"packageName\": \"engineering-sdk\"\n  }\n}"

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

```java Generate a Rust SDK
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://api.postman.com/sdks")
  .header("x-api-key", "<apiKey>")
  .header("Content-Type", "application/json")
  .body("{\n  \"source\": {\n    \"type\": \"collection\",\n    \"id\": \"12ece9e1-2abf-4edc-8e34-de66e74114d2\"\n  },\n  \"language\": \"rust\",\n  \"authors\": [\n    {\n      \"name\": \"engineering Engineering\",\n      \"email\": \"sdk@engineering.com\"\n    }\n  ],\n  \"retry\": {\n    \"retryDelay\": 200,\n    \"maxAttempts\": 5,\n    \"httpCodesToRetry\": [\n      429,\n      503\n    ]\n  },\n  \"rustOptions\": {\n    \"packageName\": \"engineering-sdk\"\n  }\n}")
  .asString();
```

```php Generate a Rust SDK
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://api.postman.com/sdks', [
  'body' => '{
  "source": {
    "type": "collection",
    "id": "12ece9e1-2abf-4edc-8e34-de66e74114d2"
  },
  "language": "rust",
  "authors": [
    {
      "name": "engineering Engineering",
      "email": "sdk@engineering.com"
    }
  ],
  "retry": {
    "retryDelay": 200,
    "maxAttempts": 5,
    "httpCodesToRetry": [
      429,
      503
    ]
  },
  "rustOptions": {
    "packageName": "engineering-sdk"
  }
}',
  'headers' => [
    'Content-Type' => 'application/json',
    'x-api-key' => '<apiKey>',
  ],
]);

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

```csharp Generate a Rust SDK
using RestSharp;

var client = new RestClient("https://api.postman.com/sdks");
var request = new RestRequest(Method.POST);
request.AddHeader("x-api-key", "<apiKey>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"source\": {\n    \"type\": \"collection\",\n    \"id\": \"12ece9e1-2abf-4edc-8e34-de66e74114d2\"\n  },\n  \"language\": \"rust\",\n  \"authors\": [\n    {\n      \"name\": \"engineering Engineering\",\n      \"email\": \"sdk@engineering.com\"\n    }\n  ],\n  \"retry\": {\n    \"retryDelay\": 200,\n    \"maxAttempts\": 5,\n    \"httpCodesToRetry\": [\n      429,\n      503\n    ]\n  },\n  \"rustOptions\": {\n    \"packageName\": \"engineering-sdk\"\n  }\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift Generate a Rust SDK
import Foundation

let headers = [
  "x-api-key": "<apiKey>",
  "Content-Type": "application/json"
]
let parameters = [
  "source": [
    "type": "collection",
    "id": "12ece9e1-2abf-4edc-8e34-de66e74114d2"
  ],
  "language": "rust",
  "authors": [
    [
      "name": "engineering Engineering",
      "email": "sdk@engineering.com"
    ]
  ],
  "retry": [
    "retryDelay": 200,
    "maxAttempts": 5,
    "httpCodesToRetry": [429, 503]
  ],
  "rustOptions": ["packageName": "engineering-sdk"]
] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "https://api.postman.com/sdks")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
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()
```

### Generate a CLI SDK

**Request**

```json
{
  "source": {
    "type": "collection",
    "id": "12ece9e1-2abf-4edc-8e34-de66e74114d2"
  },
  "language": "cli",
  "authors": [
    {
      "name": "engineering Engineering",
      "email": "sdk@engineering.com"
    }
  ],
  "retry": {
    "retryDelay": 200,
    "maxAttempts": 5,
    "httpCodesToRetry": [
      429,
      503
    ]
  },
  "cliOptions": {
    "goModuleName": "github.com/engineering/engineering-cli"
  }
}
```

**SDK Code**

```python Generate a CLI SDK
import requests

url = "https://api.postman.com/sdks"

payload = {
    "source": {
        "type": "collection",
        "id": "12ece9e1-2abf-4edc-8e34-de66e74114d2"
    },
    "language": "cli",
    "authors": [
        {
            "name": "engineering Engineering",
            "email": "sdk@engineering.com"
        }
    ],
    "retry": {
        "retryDelay": 200,
        "maxAttempts": 5,
        "httpCodesToRetry": [429, 503]
    },
    "cliOptions": { "goModuleName": "github.com/engineering/engineering-cli" }
}
headers = {
    "x-api-key": "<apiKey>",
    "Content-Type": "application/json"
}

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

print(response.json())
```

```javascript Generate a CLI SDK
const url = 'https://api.postman.com/sdks';
const options = {
  method: 'POST',
  headers: {'x-api-key': '<apiKey>', 'Content-Type': 'application/json'},
  body: '{"source":{"type":"collection","id":"12ece9e1-2abf-4edc-8e34-de66e74114d2"},"language":"cli","authors":[{"name":"engineering Engineering","email":"sdk@engineering.com"}],"retry":{"retryDelay":200,"maxAttempts":5,"httpCodesToRetry":[429,503]},"cliOptions":{"goModuleName":"github.com/engineering/engineering-cli"}}'
};

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

```go Generate a CLI SDK
package main

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

func main() {

	url := "https://api.postman.com/sdks"

	payload := strings.NewReader("{\n  \"source\": {\n    \"type\": \"collection\",\n    \"id\": \"12ece9e1-2abf-4edc-8e34-de66e74114d2\"\n  },\n  \"language\": \"cli\",\n  \"authors\": [\n    {\n      \"name\": \"engineering Engineering\",\n      \"email\": \"sdk@engineering.com\"\n    }\n  ],\n  \"retry\": {\n    \"retryDelay\": 200,\n    \"maxAttempts\": 5,\n    \"httpCodesToRetry\": [\n      429,\n      503\n    ]\n  },\n  \"cliOptions\": {\n    \"goModuleName\": \"github.com/engineering/engineering-cli\"\n  }\n}")

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

	req.Header.Add("x-api-key", "<apiKey>")
	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 Generate a CLI SDK
require 'uri'
require 'net/http'

url = URI("https://api.postman.com/sdks")

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

request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<apiKey>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"source\": {\n    \"type\": \"collection\",\n    \"id\": \"12ece9e1-2abf-4edc-8e34-de66e74114d2\"\n  },\n  \"language\": \"cli\",\n  \"authors\": [\n    {\n      \"name\": \"engineering Engineering\",\n      \"email\": \"sdk@engineering.com\"\n    }\n  ],\n  \"retry\": {\n    \"retryDelay\": 200,\n    \"maxAttempts\": 5,\n    \"httpCodesToRetry\": [\n      429,\n      503\n    ]\n  },\n  \"cliOptions\": {\n    \"goModuleName\": \"github.com/engineering/engineering-cli\"\n  }\n}"

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

```java Generate a CLI SDK
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://api.postman.com/sdks")
  .header("x-api-key", "<apiKey>")
  .header("Content-Type", "application/json")
  .body("{\n  \"source\": {\n    \"type\": \"collection\",\n    \"id\": \"12ece9e1-2abf-4edc-8e34-de66e74114d2\"\n  },\n  \"language\": \"cli\",\n  \"authors\": [\n    {\n      \"name\": \"engineering Engineering\",\n      \"email\": \"sdk@engineering.com\"\n    }\n  ],\n  \"retry\": {\n    \"retryDelay\": 200,\n    \"maxAttempts\": 5,\n    \"httpCodesToRetry\": [\n      429,\n      503\n    ]\n  },\n  \"cliOptions\": {\n    \"goModuleName\": \"github.com/engineering/engineering-cli\"\n  }\n}")
  .asString();
```

```php Generate a CLI SDK
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://api.postman.com/sdks', [
  'body' => '{
  "source": {
    "type": "collection",
    "id": "12ece9e1-2abf-4edc-8e34-de66e74114d2"
  },
  "language": "cli",
  "authors": [
    {
      "name": "engineering Engineering",
      "email": "sdk@engineering.com"
    }
  ],
  "retry": {
    "retryDelay": 200,
    "maxAttempts": 5,
    "httpCodesToRetry": [
      429,
      503
    ]
  },
  "cliOptions": {
    "goModuleName": "github.com/engineering/engineering-cli"
  }
}',
  'headers' => [
    'Content-Type' => 'application/json',
    'x-api-key' => '<apiKey>',
  ],
]);

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

```csharp Generate a CLI SDK
using RestSharp;

var client = new RestClient("https://api.postman.com/sdks");
var request = new RestRequest(Method.POST);
request.AddHeader("x-api-key", "<apiKey>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"source\": {\n    \"type\": \"collection\",\n    \"id\": \"12ece9e1-2abf-4edc-8e34-de66e74114d2\"\n  },\n  \"language\": \"cli\",\n  \"authors\": [\n    {\n      \"name\": \"engineering Engineering\",\n      \"email\": \"sdk@engineering.com\"\n    }\n  ],\n  \"retry\": {\n    \"retryDelay\": 200,\n    \"maxAttempts\": 5,\n    \"httpCodesToRetry\": [\n      429,\n      503\n    ]\n  },\n  \"cliOptions\": {\n    \"goModuleName\": \"github.com/engineering/engineering-cli\"\n  }\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift Generate a CLI SDK
import Foundation

let headers = [
  "x-api-key": "<apiKey>",
  "Content-Type": "application/json"
]
let parameters = [
  "source": [
    "type": "collection",
    "id": "12ece9e1-2abf-4edc-8e34-de66e74114d2"
  ],
  "language": "cli",
  "authors": [
    [
      "name": "engineering Engineering",
      "email": "sdk@engineering.com"
    ]
  ],
  "retry": [
    "retryDelay": 200,
    "maxAttempts": 5,
    "httpCodesToRetry": [429, 503]
  ],
  "cliOptions": ["goModuleName": "github.com/engineering/engineering-cli"]
] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "https://api.postman.com/sdks")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
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()
```