v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-1442228254.5 KB

Returns slot type information as follows:

  • If you specify the nameContains field, returns the $LATEST version of all slot types that contain the specified string.

  • If you don't specify the nameContains field, returns information about the $LATEST version of all slot types.

The operation requires permission for the lex:GetSlotTypes action.

get/slottypes/

Query parameters

nextTokenstring

A pagination token that fetches the next page of slot types. If the response to this API call is truncated, Amazon Lex returns a pagination token in the response. To fetch next page of slot types, specify the pagination token in the next request.

maxResultsinteger

The maximum number of slot types to return in the response. The default is 10.

nameContainsstring

Substring to match in slot type names. A slot type will be returned if any part of its name matches the substring. For example, "xyz" matches both "xyzabc" and "abcxyz."

Response

Success

nextTokenstring

If the response is truncated, it includes a pagination token that you can specify in your next request to fetch the next page of slot types.

Example response

{
  "slotTypes": [
    {
      "version": "$LATEST",
      "name": "DocPizzaCrustType",
      "createdDate": 1494359274.403,
      "description": "Available crust types",
      "lastUpdatedDate": 1494359274.403
    },
    {
      "version": "$LATEST",
      "name": "DocPizzaSauceType",
      "createdDate": 1494356442.23,
      "description": "Available pizza sauces",
      "lastUpdatedDate": 1494356442.23
    },
    {
      "version": "$LATEST",
      "name": "DocPizzaType",
      "createdDate": 1494359198.656,
      "description": "Available pizzas",
      "lastUpdatedDate": 1494359198.656
    }
  ]
}