copyfactory.io
  • Getting started
    • Overview
      • Authentication
      • Rate limiting
      • Errors
  • API
    • Playbooks
      • The playbook object
      • List playbooks
    • Sequences
      • The sequence object
      • List sequences
    • Contacts
      • The contact object
      • Create contact
      • Get contact
      • Search contacts
    • Profiles
      • The profile object
      • Get a profile
      • List all profiles
    • Premises
      • The premise object
      • Get a premise
      • List all premises
    • Generations
      • The generations object
      • Generate text
  • Text Generation Tutorials
    • How to generate text
  • App
    • Website
    • Login
Powered by GitBook
On this page
  • Test your connection
  • Get account details
  1. Getting started
  2. Overview

Authentication

PreviousOverviewNextRate limiting

Last updated 2 years ago

uses API keys to allow access to the API. You can get an API key by to your account settings in Copyfactory. There is also a link in the nav that takes you directly to your account page.

Copyfactory expects the API key to be included in all API requests to the server in a header that looks like the following:

Authorization: API_KEY

Test your connection

To make your first request, send an authenticated request to the /me endpoint. This will provide you with your account status.

Get account details

GET https://app.copyfactory.io/api/v2/me

Test connection.

Headers

Name
Type
Description

Authorization*

string

You account API key.

{
  "message": "Authorized",
}
curl --location --request GET 'https://app.copyfactory.io/api/v2/me' \
--header 'Authorization: API-KEY'
import requests

url = "https://app.copyfactory.io/api/v2/me"

headers = {
  'Authorization': 'API-KEY'
}

response = requests.request("GET", url, headers=headers)

print(response.text)
Copyfactory