> For the complete documentation index, see [llms.txt](https://docs.cottoncast.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cottoncast.com/api-reference/api-endpoints/get-integrations-config.md).

# Integration

## Get Integrations configuration

<mark style="color:blue;">`GET`</mark> `https://api.cottoncast.com/integrations/config`

This endpoint provides you with all necessary data to write a custom plugin. It mainly provided information about product attributes.\
\
It provides for example more information about product attributes that we use such as categories, agegroups, sizes and colors.

#### Headers

| Name           | Type   | Description                       |
| -------------- | ------ | --------------------------------- |
| Authentication | string | Basic Authentication is required. |

{% tabs %}
{% tab title="200 OK" %}

```javascript
{
    "status": "ok",
    "response": {
        "endpoints": [
            {
                "code": "order",
                "url": "https://api-dev001.cottoncast.com/order/",
                "method": "POST"
            }
        ],
        "webhooks": [
            {
                "code": "orderstatus",
                "url": "https://nerdbynature.nl/cottoncast/orderstatus",
                "method": "POST"
            },
            {
                "code": "product",
                "url": "https://nerdbynature.nl/cottoncast/product",
                "method": "POST"
            }
        ],
        "attributes": [
            {
                "code": "category",
                "type": "category",
                "name": "Category",
                "short_name": "Category",
                "values": [
                    {
                        "code": "T",
                        "label": "T-Shirt",
                        "sort_order": 1
                    },
                    {
                        "code": "H",
                        "label": "Hoodie"
                    },
                    {
                        "code": "S",
                        "label": "Sweater"
                    },
                    {
                        "code": "P",
                        "label": "Polo"
                    },
                    {
                        "code": "B",
                        "label": "Body"
                    }
                ]
            },
            {
                "code": "gender",
                "type": "agegroup",
                "name": "Agegroup",
                "short_name": "Age/Gender",
                "values": [
                    {
                        "code": "M",
                        "label": "Men"
                    },
                    {
                        "code": "W",
                        "label": "Women"
                    },
                    {
                        "code": "B",
                        "label": "Boys"
                    },
                    {
                        "code": "G",
                        "label": "Girls"
                    },
                    {
                        "code": "BB",
                        "label": "Baby Boys"
                    },
                    {
                        "code": "BG",
                        "label": "Baby Girls"
                    }
                ]
            },
            {
                "code": "russellcolor",
                "type": "color",
                "name": "Russell Color",
                "short_name": "Color",
                "values": [
                    {
                        "code": "30",
                        "label": "Weiß",
                        "sort_order": 1
                    },
                    {
                        "code": "36",
                        "label": "Schwarz",
                        "sort_order": 2
                    },
                    {
                        "code": "CG",
                        "label": "Grau",
                        "sort_order": 3
                    },
                    {
                        "code": "CD",
                        "label": "Pink"
                    },
                    {
                        "code": "57",
                        "label": "Fuchsia"
                    },
                    {
                        "code": "41",
                        "label": "Burgundy"
                    },
                    {
                        "code": "CR",
                        "label": "Classic Red"
                    },
                    {
                        "code": "BR",
                        "label": "Bright Red"
                    },
                    {
                        "code": "44",
                        "label": "Orange"
                    },
                    {
                        "code": "K2",
                        "label": "Yellow"
                    },
                    {
                        "code": "LM",
                        "label": "Lime"
                    },
                    {
                        "code": "38",
                        "label": "Bottle Green"
                    },
                    {
                        "code": "AL",
                        "label": "Apple"
                    },
                    {
                        "code": "65",
                        "label": "Turquoise"
                    },
                    {
                        "code": "SC",
                        "label": "Sky"
                    },
                    {
                        "code": "BH",
                        "label": "Bright Royal"
                    },
                    {
                        "code": "FN",
                        "label": "French Navy"
                    },
                    {
                        "code": "LX",
                        "label": "Light Oxford"
                    }
                ]
            },
            {
                "code": "size",
                "type": "size",
                "name": "Clothing size",
                "short_name": "Size",
                "values": [
                    {
                        "code": "S",
                        "label": "S"
                    },
                    {
                        "code": "M",
                        "label": "M"
                    },
                    {
                        "code": "L",
                        "label": "L"
                    },
                    {
                        "code": "XL",
                        "label": "XL"
                    },
                    {
                        "code": "2XL",
                        "label": "2XL"
                    },
                    {
                        "code": "3XL",
                        "label": "3XL"
                    },
                    {
                        "code": "4XL",
                        "label": "4XL"
                    }
                ]
            },
            {
                "code": "bccolor",
                "type": "color",
                "name": "B&C Color",
                "short_name": "Color",
                "values": [
                    {
                        "code": "WHI",
                        "label": "Weiß",
                        "sort_order": 1
                    },
                    {
                        "code": "BLA",
                        "label": "Schwarz",
                        "sort_order": 2
                    },
                    {
                        "code": "LGR",
                        "label": "Grau",
                        "sort_order": 3
                    },
                    {
                        "code": "ATO",
                        "label": "Hellblau"
                    },
                    {
                        "code": "DGR",
                        "label": "Dunkelgrau",
                        "sort_order": 4
                    },
                    {
                        "code": "FUC",
                        "label": "Fuchsia"
                    },
                    {
                        "code": "GOL",
                        "label": "Goldgelb"
                    },
                    {
                        "code": "KHA",
                        "label": "Dunkelgrün"
                    },
                    {
                        "code": "MKH",
                        "label": "Dunkelgrün"
                    },
                    {
                        "code": "MPI",
                        "label": "Millennial rosa"
                    },
                    {
                        "code": "NAV",
                        "label": "Navy blau"
                    },
                    {
                        "code": "ORA",
                        "label": "Orange"
                    },
                    {
                        "code": "RGR",
                        "label": "Hellgrün"
                    },
                    {
                        "code": "RED",
                        "label": "Rot"
                    },
                    {
                        "code": "RBL",
                        "label": "Royal Blau"
                    },
                    {
                        "code": "SGR",
                        "label": "Sport Grau"
                    },
                    {
                        "code": "UOR",
                        "label": "Urban Orange"
                    },
                    {
                        "code": "UPU",
                        "label": "Urban Lila"
                    }
                ]
            },
            {
                "code": "wilkacolor",
                "type": "color",
                "name": "Wilka Color",
                "short_name": "Kleur",
                "values": [
                    {
                        "code": "WHI",
                        "label": "Weiß",
                        "sort_order": 1
                    },
                    {
                        "code": "BLA",
                        "label": "Schwarz",
                        "sort_order": 2
                    },
                    {
                        "code": "ORO",
                        "label": "Rosa"
                    },
                    {
                        "code": "BRO",
                        "label": "Baby Rosa"
                    },
                    {
                        "code": "FUC",
                        "label": "Fuchsia"
                    },
                    {
                        "code": "OGE",
                        "label": "Ocker Gelb"
                    },
                    {
                        "code": "OGR",
                        "label": "Altes grün"
                    },
                    {
                        "code": "ARM",
                        "label": "Army"
                    },
                    {
                        "code": "LIM",
                        "label": "Lime"
                    },
                    {
                        "code": "ORA",
                        "label": "Orange"
                    },
                    {
                        "code": "RED",
                        "label": "Rot"
                    },
                    {
                        "code": "BBL",
                        "label": "Baby Blau"
                    },
                    {
                        "code": "KOB",
                        "label": "Kobalt Blau"
                    },
                    {
                        "code": "AQU",
                        "label": "Wasser Blau"
                    },
                    {
                        "code": "NAV",
                        "label": "Navy blau"
                    }
                ]
            },
            {
                "code": "sizeBabyDouble",
                "type": "size",
                "name": "Clothing size baby's",
                "short_name": "Size",
                "values": [
                    {
                        "code": "50",
                        "label": "50/56"
                    },
                    {
                        "code": "62",
                        "label": "62/68"
                    },
                    {
                        "code": "74",
                        "label": "74/80"
                    },
                    {
                        "code": "86",
                        "label": "86/92"
                    }
                ]
            },
            {
                "code": "sleevetype",
                "type": "general",
                "name": "Sleeve Type",
                "short_name": "Sleeve",
                "values": [
                    {
                        "code": "S",
                        "label": "Kurzarm",
                        "sort_order": 1
                    },
                    {
                        "code": "S",
                        "label": "3/4 Arm",
                        "sort_order": 3
                    },
                    {
                        "code": "L",
                        "label": "Langarm",
                        "sort_order": 2
                    },
                    {
                        "code": "W",
                        "label": "Ohne Arm",
                        "sort_order": 4
                    }
                ]
            },
            {
                "code": "fittype",
                "type": "general",
                "name": "Fit Type",
                "short_name": "Fit",
                "values": [
                    {
                        "code": "L",
                        "label": "Loose fit",
                        "sort_order": 1
                    },
                    {
                        "code": "R",
                        "label": "Regular Fit",
                        "sort_order": 2
                    },
                    {
                        "code": "S",
                        "label": "Slim Fit",
                        "sort_order": 3
                    }
                ]
            }
        ]
    }
}
```

{% endtab %}
{% endtabs %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.cottoncast.com/api-reference/api-endpoints/get-integrations-config.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
