Home/Article
Esadax JournalPlatform

Using Projects Endpoint in Esadax REST API

To use the provided cURL commands effectively, follow these steps for each endpoint: Protection-Bypass PATCH Request 1. Headers: Include your Authorization token. 2. Body: Send the JSON object as the request

To use the provided cURL commands effectively, follow these steps for each endpoint:

Protection-Bypass PATCH Request

  1. Headers: Include your Authorization token.
  2. Body: Send the JSON object as the request body.

Method: Use PATCH with the following body:

{
  "generate": {
    "secret": "your_secret_value"
  },
  "revoke": {
    "secret": "revoked_secret_value",
    "regenerate": true
  }
}

URL: Replace SOME_STRING_VALUE with your project ID or name.

https://api.esadax.com/v1/projects/{projectIdOrName}/protection-bypass?slug={slug}&teamId={teamId}

Domain Verification POST Request

  1. Method: Use POST without a body, only headers.
  2. Headers: Include your Authorization token.

URL: Replace prj_12HKQaOmR5t5Uy6vdcQsNIiZgHGB with your project ID and example.com with your domain.

https://api.esadax.com/v9/projects/{projectId}/domains/{domain}/verify

Handling Responses

  • Protection-Bypass: Check for response codes to determine success or failure.
  • Domain Verification: Parse the response object to check if verification was successful and handle any challenges or errors accordingly.

Security Considerations

  • Use HTTPS for all API calls.
  • Handle secrets and tokens securely, avoiding logging of sensitive information.
  • Implement rate limiting or retries with exponential backoff to manage API usage effectively.
Subscribe