# Convert Authenticated API cURL

**Use case:** 

Generate code examples from cURL commands that include bearer tokens, JSON bodies, and custom headers.

## Input

```json
{
  "curlCommands": [
    "curl https://api.stripe.com/v1/customers -u sk_test_example: -d email=buyer@example.com",
    "curl https://api.github.com/repos/apify/apify-sdk-js/issues -H 'Authorization: Bearer ghp_example' -H 'Accept: application/vnd.github+json'"
  ],
  "languages": [
    "node-axios",
    "php",
    "go"
  ]
}
```

## Output

```json
{
  "curlCommand": {
    "label": "cURL Command",
    "format": "text"
  },
  "conversions": {
    "label": "Conversions",
    "format": "object"
  },
  "errors": {
    "label": "Errors",
    "format": "object"
  },
  "success": {
    "label": "Success",
    "format": "boolean"
  }
}
```

## About this Actor

This example demonstrates how to use [cURL to Code Converter](https://apify.com/automation-lab/curl-to-code-converter) with a specific input configuration. Visit the [Actor detail page](https://apify.com/automation-lab/curl-to-code-converter) to learn more, explore other use cases, and run it yourself.