Docs | imagemash.io
DashboardSign up for Free
  • 🎉imagemash.io
  • 🚀Getting Started
    • Simple CDN Link Usage
  • 💽Sources
    • IM Cloud Storage
    • Image URL
    • Storage Providers
      • Amazon S3
      • Google Cloud
      • S3 Compatible Storage
    • Web Folder
  • 🖼️Image Transform
    • Transform Options
      • Quality
      • Width
      • Height
      • Scale
      • Crop
      • Gravity
      • Background
      • Border
      • Round
      • Output Format
      • Angle (Rotate)
      • Flip
      • Helpers
        • x, y
      • Filters
        • Tint
        • Flatten
        • Grayscale
        • Blur
        • Sharpen
        • Median
        • Threshold
        • Negative
    • Transform Cheat Sheet
    • Named Transforms
  • 🛠️API
    • API - Good to knows
    • API Methods
      • Account
        • Named Transforms
          • Get named transforms
          • Add named transform
          • Remove named transform
        • Image URL Restriction
          • Get keyword list
          • Add keyword to list
          • Remove keyword from list
          • Change keyword list usage
      • Storage
        • Upload file
        • Get and search files
        • Delete files
        • Add new tags to files
        • Set tags of files
        • Remove tags from files
        • Purge Cache
      • Optimize / Transform
  • ❓How it works?
    • Custom Domain
    • Bandwidth
    • Cloud Storage
    • Caching
    • Purge Cache
    • Limits
  • Contact Us
Powered by GitBook
On this page
  1. API
  2. API Methods
  3. Account
  4. Named Transforms

Get named transforms

Get named transforms

POST https://api.imagemash.io/v1/account/addNamedTransform

Headers

Name
Type
Description

apikey*

Your API Key

[
    {
        "shortcut": "my_named_transform1",
        "transformString": "w_100,h_100,bo_2_skyblue",
        "createdAt": "2022-02-12T13:02:48.092Z"
    },
    {
        "shortcut": "my_named_transform2",
        "transformString": "w_100,h_100,bo_2_skyblue",
        "createdAt": "2022-01-01T14:05:29.852Z"
    },
    {
        "shortcut": "my_named_transformq3",
        "transformString": "w_100,h_100,bo_2_skyblue",
        "createdAt": "2022-01-01T14:05:29.852Z"
    }
]
{
    msg: "error details"
    details: "..."
}   // Explanation of error
Unauthorized

Example Codes

curl --location --request POST 'https://api.imagemash.io/v1/account/getNamedTransforms' \
--header 'apikey: your_api_key'
var client = new RestClient("https://api.imagemash.io/v1/account/getNamedTransforms");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("apikey", "your_api_key");
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);
import java.io.*;
import okhttp3.*;
public class main {
  public static void main(String []args) throws IOException{
    OkHttpClient client = new OkHttpClient().newBuilder()
      .build();
    MediaType mediaType = MediaType.parse("text/plain");
    RequestBody body = RequestBody.create(mediaType, "");
    Request request = new Request.Builder()
      .url("https://api.imagemash.io/v1/account/getNamedTransforms")
      .method("POST", body)
      .addHeader("apikey", "your_api_key")
      .build();
    Response response = client.newCall(request).execute();
    System.out.println(response.body().string());
  }
}
var axios = require('axios');

var config = {
  method: 'post',
  url: 'https://api.imagemash.io/v1/account/getNamedTransforms',
  headers: { 
    'apikey': 'your_api_key'
  },
  maxRedirects: 0
};

axios(config)
.then(function (response) {
  console.log(JSON.stringify(response.data));
})
.catch(function (error) {
  console.log(error);
});
import requests

url = "https://api.imagemash.io/v1/account/getNamedTransforms"

payload={}
headers = {
  'apikey': 'your_api_key'
}

response = requests.request("POST", url, headers=headers, data=payload)

print(response.text)
require "uri"
require "net/http"

url = URI("https://api.imagemash.io/v1/account/getNamedTransforms")

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

request = Net::HTTP::Post.new(url)
request["apikey"] = "your_api_key"

response = https.request(request)
puts response.read_body
PreviousNamed TransformsNextAdd named transform

Last updated 2 years ago

🛠️