Public WebsiteResolve Path

Resolve Path

Resolve a top-level path segment — yourname.nashra.website/{path} — to a published landing page or a post, in one call. Landing pages win when both share a slug. A path a live post used to answer on (renamed, or merged into another post) comes back as kind: redirect to its current slug; a live page or post on that path always wins. Unlisted posts resolve too. This is the only way to fetch a landing page; the older landing-pages/{page} endpoint was removed. Rate limited to 60 requests per minute per IP.

curl -X GET "https://app.nashra.ai/api/v1/tenants/example_string/resolve/example_string?posts=redirect" \
  -H "Content-Type: application/json"
{
  "data": {
    "kind": "landing_page",
    "page": {
      "id": 123,
      "uuid": "123e4567-e89b-12d3-a456-426614174000",
      "slug": "example_string",
      "title": "example_string",
      "purpose": "service",
      "show_header": true,
      "language": "en",
      "is_rtl_active": true,
      "schema_version": 42,
      "publish_date": "2024-12-25",
      "updated_at": "2024-12-25T10:00:00Z",
      "subscribe_form_identifier": "example_string",
      "tracking_head": "example_string",
      "content_json": "null",
      "og": {
        "title": "example_string",
        "site_name": "John Doe",
        "description": "example_string",
        "image": "example_string",
        "type": "website",
        "locale": "ar_SA"
      }
    }
  },
  "meta": {}
}
GET
/tenants/{slug}/resolve/{path}
GET
Base URLstring

Target server for requests. Edit to use your own host.

path
slugstring
Required

Tenant's subdomain slug, or its verified custom domain

path
pathstring
Required

The path segment to resolve. Slugs aren't limited to lowercase ASCII — an Arabic title can produce an Arabic slug.

Max length: 255
query
postsstring

Pass redirect if you serve posts under your own /blog/ prefix — a matching post then comes back as a 301 redirect target instead of the post body.

Options: redirect
Request Preview
Response

Response will appear here after sending the request

Path Parameters

slugstring
Required

Tenant's subdomain slug, or its verified custom domain

pathstring
Required

The path segment to resolve. Slugs aren't limited to lowercase ASCII — an Arabic title can produce an Arabic slug.

Query Parameters

postsstring

Pass redirect if you serve posts under your own /blog/ prefix — a matching post then comes back as a 301 redirect target instead of the post body.

Allowed values:redirect

Responses

datastring

Shape depends on kind — a published landing page, a post, or a redirect. A redirect comes back for a URL a live post used to have (it was renamed, or merged into another post), pointing at the post's current slug, and with posts=redirect for any post, pointing at its /blog/ URL

metaobject