Skip to documentation
AppLaunchFlow/ Docs

API reference / Assets

Create an asset folder

POST/api/v1/assets/folders

Authorization

Send your API key or MCP OAuth token in the Authorization: Bearer header. Active or trialing Unlimited is required.

Required permission assets:write

Every mutation requires JSON and an Idempotency-Key. Reuse the same key and exact input when retrying.

Parameters

Idempotency-Keyheaderrequired

string

Persist this key for retries. Reusing it with changed input returns 409. Receipts are retained for at least 24 hours.

min length: 8 · max length: 128

Request body

application/json

projectIdbodyrequired

string · uuid

actionbodyrequired

"create_folder" | "rename_folder" | "delete_folder" | "set_locale" | "move" | "delete" | "replace"

pathsbodyoptional

string[]

min items: 1 · max items: 50

folderIdbodyoptional

string | null

namebodyoptional

string

min length: 1 · max length: 60

deviceTypebodyoptional

"mobile" | "tablet" | "desktop" | "watch"

platformbodyoptional

"ios" | "android"

localebodyoptional

string | null

pathbodyoptional

string

max length: 1024

replacementPathbodyoptional

string

max length: 1024

View complete request schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "projectId": {
      "type": "string",
      "format": "uuid",
      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
    },
    "action": {
      "type": "string",
      "enum": [
        "create_folder",
        "rename_folder",
        "delete_folder",
        "set_locale",
        "move",
        "delete",
        "replace"
      ]
    },
    "paths": {
      "minItems": 1,
      "maxItems": 50,
      "type": "array",
      "items": {
        "type": "string",
        "maxLength": 1024,
        "pattern": "^(?:(?:mobile|tablet|desktop|watch)\\/(?:ios|android)|logo|mockups|illustrations|backgrounds|panorama|fonts|promo-media)\\/[^/\\\\%?#:]+$"
      }
    },
    "folderId": {
      "anyOf": [
        {
          "type": "string",
          "format": "uuid",
          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
        },
        {
          "type": "null"
        }
      ]
    },
    "name": {
      "type": "string",
      "minLength": 1,
      "maxLength": 60
    },
    "deviceType": {
      "type": "string",
      "enum": [
        "mobile",
        "tablet",
        "desktop",
        "watch"
      ]
    },
    "platform": {
      "type": "string",
      "enum": [
        "ios",
        "android"
      ]
    },
    "locale": {
      "anyOf": [
        {
          "type": "string",
          "pattern": "^[a-z]{2,3}(-[A-Za-z0-9]{2,8})*$"
        },
        {
          "type": "null"
        }
      ]
    },
    "path": {
      "type": "string",
      "maxLength": 1024,
      "pattern": "^(?:(?:mobile|tablet|desktop|watch)\\/(?:ios|android)|logo|mockups|illustrations|backgrounds|panorama|fonts|promo-media)\\/[^/\\\\%?#:]+$"
    },
    "replacementPath": {
      "type": "string",
      "maxLength": 1024,
      "pattern": "^(?:(?:mobile|tablet|desktop|watch)\\/(?:ios|android)|logo|mockups|illustrations|backgrounds|panorama|fonts|promo-media)\\/[^/\\\\%?#:]+$"
    }
  },
  "required": [
    "projectId",
    "action"
  ],
  "additionalProperties": false
}

Request example

Set ALF_API_URL to https://dashboard.applaunchflow.com/api/v1 and ALF_API_KEY to your key. Replace sample IDs with your project’s values. Use a new ALF_REQUEST_ID for each new operation.

cURL
curl --request POST \
  --url "$ALF_API_URL/assets/folders" \
  --header "Authorization: Bearer $ALF_API_KEY" \
  --header "Content-Type: application/json" \
  --header "Idempotency-Key: $ALF_REQUEST_ID" \
  --data '{
  "projectId": "11111111-1111-4111-8111-111111111111",
  "action": "create_folder"
}'

This example shows the request structure. Some editor operations require additional query parameters that are not yet described in OpenAPI.

Response

Successful JSON responses wrap the result in data, with a request ID in meta.requestId.

successdatarequired

boolean

View response schema
{
  "type": "object",
  "required": [
    "data",
    "meta"
  ],
  "properties": {
    "data": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "type": "object",
      "properties": {
        "success": {
          "type": "boolean"
        }
      },
      "required": [
        "success"
      ],
      "additionalProperties": {}
    },
    "meta": {
      "type": "object",
      "required": [
        "requestId"
      ],
      "properties": {
        "requestId": {
          "type": "string",
          "format": "uuid"
        }
      }
    }
  }
}

Errors & retries

Errors use application/problem+json. Check the stable code and keep requestId when contacting support. Respect Retry-After on 429 responses.

See error handling and idempotency →