For clean Markdown of any page, append .md to the page URL. For a complete documentation index, see https://developer-dev.shipbob.dev/experimental/api/kitting/llms.txt. For full documentation content, see https://developer-dev.shipbob.dev/experimental/api/kitting/llms-full.txt.

# Get Action Types


GET https://gateway-dev.shipbob.dev/Experimental/kitting/action-types

Returns the available action types to configure steps in a kitting work order. Some action types may include sub-actions required for certain action types.


Reference: https://developer-dev.shipbob.dev/experimental/api/kitting/get-action-types

## OpenAPI Specification

```yaml
openapi: 3.1.0
info:
  title: api-experimental
  version: 1.0.0
paths:
  /Experimental/kitting/action-types:
    get:
      operationId: get-action-types
      summary: |
        Get Action Types
      description: >
        Returns the available action types to configure steps in a kitting work
        order. Some action types may include sub-actions required for certain
        action types.
      tags:
        - subpackage_kitting
      parameters:
        - name: Authorization
          in: header
          description: Authentication using Personal Access Token (PAT) token
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/Kitting.PublicWorkOrderActionTypesResponse
        '500':
          description: Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Kitting.ApiError'
servers:
  - url: https://gateway-dev.shipbob.dev
components:
  schemas:
    Kitting.PublicWorkOrderActionTypeResponse:
      type: object
      properties:
        action_id:
          type: integer
          description: The unique identifier for the action.
        active:
          type: boolean
          description: A value indicating whether the action is active.
        control_type:
          type:
            - string
            - 'null'
          description: The control type for the action.
        is_root:
          type: boolean
          description: A value indicating whether this action is a root-level action.
        name:
          type:
            - string
            - 'null'
          description: The name of the action.
        order:
          type:
            - integer
            - 'null'
          description: The display order of the action.
        sub_actions:
          type:
            - array
            - 'null'
          items:
            $ref: '#/components/schemas/Kitting.PublicWorkOrderActionTypeResponse'
          description: List of sub-actions nested under this action.
      description: >-
        Represents a work order action type with its configuration and
        sub-actions.
      title: Kitting.PublicWorkOrderActionTypeResponse
    Kitting.PublicWorkOrderActionTypesResponse:
      type: object
      properties:
        actions:
          type:
            - array
            - 'null'
          items:
            $ref: '#/components/schemas/Kitting.PublicWorkOrderActionTypeResponse'
          description: The list of work order action types.
      description: Response containing a collection of work order action types.
      title: Kitting.PublicWorkOrderActionTypesResponse
    Kitting.ApiError:
      type: object
      properties:
        details:
          oneOf:
            - description: Any type
            - type: 'null'
        errors:
          type: array
          items:
            type: string
        message:
          type: string
        stackTrace:
          type:
            - string
            - 'null'
      title: Kitting.ApiError
  securitySchemes:
    PAT:
      type: http
      scheme: bearer
      description: Authentication using Personal Access Token (PAT) token
    OAuth2:
      type: http
      scheme: bearer
      description: OAuth2 authentication using JWT tokens

```

## SDK Code Examples

```python Kitting_getActionTypes_example
import requests

url = "https://gateway-dev.shipbob.dev/Experimental/kitting/action-types"

headers = {"Authorization": "Bearer <token>"}

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

print(response.json())
```

```javascript Kitting_getActionTypes_example
const url = 'https://gateway-dev.shipbob.dev/Experimental/kitting/action-types';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

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

```go Kitting_getActionTypes_example
package main

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

func main() {

	url := "https://gateway-dev.shipbob.dev/Experimental/kitting/action-types"

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

	req.Header.Add("Authorization", "Bearer <token>")

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

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

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

}
```

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

url = URI("https://gateway-dev.shipbob.dev/Experimental/kitting/action-types")

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

request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'

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

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

HttpResponse<String> response = Unirest.get("https://gateway-dev.shipbob.dev/Experimental/kitting/action-types")
  .header("Authorization", "Bearer <token>")
  .asString();
```

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

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://gateway-dev.shipbob.dev/Experimental/kitting/action-types', [
  'headers' => [
    'Authorization' => 'Bearer <token>',
  ],
]);

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

```csharp Kitting_getActionTypes_example
using RestSharp;

var client = new RestClient("https://gateway-dev.shipbob.dev/Experimental/kitting/action-types");
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "Bearer <token>");
IRestResponse response = client.Execute(request);
```

```swift Kitting_getActionTypes_example
import Foundation

let headers = ["Authorization": "Bearer <token>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://gateway-dev.shipbob.dev/Experimental/kitting/action-types")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

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()
```