Textures

Fetch texture(s)

GET /textures

Fetch All Textures - GET Endpoint

The Fetch All Textures endpoint of the Simplio3D API provides a list of all available textures. This endpoint is useful for retrieving texture data that can be applied within the Simplio3D environment.

URL

GET /open-api/v1/textures

Request Parameters

  • Headers:

    • Authorization : Bearer token for authentication (required)

    Response

    • Status Code: 200 OK

    • Body: Returns a JSON array of objects, each representing a texture with the following properties:

      • id: Unique identifier for the texture.

      • name: Name of the texture.

      • url: Direct URL to the texture file.

      • category: Category to which the texture belongs.

      Example Response

      [
        {
          "id": "texture_001",
          "name": "Wooden Texture",
          "url": "https://example.com/textures/wooden.jpg",
          "category": "Wood"
        },
        {
          "id": "texture_002",
          "name": "Metallic Texture",
          "url": "https://example.com/textures/metallic.jpg",
          "category": "Metal"
        }
      ]

    Use this endpoint to integrate texture data retrieval within your application. Ensure to handle authentication and JSON parsing to access the desired texture details.

Fetch all textures

get
/api/open-api/v1/textures

Get a list of textures.

Authorizations
AuthorizationstringRequired

Enter token in format (Bearer <your_token>)

Query parameters
per_pageintegerOptional

Number of items per page (-1 for all items)

Example: 25
pageintegerOptional

Number of page

Example: 2
order_bystringOptional

Field to order by (default: created_at)

Example: name
orderstring · enumOptional

Sorting order (asc or desc)

Example: descPossible values:
category_idintegerOptional

Filter by category ID

Example: 2
Responses
chevron-right
200

Successful response

application/json
get
/api/open-api/v1/textures

GET /textures/{id}

Get Texture by ID

Request Parameters

  • Path Parameters:

    • Id: The unique identifier of the texture (required).

Get texture by ID

get
/api/open-api/v1/textures/{id}

Get a specific texture by ID.

Authorizations
AuthorizationstringRequired

Enter token in format (Bearer <your_token>)

Path parameters
idinteger · int64Required

ID of the texture

Example: 1
Responses
chevron-right
200

Successful response

application/json
get
/api/open-api/v1/textures/{id}

Last updated