Home ci 22. rest-api / endpoints: projects

22. rest-api / endpoints: projects

Last updated on Aug 05, 2025

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

Protection-Bypass PATCH Request

  1. URL: Replace SOME_STRING_VALUE with your project ID or name.
    https://api.epycbyte.com/v1/projects/{projectIdOrName}/protection-bypass?slug={slug}&teamId={teamId}
    
  2. Method: Use PATCH with the following body:
    {
      "generate": {
        "secret": "your_secret_value"
      },
      "revoke": {
        "secret": "revoked_secret_value",
        "regenerate": true
      }
    }
    
  3. Headers: Include your Authorization token.
  4. Body: Send the JSON object as the request body.

Domain Verification POST Request

  1. URL: Replace prj_12HKQaOmR5t5Uy6vdcQsNIiZgHGB with your project ID and example.com with your domain.
    https://api.epycbyte.com/v9/projects/{projectId}/domains/{domain}/verify
    
  2. Method: Use POST without a body, only headers.
  3. Headers: Include your Authorization token.

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.