Public WebsiteGet Resource

Get Resource

Retrieve a published Resource's form configuration (fields, copy, success state) by its identifier. Resources were called Magic Links, and this path keeps the old magic-links name.

curl -X GET "https://app.nashra.ai/api/v1/tenants/example_string/magic-links/spring-sale" \
  -H "Content-Type: application/json"
{
  "data": {
    "id": "123e4567-e89b-12d3-a456-426614174000",
    "identifier": "spring-sale",
    "title": "example_string",
    "subtitle": "example_string",
    "image_url": "example_string",
    "button_text": "example_string",
    "fields": [
      {
        "key": "company",
        "label": "Company",
        "type": "text",
        "is_required": true
      }
    ],
    "requires_confirmation": true,
    "success_message": "example_string",
    "success_button_text": "example_string",
    "success_button_url": "example_string",
    "og": {
      "title": "example_string",
      "site_name": "John Doe",
      "description": "example_string",
      "image": "example_string",
      "type": "website",
      "locale": "ar_SA",
      "locale_alternate": "example_string"
    }
  },
  "meta": {}
}
GET
/tenants/{slug}/magic-links/{identifier}
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
identifierstring
Required

The Resource's identifier

Request Preview
Response

Response will appear here after sending the request

Path Parameters

slugstring
Required

Tenant's subdomain slug, or its verified custom domain

identifierstring
Required

The Resource's identifier

Example:
spring-sale

Responses

dataobject
metaobject