TextMaster's Developer Documentation
HomeApp
  • Welcome!
  • Quick Start
    • Postman
    • OpenAPI
  • Overview
    • Resources in the REST API
    • Authentication
    • Troubleshooting
    • Filters
    • Workflow
    • File uploads
    • Loop
  • Guides
    • Integrator best practices
  • Apps
    • About OAuth Apps
    • Building OAuth Apps
      • Creating an OAuth App
      • Authorizing OAuth Apps
      • Scopes for OAuth Apps
    • Managing OAuth Apps
      • Modifying an OAuth App
      • Deleting an OAuth App
  • Webhooks & Events
    • Webhooks
      • Creating webhooks
      • Configuring your server for webhooks
      • Securing webhooks
      • Troubleshooting webhooks
    • Events
  • Integrations
    • Akeneo
      • Getting Started
      • Configuration
      • Usage
      • Monitoring
      • Troubleshooting
    • Salesforce Commerce Cloud
      • Getting Started
      • Configuration
      • Usage
      • Monitoring
      • Troubleshooting
  • Reference
    • Abilities
    • Authors
    • Documents
    • Categories
    • Countries
    • Expertises
    • Glossaries
    • Languages
    • Levels
    • Locales
    • Preferred Authors
    • Projects
    • Project Templates
    • Negotiated Contracts
    • Support Messages
    • Transactions
    • Uploads
    • Users
    • Work Templates
Powered by GitBook
On this page

Was this helpful?

  1. Reference

Preferred Authors

PreviousLocalesNextProjects

Last updated 1 year ago

Was this helpful?

List preferred authors

By default, you can only list preferred authors which have been whitelisted or blacklisted. Preferred authors who completed a document of yours but you didn't rate can be found within the uncategorized list.

OAuth: This endpoint requires one of the following scopes: preferred_author:manage, preferred_author:read or preferred_author:write.

Code samples

curl -G "https://api.textmaster.com/v1/clients/my_authors" \
  -H "Authorization: Bearer 790d0c6d24747b818f1c83184a2720e603db74b0b7de246365636765569c5d4e"

Add a preferred author

OAuth: This endpoint requires one of the following scopes: preferred_author:manage or referred_author:write.

Code samples

curl "https://api.textmaster.com/v1/clients/my_authors" \
  -X POST \
  -d '{
    "my_author": {
      "description": "Some description",
      "status": "my_textmaster",
      "author_id": "61698aaf8b81926d91c0e889"
    }
  }' \
  -H "Authorization: Bearer 3a7dce3b773247c159b8f18be707c2c5838d2e7138d36813e74e28e43caa0aaa" \
  -H "Content-Type: application/json"

Get a preferred author

OAuth: This endpoint requires one of the following scopes: preferred_author:manage, preferred_author:read or referred_author:write.

Code samples

curl -G "https://api.textmaster.com/v1/clients/my_authors/61698ab08b81926d91c0e8a3" \
  -H "Authorization: Bearer f2a5e17102ca9e6c8494b323847b784615ab1da0f1525258d85af89385fef5f5"

Update a preferred author

OAuth: This endpoint requires one of the following scopes: preferred_author:manage or referred_author:write.

Code samples

curl "https://api.textmaster.com/v1/clients/my_authors/61698ab08b81926d91c0e8bd" \
  -X PUT \
  -d '{ "my_author": { "description": "Some new description" } }' \
  -H "Authorization: Bearer b9ad70843ca9d09f59bc27f87c1aab02de0dfd03109ca1a7a3f70f899f6427c6" \
  -H "Content-Type: application/json"

List preferred authors able to work on project

OAuth: This endpoint requires one of the following scopes: preferred_author:manage, preferred_author:read or referred_author:write.

Code samples

curl -G "https://api.textmaster.com/v1/clients/projects/61698ab18b81926d91c0e8e7/my_authors" \
  -H "Authorization: Bearer 2a1e347c6aaf1515cbb7e146601e93832359d4edc437e0d494ed195facccc05d"

Get My Authors

get
Authorizations
Query parameters
statusstring ยท enumOptional

The category of authors to list (lists all by default).

Prossible values:

  • preferred
  • blacklisted
  • uncategorized
  • my_textmaster (legacy, prefer 'preferred')
Possible values:
pageintegerOptional

Search results are limited to 100 items. Specify page number to read more than the first page.

per_pageintegerOptional

Number of items per page. Default is 100. Maximum is 100.

Responses
200
Lists My Authors
application/json
401
Unauthorized
application/json
403
Forbidden
application/json
get
GET /v1/clients/my_authors HTTP/1.1
Host: api.textmaster.com
Accept: */*
{
  "total_pages": 1,
  "count": 1,
  "page": 1,
  "per_page": 100,
  "previous_page": null,
  "next_page": null,
  "my_authors": [
    {
      "id": "61698aaf8b81926d91c0e87a",
      "author_id": "61698aaf8b81926d91c0e86f",
      "author_name": "john",
      "author_ref": "A-986F-FM",
      "created_at": {
        "day": 15,
        "month": 10,
        "year": 2021,
        "full": "2021-10-15 14:05:35 UTC"
      },
      "description": "description",
      "latest_activity": "2021-10-15 14:05:06 UTC",
      "status": "preferred",
      "tags": [],
      "updated_at": {
        "day": 15,
        "month": 10,
        "year": 2021,
        "full": "2021-10-15 14:05:35 UTC"
      }
    }
  ]
}

Retrieve a single My Author

get
Authorizations
Path parameters
author_idstringRequired

(required) ID of the Author

Responses
200
Gets My Author Info
application/json
401
Unauthorized
application/json
403
Forbidden
application/json
404
My Author Info Not Found
application/json
get
GET /v1/clients/my_authors/{author_id} HTTP/1.1
Host: api.textmaster.com
Accept: */*
{
  "id": "61698ab08b81926d91c0e8ae",
  "author_id": "61698ab08b81926d91c0e8a3",
  "author_name": "john",
  "author_ref": "A-98A3-FM",
  "created_at": {
    "day": 15,
    "month": 10,
    "year": 2021,
    "full": "2021-10-15 14:05:36 UTC"
  },
  "description": "description",
  "latest_activity": "2021-10-15 14:05:06 UTC",
  "status": "preferred",
  "tags": [],
  "updated_at": {
    "day": 15,
    "month": 10,
    "year": 2021,
    "full": "2021-10-15 14:05:36 UTC"
  }
}

Get all My Authors who can do a given Project

get
Authorizations
Path parameters
project_idstringRequired

The Project ID.

Query parameters
statusstring ยท enumOptional

The category of authors to list (lists all by default).

Prossible values:

  • preferred
  • blacklisted
  • uncategorized
  • my_textmaster (legacy, prefer 'preferred')
Possible values:
pageintegerOptional

Search results are limited to 100 items. Specify page number to read more than the first page.

Responses
200
Lists possible My Authors
application/json
401
Unauthorized
application/json
403
Forbidden
application/json
get
GET /v1/clients/projects/{project_id}/my_authors HTTP/1.1
Host: api.textmaster.com
Accept: */*
{
  "total_pages": 1,
  "count": 1,
  "page": 1,
  "per_page": 20,
  "previous_page": null,
  "next_page": null,
  "my_authors": [
    {
      "id": "61698aaf8b81926d91c0e87a",
      "author_id": "61698aaf8b81926d91c0e86f",
      "author_name": "john",
      "author_ref": "A-986F-FM",
      "created_at": {
        "day": 15,
        "month": 10,
        "year": 2021,
        "full": "2021-10-15 14:05:35 UTC"
      },
      "description": "description",
      "latest_activity": "2021-10-15 14:05:06 UTC",
      "status": "preferred",
      "tags": [],
      "updated_at": {
        "day": 15,
        "month": 10,
        "year": 2021,
        "full": "2021-10-15 14:05:35 UTC"
      }
    }
  ]
}
  • List preferred authors
  • GETGet My Authors
  • Add a preferred author
  • POSTAdd a My Author
  • Get a preferred author
  • GETRetrieve a single My Author
  • Update a preferred author
  • PUTUpdate My Author
  • List preferred authors able to work on project
  • GETGet all My Authors who can do a given Project

Add a My Author

post
Authorizations
Body
Responses
200
My Author Created
application/json
401
Unauthorized
application/json
403
Forbidden
application/json
422
Unprocessable Entity
application/json
post
POST /v1/clients/my_authors HTTP/1.1
Host: api.textmaster.com
Content-Type: application/json
Accept: */*
Content-Length: 110

{
  "my_author": {
    "author_id": "61698ab08b81926d91c0e8a3",
    "description": "Some personal note",
    "status": "preferred"
  }
}
{
  "id": "61698ab08b81926d91c0e8ae",
  "author_id": "61698ab08b81926d91c0e8a3",
  "author_name": "john",
  "author_ref": "A-98A3-FM",
  "created_at": {
    "day": 15,
    "month": 10,
    "year": 2021,
    "full": "2021-10-15 14:05:36 UTC"
  },
  "description": "Some personal note",
  "latest_activity": "2021-10-15 14:05:06 UTC",
  "status": "preferred",
  "tags": [],
  "updated_at": {
    "day": 15,
    "month": 10,
    "year": 2021,
    "full": "2021-10-15 14:05:36 UTC"
  }
}

Update My Author

put
Authorizations
Path parameters
author_idstringRequired

(required) ID of the Author

Body
Responses
200
My Author Updated
application/json
401
Unauthorized
application/json
403
Forbidden
application/json
404
My Author Info Not Found
application/json
422
Unprocessable Entity
application/json
put
PUT /v1/clients/my_authors/{author_id} HTTP/1.1
Host: api.textmaster.com
Content-Type: application/json
Accept: */*
Content-Length: 74

{
  "my_author": {
    "description": "Updated personal note",
    "status": "preferred"
  }
}
{
  "id": "61698ab08b81926d91c0e8ae",
  "author_id": "61698ab08b81926d91c0e8a3",
  "author_name": "john",
  "author_ref": "A-98A3-FM",
  "created_at": {
    "day": 15,
    "month": 10,
    "year": 2021,
    "full": "2021-10-15 14:05:36 UTC"
  },
  "description": "description",
  "latest_activity": "2021-10-15 14:05:06 UTC",
  "status": "my_textmaster",
  "tags": [],
  "updated_at": {
    "day": 15,
    "month": 10,
    "year": 2021,
    "full": "2021-10-15 14:05:36 UTC"
  }
}