To use the provided cURL commands effectively, follow these steps for each endpoint:
Protection-Bypass PATCH Request
- URL: Replace
SOME_STRING_VALUEwith your project ID or name.https://api.epycbyte.com/v1/projects/{projectIdOrName}/protection-bypass?slug={slug}&teamId={teamId} - Method: Use PATCH with the following body:
{ "generate": { "secret": "your_secret_value" }, "revoke": { "secret": "revoked_secret_value", "regenerate": true } } - Headers: Include your Authorization token.
- Body: Send the JSON object as the request body.
Domain Verification POST Request
- URL: Replace
prj_12HKQaOmR5t5Uy6vdcQsNIiZgHGBwith your project ID andexample.comwith your domain.https://api.epycbyte.com/v9/projects/{projectId}/domains/{domain}/verify - Method: Use POST without a body, only headers.
- 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.